GetDrawingMode or ReturnValue for DrawingMode
Posted: Fri Jun 13, 2014 9:57 am
Hi there,
when creating an include for drawing of specific elements, sometimes it's needed to set the DrawingMode (for example for Texts-Entries).
Including a Procedure of such an include might take effect on the behavior of the main sourcecode.
This means, that I might want to draw some PureBasic specific elements like text, than call a function to draw for example a star and than draw some text again.
When changing the drawingmode inside the "DrawStar"-Procedure, I'm unable to restore the old DrawingMode.
So, when adding a function "GetDrawingMode", I could save the old drawing mode, set my drawing mode, draw my elements and restore the old drawingmode before Returning from the procedure.
A second possibility would be to make DrawingMode return the old drawingmode.
Please check and implement that, it should not be that much work.
Thank you and best Regards
Franky
when creating an include for drawing of specific elements, sometimes it's needed to set the DrawingMode (for example for Texts-Entries).
Including a Procedure of such an include might take effect on the behavior of the main sourcecode.
This means, that I might want to draw some PureBasic specific elements like text, than call a function to draw for example a star and than draw some text again.
When changing the drawingmode inside the "DrawStar"-Procedure, I'm unable to restore the old DrawingMode.
So, when adding a function "GetDrawingMode", I could save the old drawing mode, set my drawing mode, draw my elements and restore the old drawingmode before Returning from the procedure.
A second possibility would be to make DrawingMode return the old drawingmode.
Please check and implement that, it should not be that much work.
Thank you and best Regards
Franky