For example, I have a generic layout that has 5 buttons (btnB1, btnB2, etc.) and a label (lblTop). Using Generate Members, I can selectively add the empty subs for the various views (btnB1_Click, btnB2_Click, etc.)
Now, if I want to add a text label to the button, I would have to add the "Dim btnB1 as Button" line to Sub Globals before I can modify anything with the button.
The example I gave is simple but if you have 20-30 views in a layout and you want to be able to modify the views in code, you need to dimension all the views in the Activity.
What I am asking for is the ability to have the designer add all the view Dim statements to Sub Globals the way Generate Members adds the callback subs. Select "Generate Dims" and a list of all the views is displayed. Tick the checkbox next to any that you would like to have dimensioned and the Designer will add the correct Dim statement to Sub Globals.
Sub Globals
'These global variables will be redeclared each time the activity is created.
'These variables can only be accessed from this module.
' Main screen views
Dim lblTop As Label ' <<<<---- I would like it to add this