10-09-2007, 07:12 PM
From QM Help, "Dialogs" topic:
Quote:ShowDialog for modal dialog returns 1 on OK, 0 on Cancel. When you click some other push-button in dialog that does not have custom dialog procedure (that is, is not a "smart" dialog), it closes the dialog, and ShowDialog returns button id.
int button=ShowDialog("" 0)
out button
;BEGIN DIALOG
;0 "" 0x90C80A44 0x100 0 0 134 153 "Window Layout"
;3 Button 0x54032000 0x0 0 0 66 52 "1"
;4 Button 0x54032000 0x0 0 52 68 56 "4"
;5 Button 0x54032000 0x0 66 0 68 52 "2"
;6 Button 0x54032000 0x0 68 52 66 56 "6"
;7 Button 0x54032000 0x0 0 108 68 45 "Current Only"
;8 Button 0x54032000 0x0 68 108 66 45 "Current+Prior"
;END DIALOG
;DIALOG EDITOR: "" 0x2020100 "" ""
