xBrowse from resource

Re: xBrowse from resource

Postby Otto » Sat Feb 07, 2009 9: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6013
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse from resource

Postby Otto » Sat Feb 07, 2009 9: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6013
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse from resource

Postby Enrico Maria Giordano » Sat Feb 07, 2009 1: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
User avatar
Enrico Maria Giordano
 
Posts: 8326
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: xBrowse from resource

Postby Enrico Maria Giordano » Sat Feb 07, 2009 1: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
User avatar
Enrico Maria Giordano
 
Posts: 8326
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: xBrowse from resource

Postby Otto » Sat Feb 07, 2009 1: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6013
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse from resource

Postby Enrico Maria Giordano » Sat Feb 07, 2009 2: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
User avatar
Enrico Maria Giordano
 
Posts: 8326
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: xBrowse from resource

Postby Otto » Sat Feb 07, 2009 2: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6013
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse from resource

Postby StefanHaupt » 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
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Re: xBrowse from resource

Postby Otto » Mon Feb 09, 2009 1:23 pm

Stefan, thank you very much for your explanation.
Best regards,
Otto
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6013
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse from resource

Postby Antonio Linares » Mon Feb 09, 2009 6:12 pm

Stefan, Enrico,

That's right :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41318
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 8 guests