Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
OnScreenDisplay - Font style
#1
I am wondering whether - if yes how? - it is possible to pass font style (ie. bold) as a parameter to OnScreenDisplay, or should you write your own version of OSD_Main for this purpose.

Thanks
#2
Replace line 14.
Function OSD_Main
Code:
Copy      Help
v.hfont.Create(v.fname iif(v.fsize v.fsize 24) v.flags>>8&3)

It adds flags 0x100 and 0x200 for bold and italic.

Example
Macro Macro1330
Code:
Copy      Help
OnScreenDisplay "Bold" 0 0 200 "" 12 0 0x100
OnScreenDisplay "Italic " 0 0 250 "" 12 0 0x200 ;;note: there is a space at the end of the string, to avoid clipping

It is how will be in next QM.
#3
Many thanks. Best Regards. Simos.
#4
When will the next version released?

Has it many new features?

Thanks.
#5
I can upload it tomorrow if somebody wants to test. Not final version but stable.

Some bug fixes.
Variables in strings: out F"text{variable1}text{variable2}text"
Added many functions previously available in forum, and some new. Classes Sqlite, MenuPopup, DateTime.
C language. Compile and run code on the fly. Create dlls and exes.
And more.
#6
Count on me...
#7
And me too, Please!
#8
any news?
#9
still testing and fixing bugs.
#10
A new version...2.3.2? Do you have the "What's New" file ready so we can take a look into what to expect?
#11
Not much new. Didn't work with QM long time. The most interesting new features are in my previous post.
#12
http://www.quickmacros.com/beta/quickmac.exe
#13
Thanks indeed. Best Regards. Simos.
#14
New format looks pretty useful. Straight to the point and easy to read in code. Thanks. F"text{variable1}text{variable2}".
#15
Dear Gintaras,


Function tempf4
Code:
Copy      Help
str sv=F"variables: i={i}, s=''{s}'', d={d%%.5G}"
out sv

Aborts with message :
Error (RT) in tempf4: Exception 0xC0000005. Access violation. Cannot read memory at 0x400921FB. In qm.exe at 0x48652C (0x400000+0x8652C).

Please advise.
#16
Thank you. Until QM 2.3.2.1 don't use custom format with doubles and longs.

str sv=F"variables: i={i}, s=''{s}'', d={d}"
#17
Fixed in 2.3.2.1
http://www.quickmacros.com/beta/quickmac.exe
#18
Thank you for a "speed of light" response.


Forum Jump:


Users browsing this thread: 1 Guest(s)