Visual Attribute for every control

Creative ideas/suggestions for HMG

Moderator: Rathinagiri

Post Reply
shridhar
Posts: 32
Joined: Mon May 25, 2009 5:24 am

Visual Attribute for every control

Post by shridhar »

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
Last edited by shridhar on Mon Jun 15, 2009 5:41 am, edited 1 time in total.
User avatar
Rathinagiri
Posts: 5471
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

Post by Rathinagiri »

Perhaps a nice idea. Thanks Shridhar.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Visual Attribute for every control

Post by sudip »

Hello Shridhar,
shridhar 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
IMHO, you are talking about CLASS INHERITANCE. Please correct me if I am wrong :)

With best regards.

Sudip
With best regards,
Sudip
shridhar
Posts: 32
Joined: Mon May 25, 2009 5:24 am

Re: Visual Attribute for every control

Post by shridhar »

Yes Sudip.. ! its near to OOP style,but I believe that HMG can adopt this style. I think Master will help us.
User avatar
sudip
Posts: 1454
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Visual Attribute for every control

Post by sudip »

shridhar wrote:Yes Sudip.. ! its near to OOP style,but I believe that HMG can adopt this style. I think Master will help us.
Thanks a lot Sridhar! I also believe that. :)
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
Post Reply