Forum Replies Created
-
AuthorPosts
-
+1 for the MojoX GUI docs!
Pre-built v1.1.03 binaries for monkey2 are also up at itch.io here – actually, you’ll need them for admob!
Thanks! Already wondered why there is no Patreon reward for the last 2 month.
EDIT: Ahh, looks like i missed the email about prebuilt version on itch.io
That would be nice. My MX2 folder also grows and grows after building
some files and projects. It may grow to 1 or 1.5 GB, the more you compile…> anyone happen to know how to do the equivalent of chr$(n)
It is
Monkey1s := String.FromChar(n)If you like to make it a function for compatibility with some old code:
Monkey123456789101112131415161718192021Function Asc:Int(input:String, index:Int=0)Return input[index]EndFunction Chr:String(character:Int)Return String.FromChar(character)EndFunction Main()Local out:StringFor Local i := 1 To 255out += Chr(i)NextPrint outFor Local i := 0 To 4Print Asc("Hello",i) + " - " + Chr(Asc("Hello",i))NextEndThanks Mark! My question was, do you want any help with it, and if so,
what is the best way? Using github for adding/improving docs by external people?s[0] is what Asc(s) is in BASIC programming languages.
If you like functions like Asc(), make it a function.Calling an extra function like Asc() has some overhead,
and we don’t have Macro’s in MX2, but it can be helpful
in the process of learning and converting older codes.Yes, I love those cases… and also hate them sometimes… with the goal of fixing
it in the development environment I currently use.
I am testing the DPI-awareness of MX2 to understand the system and make it better
and more useful. Maybe perfect – as perfect would be nice. Perfection is a nice goal.> Let’s leave docs for Mark
That’s why I’m asking how the international community can help.
Most classes are undocumented, there are only very few documented classes.“Let’s leave docs for Mark” did not help. Most stuff is still undocumented!
Best thing would be if many people work together. Mark could check the
spelling and mistakes, but at least people could help.
Or, Mark gives direct access to the sources to 5 to 10 people, to enhance
the docs. Let’s call it ‘documentation team’.Docs need improvement, and many docs are not written yet. I hope Mark
can give a clear answer how he would like to change that and how we
should collaborate – how the users can help.
Github, with different branches, may not be the best option for
collaborating documentation management.Everybody of us has to read the sources to find out what all the
undocumented classes actually do. After finding it out, it would
make sense to actually contribute that finding to the official docs.
After a while of guessing, we could have documented classes, so the
next generation can read the docs instead of reading the sources,
trying to understand the structure, inheritations, and guessing
what it should do.The problem in the image above is not my code. It is the Ted2Go editor when opened on
a normal screen, and then moved to a Hi-DPI screen. It’s a bug, or missing feature,
in Ted2(go) or MX2.
You can test it if you switch to a Hi-DPI mode while Ted2(Go) is running.In my opinion the Ted2 fonts are too big, on a normal screen. Using ‘zoom out’ 2 or 3 times helps.
On macOS you could probably use:
Objective-C1[[NSScreen mainScreen] userSpaceScaleFactor];to get the scale factor for the fonts. But this example shows it only for
the main screen. It’s a bit more complicated when you use mixed screens and
move a window from 100 DPI screen to a 200 DPI screen at runtime.
NSWindow has also such a method, and it’s probably better to ask the window
for the scale factor, so if the window gets moved onto another screen, the scale factor
should change/update.What’s the best way to help improving the documentation, Mark?
Make a copy on github, add/edit monkeydoc, and submit it on github?
Add help to latest master, or is it possible to access/fork the
latest developer branch?Using the flag WindowFlags.HighDPI, the window size gets doubled automatically
when moving a window from normal screen to a HiDPI screen.
But MX2 does not update the render screen size. With Ted2Go it looks like this:Attachments:
Thanks for the hint, AdamStrange!
@codifies:
Scaling is not an option for a GUI system. You may have seen this on Windows,
if you have a high DPI display and set the Windows scaling to 150%, for example.
If an application is not DPI-aware, the OS is scaling the controls, and the result
is blurry looking controls and fonts.
If an application is aware of DPI, it looks clear and crisp on all displays.January 21, 2017 at 9:30 am in reply to: Maybe we should give up on the BlitzMax crowd and close the forum. #6687It’s funny to talk about “freedom of speech”.
It has nothing to do with reality in a commercial environment,
but some people are unable to get it. Those people think we
have to accept EVERYTHING, just for the sake of ‘free speech’.That’s just not the case. The commercial world does not work like this…
And in the political world, you go to jail, for your ‘free speech’.
That’s a fact here in Germany. If you know the real reasons and
process of WWII, you go to jail, if you mention it. That’s reality.January 21, 2017 at 8:36 am in reply to: Maybe we should give up on the BlitzMax crowd and close the forum. #6684> you can’t ban people for opinions.
You can (and should), if it is against the interests of the company.
If a site or forum is run by a company, the company is the boss.
The company does not need to accept opinions against them or opinions
that harm the company or their products.Are you living in a dream world?
-
AuthorPosts
