Canvas colour
Posted: Fri Jan 06, 2017 3:52 pm
Hi
I have some code that creates a canvas gadget and then sets the colour of the gadget to the background on which it is drawn.
This works on windows but not on the MAC
Anyone have any ideas?
Regards
cd
I have some code that creates a canvas gadget and then sets the colour of the gadget to the background on which it is drawn.
Code: Select all
;Get background colour where gadget will be drawn
StartDrawing(WindowOutput(ThisWindow))
MyGadgetArray.MyGadget(CurrentGadget)\BackColour = Point(x, y)
StopDrawing()
;Set Colour Of Canvas To Background
StartDrawing(CanvasOutput(ThisGadget))
DrawingMode(#PB_2DDrawing_AllChannels)
Box(0, 0, OutputWidth(), OutputHeight(), MyGadgetArray.MyGadget(CurrentGadget)\BackColour)
StopDrawing()
Anyone have any ideas?
Regards
cd