INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Skinning Plugins  (Read 1633 times)

nila

  • Guest
Skinning Plugins
« 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??
Logged

nila

  • Guest
Re:Skinning Plugins
« Reply #1 on: November 19, 2003, 01:06:10 pm »

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?
Logged

RhinoBanga

  • Citizen of the Universe
  • *****
  • Posts: 1703
  • Developer
Re:Skinning Plugins
« Reply #2 on: November 19, 2003, 02:53:13 pm »

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
Logged

nila

  • Guest
Re:Skinning Plugins
« Reply #3 on: November 19, 2003, 03:11:03 pm »

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?
Logged
Pages: [1]   Go Up