IonicWind Software

IWBasic => The Roundtable => Topic started by: LarryMc on November 21, 2010, 07:31:40 PM

Title: Weird discovery
Post by: LarryMc on November 21, 2010, 07:31:40 PM
I know noone will ever do this and it happened to me was a result of sloppy 'cut-n-oastn'

If you create a control with @button and a style flag of 2 (which is for a radiobutton)
you still get the button you expect; a regular old button.

If you create a control with @sysbutton and a style flag of 2
you no longer get a button
you get a radiobutton that, when you click it, acts just like the button you expected.
(and it is @sysbuttons that you can't change the color of with setcontrolcolor)

UPDATE: just discovered that if you use @sysbutton and a style flag of B you get a button that works but you can't see it.

All this was done in a dialog.  Don't know if it would be any different in a window.

LarryMc
Title: Re: Weird discovery
Post by: WayneA on November 21, 2010, 08:01:34 PM
The @button control is a either a subclass of the @sysbutton or a new control. It doesn't emulate several features of the real windows button (@sysbutton).
Title: Re: Weird discovery
Post by: LarryMc on November 21, 2010, 08:19:55 PM
Quote from: WayneA on November 21, 2010, 08:01:34 PM
The @button control is a either a subclass of the @sysbutton or a new control. It doesn't emulate several features of the real windows button (@sysbutton).
I know, I've got the source code. ;)

LarryMc