Difference between Define and Redefine of controls

Post Reply
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Difference between Define and Redefine of controls

Post by anserkk »

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
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Difference between Define and Redefine of controls

Post by Enrico Maria Giordano »

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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

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
User avatar
James Bott
Posts: 4654
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA
Contact:

Post by James Bott »

Amser,

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

http://ourworld.compuserve.com/homepage ... rogram.htm

Regards,
James
User avatar
anserkk
Posts: 1280
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Post by anserkk »

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/homepage ... rogram.htm

Regards,
James
Post Reply