INTERACT FORUM
Windows => Third Party Plug-ins, Programs, and Skins => Topic started by: nila on November 19, 2003, 12:59:53 pm
-
Hiya :)
Just wondering - how do we skin the plugins so our buttons look the same as the ones inside of MC etc?
I noticed Rhino has done it in his plugin - is it hard? easy? how do I do it??
-
also - how do I change the background colour for the control (plugin) at runtime? trying to do: ctrlName.backcolor = blah
just gives me an error.
Also - is there any easy way to change the background colour for ALL the items on the page without having to name each one and specifying it's bg colour individually?
-
You have to query MC to get the name of the colours of items, e.g.:
m_pMJ->GetSkinInfo( "Tree", "BackColor" )
And you have to look in the skin .XML to get the name of the section/item.
And if you want to get the treeview font you have to poke around in the registry.
And it you want to set all controls to a particular colour you can iterate over your own objects:
Dim Object As Object
For Each Object In Me.Controls
MsgBox Object.Name
Next
-
Yeah - I did that :0
Used it to get the colour of the tree to set the background colour which worked great.
But I cant seem to then set the control background colour to = the value I just got - it works for the buttons etc but not for the control background.
Also - how do you skin the buttons etc to make them look lilke the ones in the MC skin?