Wow Garry, another great release!
Garry, can you tell me if I do this correctly? I want to give the background of window dlg_Main a yellow background.
- I place a canvas over the whole window area.
- I lock the left, top, right and bottom sides so the canvas grow/shrink when I resize the canvas.
- I add a “Paint” event handler to the canvas.
- Inside the Paint event handler I place the following code:
G.DrawingColour = colour.RGB(255, 255, 0)
g.FillRectangle(0, 0, Me.Width, Me.Height)
This gives me the results I wanted, a yellow background covering the whole window which resize with it.
Is this correct or is there a better way?
Thank you in advance.
Kind regards,
Chris