"strange" behavior of the CheckBox control

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

"strange" behavior of the CheckBox control

Post 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
Attachments
img_chk.png
img_chk.png (2.55 KiB) Viewed 1914 times
User avatar
Roberto Lopez
HMG Founder
Posts: 4023
Joined: Wed Jul 30, 2008 6:43 pm

Re: "strange" behavior of the CheckBox control

Post 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.
Regards/Saludos,

Roberto


(Veritas Filia Temporis)
jparada
Posts: 433
Joined: Fri Jan 23, 2009 5:18 pm

Re: "strange" behavior of the CheckBox control

Post by jparada »

Hi Mr. Roberto,
I thought I did something wrong (as always)
Ups, I did it again.

Thanks

Best Regards
Javier
Post Reply