check if there is an ID in resource

check if there is an ID in resource

Postby fp » Wed Jan 17, 2007 7:58 am

How can I check, if there is an ID in my resource

eg.

IsId(oDialog,4711)
Frank-Peter
User avatar
fp
 
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

Re: check if there is an ID in resource

Postby Enrico Maria Giordano » Wed Jan 17, 2007 8:13 am

Before or after the controls have been REDEFINEd?

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: check if there is an ID in resource

Postby fp » Wed Jan 17, 2007 11:54 am

EnricoMaria wrote:Before or after the controls have been REDEFINEd?

EMG


Before they have been REDEFINED - to check, if the ID exists.
Frank-Peter
User avatar
fp
 
Posts: 76
Joined: Fri Dec 30, 2005 10:25 am
Location: Germany

Re: check if there is an ID in resource

Postby Enrico Maria Giordano » Wed Jan 17, 2007 12:37 pm

I don't know, sorry. It seems you can't.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » Wed Jan 17, 2007 1:13 pm

Frank,

You can only do it from the ON INIT clause of the ACTIVATE DIALOG ... command:

GetDlgItem( oDlg:hWnd , nID ) --> hWndControl

hWndControl will be zero if it does not exists
regards, saludos

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

Postby Enrico Maria Giordano » Wed Jan 17, 2007 1:40 pm

You are right, it works!

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8710
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 47 guests