Page 1 of 1

Visual Attribute for every control

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

Re: Visual Attribute for every control

Posted: Sun Jun 14, 2009 7:13 pm
by Rathinagiri
Perhaps a nice idea. Thanks Shridhar.

Re: Visual Attribute for every control

Posted: Mon Jun 15, 2009 5:33 am
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

Re: Visual Attribute for every control

Posted: Mon Jun 15, 2009 5:48 am
by shridhar
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

Posted: Mon Jun 15, 2009 5:53 am
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