Code: Select all
#include "hmg.ch"
Function Main()
DEFINE WINDOW Form_1 ;
AT 0,0 ;
WIDTH 200 ;
HEIGHT 200 ;
MAIN;
TITLE 'CheckButton Test'
@ 20,20 CHECKBOX CheckBox_1 CAPTION "Control Type" WIDTH 150 HEIGHT 50 ;
ON CHANGE MsgInfo("Control type: "+GetControlType("CheckBox_1","Form_1"),(This.Name))
@ 70,20 CHECKBUTTON CheckButton_1 CAPTION "Control Type" WIDTH 150 HEIGHT 50 ;
ON CHANGE MsgInfo("Control type: "+GetControlType("CheckButton_1","Form_1"),(This.Name))
END WINDOW
CENTER WINDOW Form_1
ACTIVATE WINDOW Form_1
Return Nil
At least in HMG/IDE we have these names for control types. Or am I wrong about it ?
I've checked at C:\hmg.3.4.3\SOURCE\h_checkbox.prg and _DefineCheckButton function is declared IMO wrongly as "CHECKBOX"
Ths same occurs at HMG Extended. Please note Mr. Filatov