Search found 24 matches

by Flinx
Tue Oct 19, 2021 11:02 am
Forum: General programming
Topic: GetLayerStyle and changed color
Replies: 3
Views: 152

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: 3
Views: 152

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: 2
Views: 333

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: 2
Views: 333

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: 1
Views: 542

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: 5
Views: 656

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: 5
Views: 656

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...
by Flinx
Tue Jun 01, 2021 1:56 pm
Forum: Windows IDE
Topic: IDE freeze
Replies: 2
Views: 1223

IDE freeze

A certain operating sequence causes the IDE to freeze. Unfortunately this only happens with the full source code of my current project, I can't find a snippet that does the same.
How should I submit this suspected bug? (The code is not secret, if that helps.)
by Flinx
Tue Jun 01, 2021 1:44 pm
Forum: General programming
Topic: OnMusicEnd
Replies: 13
Views: 2016

Re: OnMusicEnd

I see that my second example was nonsense because I simply added SetInterval, the real program structure is different. In my script I have a user interface where a click should start the same action like the OnMusicEnd event: Close the current music and skip to the next. This is in the function p_To...
by Flinx
Sat May 15, 2021 2:55 pm
Forum: General programming
Topic: OnMusicEnd
Replies: 13
Views: 2016

Re: OnMusicEnd

That means, I should not call CloseMusic() from the EventHandler for OnMusicEnd?
Nevertheless, with a try by IsMusicPlaying() the program works.

My next step is to find out what avcodec makes better in Windows than in Linux.