Fordi
Number of posts : 23 Registration date : 2010-07-12
| Subject: How to reopen forms with already created controls? Wed Jul 14, 2010 12:59 am | |
| Hello, sorry to bother you, but I'm still learning. ;-) And Panoramic makes it easy to learn quickly. My next problem is, how I can handle forms with created controls, when the forms are reopended. Do I just have to hide and then again show them? Then I have to clear all controls, but that shouldn't be a problem. Do I have to delete all controls, so I can recreate them. What is the best way to do that? Kind regards, Fordi | |
|
Jack Admin
Number of posts : 99 Registration date : 2007-07-01
| Subject: Re: How to reopen forms with already created controls? Wed Jul 14, 2010 7:35 am | |
| Yes, the most simple way is to HIDE the FORM, then to SHOW the FORM again. So, you dont have to DELETE all the created objects and to re-created them and to re-attach the events (ON_CLICK, ...) to the objects. | |
|
Fordi
Number of posts : 23 Registration date : 2010-07-12
| Subject: Re: How to reopen forms with already created controls? Wed Jul 14, 2010 8:38 am | |
| Ok, thank you. Now I understand better the structure of programmes. At first I have to declare all variables, then create all forms to use them later on. Now it's clear, why I do not have to know the current number of objects. Kind regards, Fordi | |
|
Sponsored content
| Subject: Re: How to reopen forms with already created controls? | |
| |
|