Activity Question

iCAB

Well-Known Member
Licensed User
Longtime User
Hi there
Does anyone know how to call/simulate Activity_Create from code.

Let me explain what I am trying to do.

Currently in Activity Create, I load all layout and construct the GUI.
If I change the tablet orientation, a call is made is made to Activity_Create and all screens are redrawn in here.

I want to be able to redraw all the screens from code. The easiest way will be to call/re-create the activity_create process which currently does the job.

If I call Activity_Create from code, the screen is really messed up.

Thanks
 

JonPM

Well-Known Member
Licensed User
Longtime User
What you can do is move all of your GUI code to a separate sub (i.e. Sub GUICreate), and in Activity_Create just call GUICreate. You will then be able to call GUICreate anywhere/anytime you want. You will have to fine tune it so that everything doesn't get messed up (probably by removing all views in the beginning of the sub).

Also, this isn't the correct forum to post questions to.
 
Upvote 0
Top