July 13, 2024, 06:57:52 PM

News:

IWBasic runs in Windows 11!


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!)