Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QM Grid
#1
I want to create a qm grid of 3*3 in which all columns shall be non editable and every 10 sec columns value are increased by 5. Columns with numeric value needs to be right aligned
#2
Function Dialog60
Code:
Copy      Help
\Dialog_Editor
function# hDlg message wParam lParam
if(hDlg) goto messages

str controls = "3"
str qmg3x
qmg3x="[][][]" ;;add 3 empty rows
if(!ShowDialog("Dialog60" &Dialog60 &controls)) ret

;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 223 135 "Dialog"
;1 Button 0x54030001 0x4 120 116 48 14 "OK"
;2 Button 0x54030000 0x4 170 116 48 14 "Cancel"
;3 QM_Grid 0x56031041 0x0 6 6 96 48 "0x12,0,0,0,0x0[]A,,,[]B,,,[]C,,,"
;END DIALOG
;DIALOG EDITOR: "" 0x2030205 "" "" ""

ret
;messages
DlgGrid g.Init(hDlg 3)
int-- k
sel message
,case WM_INITDIALOG
,SetTimer hDlg 1 1000 0
,goto g1
,
,case WM_TIMER
,sel wParam
,,case 1
,,;g1
,,str s=k; k+1
,,g.CellSet(2 2 s)
,
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
#3
DlgGrid returns unknown identifier. Is something incomplete
#4
Need newer QM.
#5
Now how can I make this dialog box run on top of all windows without receiving any focus
#6
In dialog editor add WS_EX_TOPMOST style.
#7
That's perfect thank you


Forum Jump:


Users browsing this thread: 1 Guest(s)