Search found 825 matches

by Bugala
Wed Sep 18, 2019 11:52 am
Forum: Hollywood bugs
Topic: function table:continue() not allowed
Replies: 6
Views: 397

function table:continue() not allowed

On Windows 10 Windows IDE Hollywood 8:

Code: Select all

test = {}

Function test:continue()
EndFunction
says "line 3: variable expected!"


Bug or a feature?
by Bugala
Thu Sep 12, 2019 12:30 pm
Forum: General programming
Topic: Any problem in creating and deleting buttons all the time?
Replies: 5
Views: 375

Re: Any problem in creating and deleting buttons all the time?

And another question, will msg.action always be containing only one option? That basically user could both be moving the mouse and clicking a button at the same time, but will it then report only OnMouseDown for example? And what about pushing both mouse buttons down at the same time? Basically I do...
by Bugala
Thu Sep 12, 2019 10:16 am
Forum: General programming
Topic: Any problem in creating and deleting buttons all the time?
Replies: 5
Views: 375

Re: Any problem in creating and deleting buttons all the time?

@airsoftsoftwair Having couple of problems to overcome and remembering amyrens code, I am starting to think that best solution is to make my own button code similar to amyrens, that instead of using #SIMPLEBUTTONS, I would be using similar handler_func as amyren is using on basis of finding out if o...
by Bugala
Thu Sep 12, 2019 10:06 am
Forum: General programming
Topic: Any way to detect if DoubleBuffer is on?
Replies: 6
Views: 271

Re: Any way to detect if DoubleBuffer is on?

airsoftsoftwair wrote:
Wed Sep 11, 2019 8:31 pm
You can query #ATTRDOUBLEBUFFER for #DISPLAY.
Ah, great. Figured there might be something like that existing, just couldn't figure out where to look at, although, should have realized now that I see it.
by Bugala
Wed Sep 11, 2019 8:08 pm
Forum: General programming
Topic: Any way to detect if DoubleBuffer is on?
Replies: 6
Views: 271

Re: Any way to detect if DoubleBuffer is on?

Disabling double buffer would be clean, but then I would lose the benefits of double buffer. Error handling is not really a clean way, as a dirty trick I was thinking of disabling error messages and execute the command, then turn error handling back on, but would rather not do that. Current solution...
by Bugala
Wed Sep 11, 2019 3:38 pm
Forum: General programming
Topic: Any way to detect if DoubleBuffer is on?
Replies: 6
Views: 271

Any way to detect if DoubleBuffer is on?

Any way to detect if DoubleBuffer is on or off?

I am making this function that basically starts by turning doubebuffer off, but at beginning it is not on, and therefore comes error message.

I can get around this using dirty ways, but would prefer a clean way.
by Bugala
Wed Sep 11, 2019 3:28 pm
Forum: General programming
Topic: Any problem in creating and deleting buttons all the time?
Replies: 5
Views: 375

Re: Any problem in creating and deleting buttons all the time?

Thanks for giving that example, but it is not a question of that I couldnt change buttons functionality on the fly, it has to do with programming technic. To show what I am after, I will use some almost pseudocode with your example: OnMouseUp: If mode=1 then DoMouseUpFunction1 if mode=2 then DoMouse...
by Bugala
Tue Sep 10, 2019 2:36 pm
Forum: General programming
Topic: Any problem in creating and deleting buttons all the time?
Replies: 5
Views: 375

Any problem in creating and deleting buttons all the time?

I have used to programming using layers. However, with my latest game (still havent got to final release it, but soon perhaps) I instead tried non layer approach, and I liked it quite much actually and I am now thinking using it in my next project too. As I am thinking on how to solve the buttons pr...
by Bugala
Sat Aug 31, 2019 12:31 pm
Forum: Hollywood bugs
Topic: OnKeyUp Not Always Working
Replies: 5
Views: 448

Re: OnKeyUp Not Always Working

I cant repeat the problem. How long exactly and how many times do you have to do that for it to happen, and on what machine and version? Mine is WIndows 10, Hollywood 8, and I tried holding key down for 5 seconds down for maybe 10 times, and it always worked as expected. Only time I get unexpected r...
by Bugala
Fri Aug 16, 2019 8:27 am
Forum: General programming
Topic: GetSystemLanguage() return value
Replies: 3
Views: 319

Re: GetSystemLanguage() return value

To clarify a bit just in case you are not familiar with this. for example #LANGUAGE_FINNISH is a constant, which means that it is some number. It is basically same as x=1 x+4=5 except that the value of variable x can change, for example x=1 debugprint(x) x=2 debugprint(x) however, constant (const) a...