Hi
I've got a part of a program which allows the user to set certain values to the registry. I got two buttons in this panel, one which is "Save & Exit" and one just "Exit". As it takes about 4-5 seconds for it to write it all to the registry an impatient user could after pressing the "Save & Exit" button press the "Exit" button, and the program will then stop writing the wanted values to the registry and exit this part of the program. When pressing "Save & Exit" the button gets grayed out (so you can't click on it again). Is it possible to make the "Exit" button grayed out too when pressing "Save & Exit"?
Another part of the program has another panel with some user objects and the user objects have their own panel. Is it possible to merge to panel of a userobject with the panel of where it is
a user object? Or is there a way to have a panel be "on top" so it cant dissapear behind another panel..
Regards,
Tobias
I've got a part of a program which allows the user to set certain values to the registry. I got two buttons in this panel, one which is "Save & Exit" and one just "Exit". As it takes about 4-5 seconds for it to write it all to the registry an impatient user could after pressing the "Save & Exit" button press the "Exit" button, and the program will then stop writing the wanted values to the registry and exit this part of the program. When pressing "Save & Exit" the button gets grayed out (so you can't click on it again). Is it possible to make the "Exit" button grayed out too when pressing "Save & Exit"?
Another part of the program has another panel with some user objects and the user objects have their own panel. Is it possible to merge to panel of a userobject with the panel of where it is
a user object? Or is there a way to have a panel be "on top" so it cant dissapear behind another panel..
Regards,
Tobias
I'm slightly amazed that your registry writing takes so long - it may be worth examining that as there is probably something amiss there.
In answer to your question though, the answer is 'no' as far as I'm aware: you can set a flag ( so that the 'exit' command is ignored if the other button was pressed first ), hide the panel ( see your second question ) or you can cover the button with something else ( e.g. a dummy button which is greyed out! ).
As to 'merging' panels the answer is 'yes'. Briefly, create a panel for the UserObject; right-click on its icon and select 'restore' then add the sub-panel to the main panel. You can change the UserObject panel view back to an icon in the detail view once you have done that. If you want to look at my mini-tutorial on the subject which covers this aspect go to http://www.preciselyso.co.uk -> VEE Resource Centre tab -> choose Tools and Tips on the right -> look for "Tutorial: Static, Pop-up and Status Panels"