Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro contents marked up in output window and dlg rich edit
#1
How can I:
  • Send the contents of a macro marked up to the qm output pane (just like when you delete macro and then focus on it in the recycle bin?). If possible courier font.
  • Send the contents of a macro to an multiline editfield (rich edit?) all marked up (exactly just like when you import a .qml file and see it in the "QM File viewer"- window). Without all the buttons but if possible macro content in courier font.
    Edit:
  • I have a macro in "init2" defined like this: mac "set_qm_at_boot" it set's up the QM environment at boot but I do not know how to set the code editor at dual pane horizontal ("Bottom Editor") with the macro "_BOTTOM_QM_" loaded into the bottom pane.
#2
Macro Macro2449
Code:
Copy      Help
str s=
;out "test"

out F"<><code>{s}</code>[]<help #IDP_F1>Read more</help>"

Macro Macro2452
Code:
Copy      Help
;ShowText also can display QM-formatted text. Not in exe.

str s=
;out "test"

ShowText "" s 0 2

Function Dialog150
Code:
Copy      Help
\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
#3
THANK YOU!!!


Forum Jump:


Users browsing this thread: 1 Guest(s)