Search found 188 matches
- Mon Mar 18, 2024 3:13 pm
- Forum: General programming
- Topic: Chr(0,#ENCODING_RAW)
- Replies: 3
- Views: 134
Re: Chr(0,#ENCODING_RAW)
dont forget strings terminated with a 0 :) This is Hollywood, not C :) . In Hollywood strings can contain binary data, this would not be possible with zero terminated strings. From the manual: "In many programming languages a zero character defines the end of the string. Not so in Hollywood. H...
- Sun Mar 17, 2024 5:18 pm
- Forum: General programming
- Topic: Chr(0,#ENCODING_RAW)
- Replies: 3
- Views: 134
Chr(0,#ENCODING_RAW)
I expected Chr(n,#ENCODING_RAW) and ByteChr(n) to return the same result, but Chr(0,#ENCODING_RAW) returns an empty string. Is that correct?
- Mon Mar 04, 2024 11:06 am
- Forum: Hollywood bugs
- Topic: Run and Execute on Linux and Mac
- Replies: 2
- Views: 183
Re: Run and Execute on Linux and Mac
No, sorry, I could have thought of that myself. Thanks!
- Sun Mar 03, 2024 11:20 am
- Forum: Newbie questions
- Topic: Missing mouse selection
- Replies: 4
- Views: 188
Re: Missing mouse selection
You should not poll the mouse button because there may be parts of the program that take more time than the mouse button is pressed. The appropriate way is the event library. Replace the If IsLeftMouse() part with an event initialization before entering the main loop. And you need a WaitEvent() or C...
- Wed Feb 28, 2024 5:08 pm
- Forum: Hollywood bugs
- Topic: Run and Execute on Linux and Mac
- Replies: 2
- Views: 183
Run and Execute on Linux and Mac
Run() and Execute() do not work on Linux and Mac when used with relative paths. I don't seem to be the first one who had trouble with this. There is no error message either.
The problem can be avoided by executing a CanonizePath() on the argument file$
The problem can be avoided by executing a CanonizePath() on the argument file$
Code: Select all
Run(CanonizePath(file$))
- Fri Feb 16, 2024 10:41 am
- Forum: Hollywood bugs
- Topic: GetErrorName() with bad arguments
- Replies: 1
- Views: 155
GetErrorName() with bad arguments
I accidentally set a variable to True in certain situations, which should be displayed later using GetErrorName().
So I noticed that GetErrorName() causes a memory access violation when it is called with positive values.
So I noticed that GetErrorName() causes a memory access violation when it is called with positive values.
- Tue Feb 13, 2024 4:44 pm
- Forum: Wishlist
- Topic: OnMouseUp to work whenever mouse is on top.
- Replies: 2
- Views: 451
Re: OnMouseUp to work whenever mouse is on top.
Therefore a wish: Make "OnMouseUp" actually trigger when it is done above the button, no matter how it got there. This would break a lot of Hollywood programs. At best, a new function would be acceptable. But I'm answering because I don't like the example. You delete and draw with 40Hz bo...
- Tue Feb 06, 2024 3:26 pm
- Forum: General programming
- Topic: Couple of Hollywood Innerworkings questions
- Replies: 5
- Views: 315
Re: Couple of Hollywood Innerworkings questions
If I don't understand such things, I always try with DebugPrint. 1: Tbl1={1,2,3} Tbl2={4,5,6} ForEach(Tbl1, Function(NotInUse, Content1) DebugPrint("Tbl1: ",NotInUse, Content1) ForEach(Tbl2, Function(NotInUse, Content2) DebugPrint(" Tbl2: ",NotInUse, Content2) EndFunction) EndFun...
- Tue Feb 06, 2024 2:45 pm
- Forum: Hollywood bugs
- Topic: Alpha not working on Vector graphics
- Replies: 5
- Views: 446
Re: Alpha not working on Vector graphics
I have no explanation, but a workaround:
Code: Select all
DrawPath(1, 200, 200, #RED, {Transparency=90})
- Fri Feb 02, 2024 7:42 pm
- Forum: RapaGUI
- Topic: Updating listviews...
- Replies: 25
- Views: 2453