FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse from resource
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse from resource
Posted: Sat Feb 07, 2009 09:08 AM

Hello Enrico,

I got the problem on my PC at work which is still on 8.06.
At home I use 9.01 and here it is working.
There have been many improvements since 8.06.

Best regards,
Otto

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse from resource
Posted: Sat Feb 07, 2009 09:18 AM

Enrico,
I tried to understand the sourcecode but I don’t find out where the
METHOD Initiate is called from if you have build the xBrowse with CreateFromResource.

Could you please give me a hint.
Thanks in advance
Otto

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xBrowse from resource
Posted: Sat Feb 07, 2009 01:41 PM
Otto wrote:Hello Enrico,

I got the problem on my PC at work which is still on 8.06.
At home I use 9.01 and here it is working.
There have been many improvements since 8.06.


Best regards,
Otto


Thank you.

EMG
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xBrowse from resource
Posted: Sat Feb 07, 2009 01:43 PM
Otto wrote:Enrico,
I tried to understand the sourcecode but I don’t find out where the
METHOD Initiate is called from if you have build the xBrowse with CreateFromResource.

Could you please give me a hint.
Thanks in advance
Otto


Initiate() method is internally called when the object is instantiated.

EMG
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse from resource
Posted: Sat Feb 07, 2009 01:55 PM

Thank you , Enrico.
Does this mean that this part of code is not provided?

The only time I see ::Initiate() in the source is in
METHOD CreateFromCode() but this method is not called.

Or do I misunderstand something.

Thanks in advance
Otto

Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: xBrowse from resource
Posted: Sat Feb 07, 2009 02:15 PM

Uhm... it seems I was wrong. Initiate() of the controls is called inside Initiate() of the dialog which, in turn, is called inside HandleEvent(), WM_INITDIALOG message.

EMG

Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse from resource
Posted: Sat Feb 07, 2009 02:22 PM

Thank you, Enrico.
Now for me it gets complicated.
But I will try to make some msginfos into the dialog.
I hope I can follow the point where ::Initiate() is called.

Best regards,
Otto

Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Re: xBrowse from resource
Posted: Mon Feb 09, 2009 11:05 AM

Otto,

what Enrico tries to say is the method ::Initiate() is called automatically, when an object from a rc file is initialised. There is no explicit call necessary.

It is similar to the method ::default(), if you define an object from source. (hope I´m right)

kind regards

Stefan
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse from resource
Posted: Mon Feb 09, 2009 01:23 PM

Stefan, thank you very much for your explanation.
Best regards,
Otto

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: xBrowse from resource
Posted: Mon Feb 09, 2009 06:12 PM

Stefan, Enrico,

That's right :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion