Search found 131 matches

by amyren
Fri Apr 17, 2020 7:32 pm
Forum: Newbie questions
Topic: Using \n in strings
Replies: 5
Views: 1769

Re: Using \n in strings

Thanks for the replies. The string I want to read is just a part of a larger text file, so I use Readline(1) to read one line at the time. Readstring works differently and I think combining this with Readline might complicate things. I just do it by using two lines for this in the file, and use Read...
by amyren
Tue Apr 14, 2020 7:59 am
Forum: Newbie questions
Topic: Using \n in strings
Replies: 5
Views: 1769

Re: Using \n in strings

I was thinking the other way, I did not intend to have that backslash-n written out as text. I wanted to know why the string read from the file is treated differently. Like what if I wanted the imported string to come out as two lines? If I save a file named test.tx containing one string: This is li...
by amyren
Mon Apr 13, 2020 11:05 pm
Forum: Newbie questions
Topic: Using \n in strings
Replies: 5
Views: 1769

Using \n in strings

If I make a string like this

Code: Select all

string$ = "Line one\nLine2"
Debugprint(string$)
That will come out as two lines

But if I have the exact same text in a file and read the line into a string, it will debugprint as a single line.

Why is this?
by amyren
Mon Apr 13, 2020 3:36 pm
Forum: Newbie questions
Topic: Alt + Enter crashes on dual monitor setup
Replies: 4
Views: 1630

Re: Alt + Enter crashes on dual monitor setup

Thanks, I will try setting nomodeswitch.
by amyren
Sun Apr 12, 2020 9:44 pm
Forum: Newbie questions
Topic: Alt + Enter crashes on dual monitor setup
Replies: 4
Views: 1630

Alt + Enter crashes on dual monitor setup

I tried my app on a windows laptop with an external sceen attached, set to extended desktop. The idea was to use a big screen tv as a second monitor to display the app. The app will alwas open on the laptop screen, and then I drag it to the extended screen. Then I can use alt + enter to get it fulls...
by amyren
Sun Mar 29, 2020 10:37 pm
Forum: Wishlist
Topic: Showing/Hiding the Action Bar While Running (Android)
Replies: 9
Views: 3809

Re: Showing/Hiding the Action Bar While Running (Android)

Thanks, I will try it.
by amyren
Fri Mar 27, 2020 10:23 am
Forum: Wishlist
Topic: Showing/Hiding the Action Bar While Running (Android)
Replies: 9
Views: 3809

Re: Showing/Hiding the Action Bar While Running (Android)

Will this also add the possibility to use SetDisplayAttributes() to force an app to go fullscreen in android?
As it is now, I could not get that to work.
by amyren
Fri Mar 27, 2020 10:08 am
Forum: Newbie questions
Topic: OnTouch X and Y coordinates on Android
Replies: 1
Views: 1126

OnTouch X and Y coordinates on Android

I just played around using the OnTouch event to get the X and Y values from an android device, and had some strugles. First I thought my touches did not get detected at all, but then I found they was just way out of place . It turns out that the OnTouch X and Y does relate to the physical screen res...
by amyren
Fri Feb 21, 2020 12:45 pm
Forum: Newbie questions
Topic: Preloading fonts and cross platform compatibility
Replies: 7
Views: 3702

Re: Preloading fonts and cross platform compatibility

Just realized that using the inbuilt fontengine will make the freetype2.library not needed @FONT 1, "DS-DIGITAL BOLD ITALIC", 32, {Engine = #FONTENGINE_INBUILT} Now it worked on OS3.14 without the library. I will create a WarpOS version as well to test later on MorphOS just to make sure. It turns ou...
by amyren
Fri Feb 21, 2020 12:12 am
Forum: Newbie questions
Topic: Preloading fonts and cross platform compatibility
Replies: 7
Views: 3702

Re: Preloading fonts and cross platform compatibility

I ran into the same problem running OS 3.14 under WinUAE. Then I found the cause of the problem with some help from SnoopDos. It is looking for freetype2.library and then it fails. After getting the library from aminet it did work. MorphOS does have truetype support, but when running the 68k version...