Simplicty and flexibility!


Function::Internal

GetStyle
GetStyle("ObjectName")
retval := GetStyle("ObjectName") .
SetStyle("MyObject",GetStyle("AnotherObject")


SetStyle() is maybe one of the most "revolutionary" new functions in DataEase 8. 

We have already introduced new functions like SetColor(), SetLabelText(), SetState() etc. Using SetColor() to manipulate the look of an object can be cumbersome, so why not use the much more powerful SetStyle()?

SetColor() can only change the color of Text, Fill and Border of objects, while SetStyle() can change all styleable properties on an object in one stroke. All color properties, font type, size and style etc..

Since changing the style of an object will be "permanent" throughout as session it is important to be able to revert to the original style when you have finished with the manipulation and this is where GetStyle() can help.

Simply Pick up the style and store it in a SetVar() before you start the manipulation, and then you can re-set it when you are finished.

Parameters


ObjectName: String

Name of object from which you want to retrieve the style.

Returns/Result


StyleName: Text

Examples


Reference

See Also


SetStyle

On the forum about GetStyle

On the blog about GetStyle


dg3_HelpView