April 30, 2024, 04:00:29 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


CTButton colour

Started by John Syl., November 09, 2006, 12:53:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

John Syl.

I can change a button to any colour, but is there a way of finding what colour the button is before I change it?

John
Intel 3.6 p4 ht, XP home,2 gb mem, 400 gb hd 20gb raid 0, Nvidia 6600le.
AMD k6-2 500, 40gb.

Started on PDP11 Assembler, BASIC, GWBASIC, 6502, Z80, 80x86, Java, Pascal, C, C++, 
IBasic (std & pro), Aurora, EBasic.  (Master of none, but it's been fun!)

Ionic Wind Support Team

Yes.  Use the GetFGColor and GetBGColor methods.

CButton, and all of the controls, are derived from CControl.  See in the docs Library Reference->Classes->CControl->Methods.

Ionic Wind Support Team

John Syl.

Thanks paul, I'v been  searching for ages  :-[ so obvious when you ask!
Intel 3.6 p4 ht, XP home,2 gb mem, 400 gb hd 20gb raid 0, Nvidia 6600le.
AMD k6-2 500, 40gb.

Started on PDP11 Assembler, BASIC, GWBASIC, 6502, Z80, 80x86, Java, Pascal, C, C++, 
IBasic (std & pro), Aurora, EBasic.  (Master of none, but it's been fun!)