Jack
Sat Aug 05 12:39:12 CDT 2006
No. It doesn't matter if it has been subclassed or not. Form's
Load() fires first, then control's Init()s, then Form Init().
On Sat, 5 Aug 2006 12:06:26 -0400, "Imaginecorp" <imaginecorp@msn.com>
wrote:
>Naturally... If I understand your reply correctly, As the form and grid are
>now part of a single class and have been further subclassed, the Forms Init
>would fire, then the contained objects (grids) init before the forms load,
>Isn't this what OOP is all about... IMO this is not a bug, Bindcontrols may
>be the solution...
>Mohammed
>
>
>"Man-wai Chang" <info@softmedia.hk> wrote in message
>news:u0hsxH3tGHA.4336@TK2MSFTNGP06.phx.gbl...
>> Imaginecorp wrote:
>>> Strange, I just tried it and it works for me.
>>> In the load event of the form, I put in :
>>> Select 0
>>> use <<dbcname>>!<<tablename>>
>>> Grid columns have the fields from this table as the controlsource
>>> Try it with the dbc name...
>>
>> Attached file could demonstrate the bug.
>>
>> If you create a form directly from the base class Form, add a grid (as
>> in simpleform.scx), form.load() would be fired before the grid columns
>> checked their controlsource.
>>
>> If you create a class MYFORMCLASS as form (which contains the same
>> grid), then you create a myform.scx out of class MYFORMCLASS, then the
>> form.load() would be fired *after* the grid columns checked their
>> controlsource.
>>
>> --
>> SoftMedia Technology Co., Ltd.
>> Website:
http://www.softmedia.hk Tel: (852)2743 4228
>> * TryEasy Accounting/POS/Trading/ERP solutions
>>
>