Search found 27 matches

by Flinx
Sun Nov 28, 2021 2:37 pm
Forum: Wishlist
Topic: Slow moving objects
Replies: 0
Views: 49

Slow moving objects

In my current project a text is sometimes scrolled very slowly, moving up one pixel at a time. But because the regular shifting by one pixel is noticeable, I was looking for a better method. As a test I doubled my text objects, shifted them by one pixel and blended them with transparency depending o...
by Flinx
Sun Nov 28, 2021 2:28 pm
Forum: General programming
Topic: TextOut layer and BorderColor
Replies: 0
Views: 75

TextOut layer and BorderColor

While experimenting with text objects, I noticed that when the text is semi-transparent, the border color is partially used as font color. Is this a bug? Also, the program crashes when BorderColor gets an ARGB value. @DISPLAY {Width = 650, Height = 400, Color = #GRAY, Layers = True} SetFont(#SERIF, ...
by Flinx
Wed Oct 27, 2021 7:08 pm
Forum: General programming
Topic: ReadLine() »
Replies: 1
Views: 174

ReadLine() »

Hello, I noticed that text lines starting with the » character cause the line not to be read in correctly. The ReadLine function generally omits the second byte if it is a 0xBB if the line has only two bytes. With more bytes strange things happen. I suspect this has to do with searching for the BOM,...
by Flinx
Tue Oct 19, 2021 11:02 am
Forum: General programming
Topic: GetLayerStyle and changed color
Replies: 4
Views: 404

Re: GetLayerStyle and changed color

Thanks. An addition (although I think that is the same problem): Changing the text after only changing the color will cause the old color to be used again. A snippet with two additional lines: SetLayerStyle(name$, {Color=#WHITE}) DebugPrint("Color 2: ",GetLayerStyle(name$).color) Wait(50) SetLayerSt...
by Flinx
Mon Oct 18, 2021 7:16 pm
Forum: General programming
Topic: GetLayerStyle and changed color
Replies: 4
Views: 404

GetLayerStyle and changed color

Hello, while changing the color of a TextOut layer I found a situation where GetLayerStyle did not return the changed color. If I change font size or style, then it works. @DISPLAY {Color = #GRAY, Layers = True} name$="line" SetFont(#SERIF, 50) SetFontColor(#BLACK) TextOut(#CENTER, #CENTER, "Test", ...
by Flinx
Sat Oct 16, 2021 11:42 am
Forum: Wishlist
Topic: WordWrap
Replies: 3
Views: 535

Re: WordWrap

Thanks.
I forgot to specify that for a soft hyphen a hyphen should be inserted.
by Flinx
Sun Aug 29, 2021 5:48 pm
Forum: Wishlist
Topic: WordWrap
Replies: 3
Views: 535

WordWrap

Hello,

I would find it helpful if the WordWrap option of the text output functions would generate a wrap not only for spaces, but also for the Unicode characters zero width space (U+200B) and soft hyphen (U+00AD).

Ralf
by Flinx
Thu Aug 26, 2021 1:11 pm
Forum: General programming
Topic: Switch-Case and Continue
Replies: 2
Views: 702

Switch-Case and Continue

Hello, I have a Switch-Case statement inside of a Repeat loop. If I try to force the loop with the Continue statement after a Case statement the program freezes. With a level 2 argument the Continue works as I would have expected. Here is an example with a While loop: a=0 While a<3 a=a+1 DebugPrint(...
by Flinx
Wed Aug 04, 2021 11:00 am
Forum: General programming
Topic: DeserializeTable and EM character
Replies: 6
Views: 915

Re: DeserializeTable and EM character

Meanwhile I have found that the character was the result of a bad Unicode conversion, but I think that shouldn't matter for DeserializeTable() if a string can contain arbitrary data.
by Flinx
Tue Aug 03, 2021 12:08 pm
Forum: General programming
Topic: DeserializeTable and EM character
Replies: 6
Views: 915

DeserializeTable and EM character

The DeserializeTable function fails if a string contains the character EM (0x19). TestTable={} TestTable[0]= ByteChr(25) TestTable$=SerializeTable(TestTable) TestTable2= DeserializeTable(TestTable$) Using the Inbuilt adapter it does not fail. Because the strings for my program comes from outside I h...