Hi!
In addition to what Craig said, use 'SetAll' method to set colour for all object and their subobjects in the form, for example:
thisform.SetAll('COLORSOURCE', 4) && swicth all objects of form to Windows colouring
>I have an application that has multiple forms in it. These forms all have subclasses on them, which are my custom textboxes, edit boxes, combo boxes, etc. What I am trying to do is to have some standard colours for the subclasses, but also have an option in the application where the user can tell the app to use windows colours.
>
>I know there is a property called COLORSOURCE, which can be set to 4 to use the windows colours. How do I enable my application to use windows colours or my preset colours?
>
>Thanks
>
>Daryl
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.