Page 1 of 1

"strange" behavior of the CheckBox control

Posted: Tue Mar 16, 2010 8:10 pm
by jparada
Hi,

I noticed a "strange" behavior of the CheckBox control, here's my little test:

Code: Select all

DEFINE CHECKBOX chkRememberUser
	ROW	230
	COL	30
	CAPTION "Recordar Usuario"
	AUTOSIZE .T.
	BACKCOLOR { 242, 239, 231 }
END CHECKBOX
I thought I did something wrong (as always), but ... main.demo does something similar.

Here is the little code in main.demo

Code: Select all

DEFINE CHECKBOX Check_1
	ROW	80
	COL	90
	CAPTION 'Check 1 123455545565655p' 
	VALUE .T. 
	TOOLTIP 'CheckBox' 
	ONCHANGE PLAYOK()
END CHECKBOX
Please take a look at the picture attached.

Please I await your comments

Thanks

Best Regards
Javier

Re: "strange" behavior of the CheckBox control

Posted: Wed Mar 17, 2010 1:16 am
by Roberto Lopez
jparada wrote:Hi,

I noticed a "strange" behavior of the CheckBox control, here's my little test:

Code: Select all

DEFINE CHECKBOX chkRememberUser
	ROW	230
	COL	30
	CAPTION "Recordar Usuario"
	AUTOSIZE .T.
	BACKCOLOR { 242, 239, 231 }
END CHECKBOX
I thought I did something wrong (as always), but ... main.demo does something similar.

Here is the little code in main.demo

Code: Select all

DEFINE CHECKBOX Check_1
	ROW	80
	COL	90
	CAPTION 'Check 1 123455545565655p' 
	VALUE .T. 
	TOOLTIP 'CheckBox' 
	ONCHANGE PLAYOK()
END CHECKBOX
Please take a look at the picture attached.

Please I await your comments

Thanks

Best Regards
Javier
Checkbox does not have an 'AUTOSIZE' property, so, you must provide and adequate width to make it work.

Re: "strange" behavior of the CheckBox control

Posted: Wed Mar 17, 2010 1:28 am
by jparada
Hi Mr. Roberto,
I thought I did something wrong (as always)
Ups, I did it again.

Thanks

Best Regards
Javier