As many GUI softwares (e.g. Oracle Developer 2000) has provide Visual Attribute property for each control. The visual attribute property help to developer to show control to user in the same fashion in the entire application. for example a Button control having hight & width. let assume that we have created Visual attribute named VA_BUTTON having hight = 20 , width = 90 later we can use this visual attribute property to define each button.
Might be in our HMG the code will look like as per given below.
DEFINE VISUAL ATTRIBUTE VA_BUTTON
WIDTH = 40
HIGHT = 90
END VISUAL ATTRIBUTE
DEFINE BUTTON PB_EXAMPLES
VISUAL ATTRIBUTE = VA_BUTTON
END
Visual Attribute for every control
Moderator: Rathinagiri
Visual Attribute for every control
Last edited by shridhar on Mon Jun 15, 2009 5:41 am, edited 1 time in total.
- Rathinagiri
- Posts: 5477
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: Visual Attribute for every control
Perhaps a nice idea. Thanks Shridhar.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: Visual Attribute for every control
Hello Shridhar,

With best regards.
Sudip
IMHO, you are talking about CLASS INHERITANCE. Please correct me if I am wrongshridhar wrote:As many GUI softwares (e.g. Oracle Developer 2000) has provide Visual Attribute property for each control. The visual attribute property help to developer to show control to user in the same fachion in entire application. for example a Button control having hight & width. let assue that we have created Visual attribute named VA_BUTTON having hight = 20 , width = 90 later we can use this visual attribute property to define each button.
Might be in our HMG the code will look like as per given below.
DEFINE VISUAL ATTRIBUTE VA_BUTTON
WIDTH = 40
HIGHT = 90
END VISUAL ATTRIBUTE
DEFINE BUTTON PB_EXAMPLES
VISUAL ATTRIBUTE = VA_BUTTON
END

With best regards.
Sudip
With best regards,
Sudip
Sudip
Re: Visual Attribute for every control
Yes Sudip.. ! its near to OOP style,but I believe that HMG can adopt this style. I think Master will help us.
Re: Visual Attribute for every control
Thanks a lot Sridhar! I also believe that.shridhar wrote:Yes Sudip.. ! its near to OOP style,but I believe that HMG can adopt this style. I think Master will help us.

IMHO, we can also implement this using array with fixed element numbers, eg., for HEIGHT, WIDTH etc.

With best regards.
Sudip
With best regards,
Sudip
Sudip