Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Change QM-Editor font temporarily using shortcut
#1
I am sorry if disturbing, I probably miss something, but I have the following question regarding the way you may change QM-Editor font temporarily, using for example a shortcut/hotkey. Furthermore, looking in QM-Options one understands that there exists a "menu Edit -> View" option. Nevertheless I was not able to locate this possibility. Any advice is mostly welcome.


Attached Files Image(s)
       
#2
-> View
should be
-> Editor Options.

Font maybe can be temporarily changed with Scintilla API, but it is too dirty and not easy. Better automate changing font through Options dialog.

Macro Macro2792
Code:
Copy      Help
str fontName="Courier New"
str fontSize=15

act _hwndqm
key AF12 C{TTT} T D V Ca (fontName) T Ca (fontSize) Y Y
#3
Dear Gintaras,

Thank you for your useful advice. I attach herewith the code modified which it worked in my case (Windows XP).

Best regards

Macro temp
Trigger SF12     Help - how to add the trigger to the macro
Code:
Copy      Help
str fontName="Courier New"
str fontSize=15

act _hwndqm
key AF12
0.25
key C{TTT} T D V SEB  (fontName)  T SEB (fontSize)   Y Y
#4
I have found that using function
Quote:QmDlgInfoControlSetFont
(Coloured text with ShowText) you can change the fonts in QM Editor and QM Output windows, for example:

Quote:int h=GetQmCodeEditor; QmDlgInfoControlSetFont h "Courier New" 12


Forum Jump:


Users browsing this thread: 1 Guest(s)