04-22-2009, 03:32 PM
Don't know, this code works well on my computer.
Also tried to set rows/cols later, on button click, and works too.
Function Dialog45
Also tried to set rows/cols later, on button click, and works too.
Function Dialog45
\Dialog_Editor
typelib MSFlexGridLib {5E9E78A0-531B-11CF-91F6-C2863C385E30} 1.0
function# hDlg message wParam lParam
if(hDlg) goto messages
if(!ShowDialog("Dialog45" &Dialog45 0)) ret
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 ActiveX 0x54030000 0x0 2 2 196 48 "MSFlexGridLib.MSFlexGrid {6262D3A0-531B-11CF-91F6-C2863C385E30} data:E585A5D0AA4293D1A27487688334A52541D9E9297C0AC17CC416169478846C108A9AD1DEB75F40C804"
;4 Button 0x54032000 0x0 12 70 48 14 "Button"
;END DIALOG
;DIALOG EDITOR: "" 0x203000C "*" "" ""
ret
;messages
MSFlexGridLib.MSFlexGrid ms3
ms3._getcontrol(id(3 hDlg))
sel message
,case WM_INITDIALOG
,
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case 4
,ms3.Cols=5
,ms3.Rows=3
,
,case IDOK
,case IDCANCEL
ret 1