Search found 92 matches

by Stefan
Mon Aug 08, 2022 6:58 am
Forum: General Discussion
Topic: Instructions for creating an Android app
Replies: 28
Views: 975

Re: Instructions for creating an Android app

In the help under system you will probably find all the commands that can cause trouble: BatteryLevel() CountProgramParameters() DeviceAlwaysOn() DeviceBrightness() DeviceInfo() ElapsedMilliseconds() LoadScript() LoadStyle() ProgramParameter() VibrateDevice()
by Stefan
Mon Aug 08, 2022 6:58 am
Forum: Bugs Reports
Topic: Android compile error - DeviceInfo(*) and new cordova-plugin-device?
Replies: 7
Views: 2199

Re: Android compile error - DeviceInfo(*) and new cordova-plugin-device?

In the help under system you will probably find all the commands that can cause trouble: BatteryLevel() CountProgramParameters() DeviceAlwaysOn() DeviceBrightness() DeviceInfo() ElapsedMilliseconds() LoadScript() LoadStyle() ProgramParameter() VibrateDevice()
by Stefan
Wed Jul 27, 2022 7:10 am
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 601

Re: Buttongadget and loadsound

Very nice explanations, Peter and Paul, thank you very much!
by Stefan
Tue Jul 26, 2022 9:55 pm
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 601

Re: Buttongadget and loadsound

Maybe you didn't understand the problem, Paul?
by Stefan
Tue Jul 26, 2022 7:48 pm
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 601

Re: Buttongadget and loadsound

The sound is blocked, I already wrote. The images are loaded. Hence my question, why does a loaded image work in an imagegadget, but not in a buttonimagegadget.
by Stefan
Tue Jul 26, 2022 5:31 pm
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 601

Re: Buttongadget and loadsound

Here is working code that describes the problem. Global homepage.s,pic1,pic2,aSound,testlisticongadget ;homepage="https://doko-lounge.de/" homepage="" Declare LoadingError(Type, Filename$) Declare Loading(Type, Filename$, ObjectId) ; Register the loading event before calling any ...
by Stefan
Tue Jul 26, 2022 11:42 am
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 601

Re: Buttongadget and loadsound

Instead of the variable "pic1" please try "ObjectId" in your "Procedure Loading" for the gadgets.
In this example, the sound and image would have the same objectid, so I took the name of the image.
by Stefan
Tue Jul 26, 2022 10:40 am
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 601

Re: Buttongadget and loadsound

Try both variants of homepage Global homepage.s,pic1,pic2,aSound,testlisticongadget ;homepage="https://myhomepage.com/" homepage="" Declare LoadingError(Type, Filename$) Declare Loading(Type, Filename$, ObjectId) InitSound() OpenWindow(0,10,100,800,600,"TestWindow") tes...
by Stefan
Tue Jul 26, 2022 9:39 am
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 601

Re: Buttongadget and loadsound

I have the events #PB_Event_Loading and #PB_Event_LoadingError bound. For the sake of clarity, I wrote the code like this. As I already wrote, the pictures are loaded, I just can't get them into the ButtonImageGadget. The sound will not load if the address is an external homepage. ListIconGadget als...
by Stefan
Tue Jul 26, 2022 9:11 am
Forum: Coding Questions
Topic: Buttongadget and loadsound
Replies: 17
Views: 601

Buttongadget and loadsound

;works buttonPic=LoadImage(#PB_Any,"pictures/button.jpg.") ButtonImageGadget(1,10,10,ImageWidth(buttonPic),ImageHeight(buttonPic),ImageID(buttonPic)) ;doesn' work Programm hang buttonPic=LoadImage(#PB_Any,"https://myhomepage.com/pictures/button.jpg.") ButtonImageGadget(1,10,10,Im...