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
Difference between Define and Redefine of controls
- 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
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
@ row, col ...
REDEFINE ...
The former uses direct coordinates while the latter uses resource files (RC or RES).
EMG
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
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.
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.
- James Bott
- Posts: 4654
- Joined: Fri Nov 18, 2005 4:52 pm
- Location: San Diego, California, USA
- Contact:
Amser,
Have you read the Introduction to Fivewin articles on my website? These may help.
http://ourworld.compuserve.com/homepage ... rogram.htm
Regards,
James
Have you read the Introduction to Fivewin articles on my website? These may help.
http://ourworld.compuserve.com/homepage ... rogram.htm
Regards,
James
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
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