2008-10-01, 04:08
Have a question, and this isn't complicated, although my english tends to make it complicated... lets see... here goes...
certain windows have a bunch of Controls which are Default controls (e.g. Control Area, Button, Spin Controlex, Radio button) with pre-defined ID numbers so the compiler can identify them. Examples of such windows are SettingsCategory.xml, VideoOSDSettings.xml and obviously Defaults.xml.
Now, what I'd like to know is how to create two Default controls of a certain type (e.g. Button) so that either shows up depending on a visible tag i insert in that control. For example, I want one button with white text and the other with black, and one of these two default controls show up depending on the visible tag.
I've tried creating two default controls with different ID numbers, doesn't work... so how do I go about doing this remember, these are default conrols with pre-defined id numbers...
Thanks for the help!
certain windows have a bunch of Controls which are Default controls (e.g. Control Area, Button, Spin Controlex, Radio button) with pre-defined ID numbers so the compiler can identify them. Examples of such windows are SettingsCategory.xml, VideoOSDSettings.xml and obviously Defaults.xml.
Now, what I'd like to know is how to create two Default controls of a certain type (e.g. Button) so that either shows up depending on a visible tag i insert in that control. For example, I want one button with white text and the other with black, and one of these two default controls show up depending on the visible tag.
I've tried creating two default controls with different ID numbers, doesn't work... so how do I go about doing this remember, these are default conrols with pre-defined id numbers...
Thanks for the help!