Focus Pocus
I've seen a couple of focus-related questions here in the last few days, so here's mine...
1. why am I in my home office at 8am on a Saturday focussing on my screen when I could be at the beach? (no - sorry that slipped out)
2. I'm trying to simulate a wizard in a single .dg by having overlapping containers/groups and using rotate_state to link the 'pages'. Each page is the same location and size.
In psuedo-code...
Code:
page-container is a group
set rotate_state to true
page 2 is a group
page 3 is a group
page 4 is a group
page 1 is a group (declared last so that it is what is showing when it's all painted)
oForm1 is a passwordform (where I want the focus)
opage1group1 is a group (not visible until oForm1 has accepted input)
opage1group2 is a group (ditto)
Moving between almost-blank pages works a treat, but when I start adding controls I have to click into oForm1 can't seem to get the focus into the form where I need it.
Is it that the program thinks the focus is on page 2 as it's the first child of the page-container?
I tinkered with using visible_state for the pages until I thought of the rotate_state trick, but is that the only way to make this work?
I should be on a beach ...