kcvinu wrote:Does this library supports UNICODE ?.
No, as of now, the OGL does not support Unicode.
I did plan, however, to add Unicode support, and I will make this a priority in the upcoming updates (this will hopefully be added in the next major version). Just realised that it will not be as easy as I had thought. I will have to add Unicode versions of the methods and properties which use unicode (and may have to re-program the library if worst comes to the worst). I have a few ideas which make Unicode inclusion much easier than this, though.
The answer? No, it doesn't, but it will.
The probably most used Function in OGL optimized ...
Recoded Function waitevent(ByRef msg As MSG) As Boolean for speed & readability:
Code: Select all
Function waitevent(ByRef msg as MSG) As Boolean
Dim As Long ret = GetMessage(@msg, 0, 0, 0) ' correct ret Type = Long
' only one single line If - without any additional comparisons, e.g. ret <> 0
If ret Then TranslateMessage(@msg) : DispatchMessage(@msg)
Function = CBool(ret) ' Type cast to Boolean
Thanks MrSwiss! I have already adapted most datatypes to the 32-bit "equivalents" according to your advise, but thanks for the other optimisations!
PaulSquires wrote:And it doesn't look like the library is High-DPI aware either?
You know, listening to other programmers really helps me realise I'm just a beginner at this...
I looked it up, and I think I can conclude that: no, it is not.
I will have to research into the subject more before I can include it into the OGL.
Thanks for bringing the subject to my attention.