Search found 280 matches

by Flinx
Sun Mar 09, 2025 6:56 pm
Forum: Newbie questions
Topic: DebugPrint under Linux
Replies: 4
Views: 565

Re: DebugPrint under Linux

When I start the interpreter in Mint using the terminal, I get the debug output via standard output in the terminal window. Redirecting to a file also works without specifying the channel.
This answer may not help much now, but that seems to be the normal behavior.
by Flinx
Sat Mar 08, 2025 10:46 am
Forum: Wishlist
Topic: MakeButton to return ID also when ID is given
Replies: 4
Views: 1171

Re: MakeButton to return ID also when ID is given

And if you think you really need it in this way, then you could make your own function: Function p_MakeButton(ID, ...) Local nid=MakeButton(ID, Unpack(arg)) If IsNil(nid) Then nid=ID Return(nid) EndFunction ID=2 NewID = p_MakeButton(ID, #SIMPLEBUTTON, 100, 100, 100, 100, {OnMouseDown = Function() De...
by Flinx
Sat Mar 01, 2025 12:20 pm
Forum: Newbie questions
Topic: How to move graphics over non-hollywood screen?
Replies: 6
Views: 9606

Re: How to move graphics over non-hollywood screen?

Yes, I also think you'll have to compare the coordinates of the displays at the MouseUp event of the moved display and then decide what to do. For windows that are not in focus, this is probably the only way to do it.
by Flinx
Fri Feb 28, 2025 6:27 pm
Forum: Hollywood bugs
Topic: IsMusic() PNG problem
Replies: 7
Views: 15863

Re: IsMusic() PNG problem

Ok, I've now tried it with Hollywood 10 and with the current Hollywood master and with the current master the file lock problem is gone so it must've been the same bug that I linked to above. So consider this fixed. Thanks. Now what was the other issue? Hollywood refusing to play the music when usi...
by Flinx
Mon Feb 24, 2025 4:40 pm
Forum: Hollywood bugs
Topic: WriteTable cant handle userdata as tableindex - bug or a feature?
Replies: 6
Views: 6038

Re: WriteTable cant handle userdata as tableindex - bug or a feature?

Perhaps the functioning indices are only side effects. If you take the manual literally, then only
positive integers, negative integers, floating point values and strings are suitable as indices, as far as I can see.
by Flinx
Sun Feb 23, 2025 1:09 pm
Forum: General programming
Topic: Safe to remove items from table when going backwards?
Replies: 2
Views: 4995

Re: Safe to remove items from table when going backwards?

I suppose now it is completely safe, right? Should be safe, I think. mytable = {"0","1","2","3","4","5"} mytable[3] = "toberemoved" For n = TableItems(mytable)-1 To 0 Step -1 If mytable[n] = "toberemoved" Then RemoveIte...
by Flinx
Thu Feb 13, 2025 12:04 pm
Forum: General programming
Topic: StartTimer slows down more times it is used.
Replies: 6
Views: 8053

Re: StartTimer slows down more times it is used.

Maybe a better way is to use only one timer, hold the time of the first click in a global variable and check the difference at each next click.
by Flinx
Sun Feb 09, 2025 5:10 pm
Forum: Newbie questions
Topic: How to move graphics over non-hollywood screen?
Replies: 6
Views: 9606

Re: How to move graphics over non-hollywood screen?

Because I find the topic interesting, I did some experimenting. How about creating a third display for moving, which takes over the graphic object if necessary? You can move it in the following way: @DISPLAY {Width = #NATIVE, Height = #NATIVE, Hidden = True} sizeX=30 sizeY=20 CreateBrush(1, 2*sizeX+...
by Flinx
Sun Feb 09, 2025 2:21 pm
Forum: Windows IDE
Topic: Undo
Replies: 1
Views: 9041

Undo

I occasionally had problems with the undo function that I have not been able to reproduce so far. Since I have now realized that it has to do with the automatic indentation, I now have an example. Copy this in the IDE editor: For i=1 To 100 DebugPrint(i) Next Change the DebugPrint(i) to DebugPrint(k...
by Flinx
Sun Feb 09, 2025 11:53 am
Forum: Hollywood bugs
Topic: IsMusic() PNG problem
Replies: 7
Views: 15863

Re: IsMusic() PNG problem

MP3 runs through a lot of different backends. Which operating system are you on? Are you using the AVCodec plugin or an OS-native streaming backend? Tested with Linux-Arm/AVCodec (Bugreport came from Raspberry), Windows 32 and 64 Bit, Linux Mint 22 64 Bit, both with and without AVCodec, so I thougt...