Hi
I have a B4A project which draws bitmaps on the Activity canvas. Its been working fine but the code is becoming unmanagable. For ease of reading/modifying I am splitting the code into modules.
This has lead me to a problem; How can I access the Activity canvas from a code module so that I can draw bitmaps in the code module.
In the documentation it states that canvas is "an 'Activity Object', it cannot be declared under Sub Process_Globals." - hence my problem.
Is there any way to have a "canvas" that is not part of the Main code module?
Also, I thought I had a work around by calling a Sub (in the main) from a code module but I cant seem to do this either (global variables from Main can be accessed but not Subs)
Does anyone have any ideas or should I just re-engineer the whole thing?
Thanks
Trevor
I have a B4A project which draws bitmaps on the Activity canvas. Its been working fine but the code is becoming unmanagable. For ease of reading/modifying I am splitting the code into modules.
This has lead me to a problem; How can I access the Activity canvas from a code module so that I can draw bitmaps in the code module.
In the documentation it states that canvas is "an 'Activity Object', it cannot be declared under Sub Process_Globals." - hence my problem.
Is there any way to have a "canvas" that is not part of the Main code module?
Also, I thought I had a work around by calling a Sub (in the main) from a code module but I cant seem to do this either (global variables from Main can be accessed but not Subs)
Does anyone have any ideas or should I just re-engineer the whole thing?
Thanks
Trevor