09-19-2006 04:43 AM
09-19-2006 04:56 AM
Hello Rafi,
you could use the functions GetPanelAttribute and SetPanelAttribute, with ATTR_BACKCOLOR in the attribute field. A similar thing can be done with most of the controls, using GetCtrlAttribute and SetCtrlAttribute.
09-19-2006 04:57 AM
It is surely possible in case of controls: GetCtrlAttribute ans SetCtrlAttribute permit you to retrieve individual elements of each control and copy them to a different control (be careful: not all attributes are settable for all controls: the online help for the command lists all the attributes and specify for each one of them if it's settable or not).
Regarding panel attributes like in your example, if the panel is stated to "Conform to system colors" you cannot modify the background color and you'll get an error in attempting it. You will need to test this attribute before trying to modify panel colors. The "Conform to system colors" attribute can be set either at run time or in the UIR editor (button "Other attributes" of the Edit panel dialog box).
09-19-2006 08:18 AM
09-19-2006 08:31 AM
@Rafi2003 wrote:
Thanks for the answers,Actually I meant to change the colors in the UIR editor....Is it possible? (If not, then, I could use the ATTRIBUTES settings...)ThanksRafi