FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour check if there is an ID in resource
Posts: 76
Joined: Fri Dec 30, 2005 10:25 AM
check if there is an ID in resource
Posted: Wed Jan 17, 2007 07:58 AM

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

eg.

IsId(oDialog,4711)

Frank-Peter
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: check if there is an ID in resource
Posted: Wed Jan 17, 2007 08:13 AM

Before or after the controls have been REDEFINEd?

EMG

Posts: 76
Joined: Fri Dec 30, 2005 10:25 AM
Re: check if there is an ID in resource
Posted: 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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: check if there is an ID in resource
Posted: Wed Jan 17, 2007 12:37 PM

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

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
check if there is an ID in resource
Posted: Wed Jan 17, 2007 01: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
Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
check if there is an ID in resource
Posted: Wed Jan 17, 2007 01:40 PM

You are right, it works!

EMG

Continue the discussion