HI,
I am drawing 2 lines on a panel like this,
I would like to Draw the 2 line on another 10 panels. Is there a way to do tihs smart without duplicating the code 10 times.
Another problem is if I ex. have a button on the panel with the lines, the refresh redraws the button so i appars 2 times.
Is there a way to prevent this or do I have to but the button on another panel,
Thanks Mogens
I am drawing 2 lines on a panel like this,
B4X:
Dim CanvasHolder As Canvas
CanvasHolder.Initialize(Panel2)
CanvasHolder.DrawLine(10, 10, 10, Panel2.Height - 20, Colors.RGB(127,176,0), 1)
CanvasHolder.DrawLine(10, Panel2.Height - 20, Panel2.Width - 20, Panel2.Height - 20, Colors.RGB(127,176,0), 1)
CanvasHolder.Refresh
I would like to Draw the 2 line on another 10 panels. Is there a way to do tihs smart without duplicating the code 10 times.
Another problem is if I ex. have a button on the panel with the lines, the refresh redraws the button so i appars 2 times.
Is there a way to prevent this or do I have to but the button on another panel,
Thanks Mogens