General information
Category:
Forms & Form designer
>>>I just need to verify something that kinda struck me as odd.
>>>
>>>Does a controll's init method fire before the form's init method?
>>>I am using a modal form.
>>>
>>>This seems kinda odd to me. If someone could try to explain this behaviour to me maybe it will make sense.
>>>
>>>Einar
>>
>>The form initialization is divided into two phases. Form.Init() fires after the Init() of the contained objects, Form.Load() fires before the Init() of the contained objects.
>>
>>Load() can be used to prepare tables.
>>
>>In the Form.Init(), you can reference the contained objects. For instance, you can disable individual objects.
>>
>>Likewise, the form destruction is also divided into two parts.
>>
>>Hilmar.
>
>Parameters passed to a form are first available in the form.init() right?
>
>I encountered this when I needed the parameter information in the control init() and I thought this was available.
>I found a workaround by not passing a parameter to the form but insted making it a private variable in the calling program.
>
>Controlname.activate() fires after form.init() right? I guess I could have done it that way also.
>
>Well anyways thanks for the info.
>
>Einar
Einar;
When I pass Parameters to a form, I create a custom Parameter as a member of the form so all objects of the form may use the passed value as required. Place the required code in the Init of the form. By the way create one parameter for the form for each parameter required.
Tom
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only