Search found 603 matches

by lazi
Sun May 23, 2021 8:31 pm
Forum: Hollywood bugs
Topic: Documentation problems
Replies: 35
Views: 32963

Re: Documentation problems

DisplayBGPicPart() doc has an example which has old (pre 1.5) syntax and it fails in new versions. The optional dx, dy parameters missing before the table. width = GetAttribute(#DISPLAY, 0, #ATTRWIDTH) height = GetAttribute(#DISPLAY, 0, #ATTRHEIGHT) id = GetAttribute(#DISPLAY, 0, #ATTRBGPIC) CreateB...
by lazi
Sun May 09, 2021 4:10 pm
Forum: RapaGUI
Topic: Is RapaGUI slower on Windows 10 than on other platforms?
Replies: 10
Views: 3537

Re: Is RapaGUI slower on Windows 10 than on other platforms?

It does not fullfill "C" in MCVE. :-)

Anyway, yes I found it too that filling listitems is far slower on windows than Amiga. So please feed this topic with useable information that helps to solve this problem.
by lazi
Fri May 07, 2021 11:46 am
Forum: Newbie questions
Topic: Double terminated string problem
Replies: 3
Views: 1629

Re: Double terminated string problem

Thanks jPV! Yes I made a mistake with exchanging -1 and false. Tested ArrayStr() speedwise and it is obviously slower than findstr(). This is the fastest way I found yet: Function strnorm(s$) ;it can happen that a string has a zero byte inside, not just the end of the string ;this function crops the...
by lazi
Fri May 07, 2021 1:19 am
Forum: Newbie questions
Topic: Double terminated string problem
Replies: 3
Views: 1629

Re: Double terminated string problem

A possible solution: Function strnorm(s$) ;it can happen that a string has a zero byte inside, not just the end of the string ;this function crops the garbaged end from the string Local sl=FindStr(s$,"\000") Return (IIf(sl=False, s$, LeftStr(s$,sl))) EndFunction Do you know a better one?
by lazi
Fri May 07, 2021 12:19 am
Forum: Newbie questions
Topic: Double terminated string problem
Replies: 3
Views: 1629

Double terminated string problem

Let's take the situation that we have a string which has a zero byte in there and not at the last position. You may think that this is what happens when somebody lurking with dark occult code lines. Just pour it with holy water and avoid it next time. But please try to not questioning the origin of ...
by lazi
Wed May 05, 2021 8:37 pm
Forum: Showcase
Topic: OnScreenKeyboard for Touch Screens
Replies: 2
Views: 1651

Re: OnScreenKeyboard for Touch Screens

There was an attempt to make such tool for OS4. Here is the amigans topic: https://www.amigans.net/modules/xforum/viewtopic.php?post_id=93570#forumpost93570 Unfortunately the links are not working anymore, but ask LiveForIt! Can't find on my machine, but it worked if I remember correctly. According ...
by lazi
Sat May 01, 2021 7:37 am
Forum: Newbie questions
Topic: External Ip Address?
Replies: 7
Views: 2739

Re: External Ip Address?

This is what I use for get WAN IP of the network: Function p_getip() Local err=?OpenConnection (1,"checkip.dyndns.org",80) If err=0 SendData(1,"GET index.html HTTP/1.0\r\n\r\n") Local a$=ReceiveData(1,#RECEIVEALL) a$=UnrightStr(a$,FindStr(a$,"<body>")+6) a$=LeftStr(a$,FindStr(a$,"</body>")) Return(a...
by lazi
Sun Apr 04, 2021 10:01 pm
Forum: Announcements
Topic: Hollywood 9.0: Sugarcane released!
Replies: 43
Views: 22843

Re: Hollywood 9.0: Sugarcane released!

This topic is for the great news that the most actively developed Amiga software has a new release. Please use the off-topic section of this board for personal thoughts. I am really interested all about you, dear friends in Hollywood, but please keep in mind that a new user may be disturbed if the p...
by lazi
Sun Mar 28, 2021 12:33 pm
Forum: General programming
Topic: InstallEventHandler question regarding the function
Replies: 2
Views: 1458

Re: InstallEventHandler question regarding the function

Not sure I understand your problem, but AFAIK self has meaning only inside the oop function.

If you need to update OOP: function's self.myvariable outside the OOP: function then you should call the variable OOP.myvariable.

If you are familiar with that, please try to rephrase the problem.
by lazi
Mon Mar 22, 2021 2:45 pm
Forum: Announcements
Topic: Hollywood 9.0: Sugarcane released!
Replies: 43
Views: 22843

Re: Hollywood 9.0: Sugarcane released!

Great. Its some time ago that I reported a glitch which caused that some fonts couldnt be linked. Is the fix part of this release? I don't know about the specific problem, but found this entry in the history: Fix: Some TrueType fonts which contained style keywords in their face name (e.g. "Albertus...