Posts: 1,058
Threads: 367
Joined: Oct 2007
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
Posts: 12,141
Threads: 143
Joined: Dec 2002
Replace line 14.
Function
OSD_Main
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
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.
Posts: 1,058
Threads: 367
Joined: Oct 2007
Many thanks. Best Regards. Simos.
Posts: 863
Threads: 197
Joined: Apr 2005
When will the next version released?
Has it many new features?
Thanks.
Posts: 12,141
Threads: 143
Joined: Dec 2002
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.
Posts: 863
Threads: 197
Joined: Apr 2005
Posts: 1,058
Threads: 367
Joined: Oct 2007
Posts: 863
Threads: 197
Joined: Apr 2005
Posts: 12,141
Threads: 143
Joined: Dec 2002
still testing and fixing bugs.
Posts: 1,000
Threads: 253
Joined: Feb 2008
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?
Posts: 12,141
Threads: 143
Joined: Dec 2002
Not much new. Didn't work with QM long time. The most interesting new features are in my previous post.
Posts: 12,141
Threads: 143
Joined: Dec 2002
Posts: 1,058
Threads: 367
Joined: Oct 2007
Thanks indeed. Best Regards. Simos.
Posts: 1,000
Threads: 253
Joined: Feb 2008
New format looks pretty useful. Straight to the point and easy to read in code. Thanks. F"text{variable1}text{variable2}".
Posts: 1,058
Threads: 367
Joined: Oct 2007
Dear Gintaras,
Function
tempf4
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.
Posts: 12,141
Threads: 143
Joined: Dec 2002
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}"
Posts: 12,141
Threads: 143
Joined: Dec 2002
Posts: 1,058
Threads: 367
Joined: Oct 2007
Thank you for a "speed of light" response.