We would like to build a community for Small Basic programmers of any age who like to code. Everyone from total beginner to guru is welcome. Click here to register and share your programming journey!


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error by LDGraphicsWindow.FloodFill
#1
Hello LitDev,
In the program MJPH297.000, the command
Code:
LDGraphicsWindow.FloodFill(HGWW, HGWH, "Yellow")
is executed incorrectly. It does not fill the rectangle in the center of the window. Could you please correct this?

Thank you,
Martin

Translated by Capilot
Reply
#2
Hello, Martin  Shy

The Help says: "This only applies to the drawing layer of the GraphicsWindow.".

The Rectangle SHAPE is drawn not on the Graphics Window layer, but ABOVE that layer.
Your source code colors the entire Graphics Window yellow. And on top of this layer, your Rectangle is drawn.

If you draw a Rectangle ON the Graphics Window itself, then this Rectangle becomes yellow.
Code:
GraphicsWindow.BackgroundColor = "Green"

GraphicsWindow.DrawRectangle(HHGWW, HHGWH, HGWW, HGWH)
'SRecheck = Shapes.AddRectangle(HGWW, HGWH)
'Shapes.Move(SRecheck, HHGWW, HHGWH)

LDGraphicsWindow.FloodFill(HGWW, HGWH, "Yellow")
[-] The following 2 users Like AbsoluteBeginner's post:
  • litdev, z-s
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)