Difference between Define and Redefine of controls

Difference between Define and Redefine of controls

Postby anserkk » 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
User avatar
anserkk
 
Posts: 1331
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Difference between Define and Redefine of controls

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

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

Postby James Bott » Wed Jun 18, 2008 6: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
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby anserkk » Thu Jun 19, 2008 4: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
User avatar
anserkk
 
Posts: 1331
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Silvio.Falconi and 14 guests