IonicWind Software

Aurora Compiler => General Discussion => Topic started by: Zen on July 19, 2006, 08:09:00 PM

Title: Owner Drawn Styles
Post by: Zen on July 19, 2006, 08:09:00 PM
Hi. I have noticed that there is ABS_OWNERDRAW for the CButton class, but how do you let other controls know they are to be custom drawn? Or is it not as simple as applying a style to te other controls?

Lewis
Title: Re: Owner Drawn Styles
Post by: Ionic Wind Support Team on July 19, 2006, 08:30:09 PM
Aurora already custom draws the buttons when you use ABS_OWNERDRAW. To support fg/bg colors.

You can search MSDN for the other controls particular ownerdraw style.
Title: Re: Owner Drawn Styles
Post by: Zen on July 19, 2006, 09:02:48 PM
Ahh thats what i was asking. Do the other controls have a style, i guess so. Will they be put into the language constants at any point? I will have a peek through the SDK for the other constants.

Thanks
Lewis
Title: Re: Owner Drawn Styles
Post by: Ionic Wind Support Team on July 19, 2006, 09:19:00 PM
The only reason it is in the constants is to support colored buttons like we did in IBasic.  I have no plans to add anymore built in 'skinning'  ;).  For one it's not compatible with XP themes.  In other words you can either have themed buttons, or colored ones, but not both.

Title: Re: Owner Drawn Styles
Post by: Zen on July 19, 2006, 09:27:58 PM
HUH??? Thats thrown me a bit? So what i am working on isnt going to work? Then how can these other programs skin your controls for you? If you have XP themes on or not? Or have i just missed the point here :S

Lewis
Title: Re: Owner Drawn Styles
Post by: Ionic Wind Support Team on July 19, 2006, 09:36:31 PM
Meaning the theme doesn't work for that button.  Not that the button doesn't work of course. 

Linux handles skinning so much better.