11-01-2014, 12:34 PM
Macro Macro2449
Macro Macro2452
Function Dialog150
Macro Macro2452
;ShowText also can display QM-formatted text. Not in exe.
str s=
;out "test"
ShowText "" s 0 2
Function Dialog150
\Dialog_Editor
;QM uses Scintilla-based controls to display QM-formatted text, links, colors and images. Raw Scintilla does not support it, it is implemented in QM.
;Most such control classes are used only by QM. Editor, output, statusbar, import-preview. They cannot be used in user dialogs.
;For user dialogs there is class QM_DlgInfo. It is undocumented, because unavailable in exe.
;Supports everything like the QM output control. Code, links, colors, images. Example - the Resources dialog. Use tags, as documented in:
QmHelp "IDP_F1"
;QM_DlgInfo styles:
;;;1 - don't wrap.
;;;2 - wrap-indent.
;;;4 - white instead of yellow.
;Example. The first control has default style. The second has styles 1 and 4.
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 224 136 "Dialog"
;3 QM_DlgInfo 0x54000000 0x20000 0 0 56 48 "<><code>out ''I can see colors''</code>"
;4 QM_DlgInfo 0x54000005 0x20000 64 0 58 48 "<><code>out ''I can see colors''</code>"
;1 Button 0x54030001 0x4 116 116 48 14 "OK"
;2 Button 0x54030000 0x4 168 116 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040201 "*" "" "" ""
if(!ShowDialog(dd 0 0)) ret