FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Difference between Define and Redefine of controls
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM

Difference between Define and Redefine of controls

Posted: Wed Jun 18, 2008 11:09 AM

Can anybody explain what is the difference between Define and Redefine of controls. In which situation I should use Define and in which situation I should use Redefine.

Sorry, I am very much new to Harbour.

Regards

Amser

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Difference between Define and Redefine of controls

Posted: Wed Jun 18, 2008 12:41 PM

The difference is between the following two syntax forms:

@ row, col ...

REDEFINE ...

The former uses direct coordinates while the latter uses resource files (RC or RES).

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Difference between Define and Redefine of controls

Posted: Wed Jun 18, 2008 12:50 PM

Amser,

Besides Enrico's explanation, let me add that you use:

@ ..., ... BUTTON ...

when you create a dialogbox from source code, without using resources.

You have to use:

REDEFINE BUTTON ...

when you are creating the dialogbox from a resources defined dialogbox.

BUTTON is just an example. The same applies to other types of controls.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM

Difference between Define and Redefine of controls

Posted: Wed Jun 18, 2008 06:06 PM
Amser,

Have you read the Introduction to Fivewin articles on my website? These may help.

http://ourworld.compuserve.com/homepages/jbott/program.htm

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM

Difference between Define and Redefine of controls

Posted: Thu Jun 19, 2008 04:44 AM
James Bott,

Yesterday night I found the article in your web site. I went thru the article and now I getting some idea about the usage of resource files. Your article on OOPs is also a good material for a beginner like me.

Regards

Anser

James Bott wrote:Amser,

Have you read the Introduction to Fivewin articles on my website? These may help.

http://ourworld.compuserve.com/homepages/jbott/program.htm

Regards,
James

Continue the discussion