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 » Sun Jun 14, 2009 4:46 pm

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: 5071
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Has thanked: 88 times
Been thanked: 103 times
Contact:

Post by Rathinagiri » Sun Jun 14, 2009 7:13 pm

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: 1443
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Post by sudip » Mon Jun 15, 2009 5:33 am

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

Post by shridhar » Mon Jun 15, 2009 5:48 am

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: 1443
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Post by sudip » Mon Jun 15, 2009 5:53 am

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

Who is online

Users browsing this forum: No registered users and 2 guests