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
#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


Messages In This Thread
Error by LDGraphicsWindow.FloodFill - by martmen - 06-07-2025, 08:31 AM
RE: Error by LDGraphicsWindow.FloodFill - by AbsoluteBeginner - 06-07-2025, 12:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)