Search found 556 matches

by PEB
Sun Sep 19, 2021 4:38 am
Forum: Hollywood bugs
Topic: Wrong value for ATTRHEIGHT
Replies: 5
Views: 489

Re: Wrong value for ATTRHEIGHT

Constants such as #ATTRWIDTH and #ATTRHEIGHT have number values assigned to them (0 and 1 respectively). DebugPrint(#ATTRWIDTH, #ATTRHEIGHT) But when you weren't using the constants, ATTRWIDTH and ATTRHEIGHT were taken as variables that had not yet been assigned a value, so they were equal to zero (...
by PEB
Sun Sep 19, 2021 12:59 am
Forum: Hollywood bugs
Topic: Wrong value for ATTRHEIGHT
Replies: 5
Views: 489

Re: Wrong value for ATTRHEIGHT

Your code is a bit wrong.
Try this instead:

Code: Select all

DebugPrint(GetAttribute(#DISPLAY, 1, #ATTRWIDTH))
DebugPrint(GetAttribute(#DISPLAY, 1, #ATTRHEIGHT))
by PEB
Fri Aug 27, 2021 3:19 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 12
Views: 5261

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

I think the problem might be solved by delaying things like moai.get("Main", "Height") and GetAttribute(#DISPLAY, 1, #ATTRSCALEHEIGHT) until after the display has settled on its new attributes. It seems like the numbers are different initially (when first started and right after a screen rotation) c...
by PEB
Thu Aug 19, 2021 12:14 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 12
Views: 5261

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

It probably goes back to the Hollywood 8 version of the Android player.
by PEB
Sun Aug 15, 2021 8:40 am
Forum: Hollywood bugs
Topic: Bug with Proportional Scaling in RapaGUI 2.0 on Android
Replies: 12
Views: 5261

Re: Bug with Proportional Scaling in RapaGUI 2.0 on Android

With the newest RapaGUI (and Hollywood Player for Android), the code that worked before has a couple problems now. I found a workaround for one of the problems by delaying the first scaling using SetTimeout(), though there's probably a better way of handling that. (See code below.) However, the scal...
by PEB
Thu Jul 29, 2021 6:59 am
Forum: RapaGUI
Topic: RaiseOnError() with RapaGUI on Latest Android Player
Replies: 9
Views: 1128

Re: RaiseOnError() with RapaGUI on Latest Android Player

Yes, RunCallback() does work and is better. Thanks for the suggestion!
(I keep forgetting to use that new function.) :oops:
by PEB
Sun Jul 25, 2021 7:09 am
Forum: RapaGUI
Topic: RaiseOnError() with RapaGUI on Latest Android Player
Replies: 9
Views: 1128

Re: RaiseOnError() with RapaGUI on Latest Android Player

If it's a hard one to fix, this might be a good enough work-around: @REQUIRE "RapaGUI" Function p_CustomErrorMessage(msg) SystemRequest("Debug Output", "Code: "..msg.userdata[0].."\nString: "..msg.userdata[1].."\nCommand: "..msg.userdata[2].."\nLine: "..msg.userdata[3], "OK") EndFunction Function p_...
by PEB
Thu Jul 22, 2021 6:29 am
Forum: RapaGUI
Topic: RaiseOnError() with RapaGUI on Latest Android Player
Replies: 9
Views: 1128

Re: RaiseOnError() with RapaGUI on Latest Android Player

This error is still showing up with the latest Android Player. @REQUIRE "RapaGUI" Function p_ErrorHandler(ErrCode, ErrStr$, ErrCmd, ErrLine) SystemRequest("Debug Output", "Code: "..ErrCode.."\nString: "..ErrStr$.."\nCommand: "..ErrCmd.."\nLine: "..ErrLine, "OK") EndFunction RaiseOnError(p_ErrorHandl...
by PEB
Sat Apr 24, 2021 8:56 pm
Forum: RapaGUI
Topic: Progressbar Not Working with Latest Android Player (9.0)
Replies: 4
Views: 712

Re: Progressbar Not Working with Latest Android Player (9.0)

@REQUIRE "RapaGUI" moai.CreateApp([[ <application id="app"> <window id="win"> <vgroup> <text>Progress Test</text> </vgroup> </window> </application> ]]) moai.CreateDialog([[ <dialog id="prgdlg" title="Loading..." width="300" closegadget="false"> <vgroup> <progressbar id="prgbar"/> </vgroup> </dialo...