Discuss GUI programming with the RapaGUI plugin here
-
PEB
- Posts: 569
- Joined: Sun Feb 21, 2010 1:28 am
Post
by PEB »
The following code works fine on my Amiga, but crashes when I try running in on Windows.
Code: Select all
AppStr$=[[<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
<window id="win" title="Test">
<vgroup>
<button>Test Button One</button>
<button>Test Button Two</button>
</vgroup>
</window>
</application>]]
moai.CreateApp(AppStr$)
Any ideas?
-
msu
- Posts: 71
- Joined: Mon Jun 13, 2016 11:36 am
- Location: Sinzig/Germany
Post
by msu »
Hallo PEB
This code works (windows7) :
Code: Select all
@VERSION 6,1
@REQUIRE "RapaGUI"
AppStr$=[[<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
<window id="win" title="Test">
<vgroup>
<button>Test Button One</button>
<button>Test Button Two</button>
</vgroup>
</window>
</application>]]
moai.CreateApp(AppStr$)
Repeat
WaitEvent
Forever
-
PEB
- Posts: 569
- Joined: Sun Feb 21, 2010 1:28 am
Post
by PEB »
You're right! In order not to crash, this is needed:
@REQUIRE "RapaGUI"
Thanks for figuring that out!
-
airsoftsoftwair
- Posts: 5446
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
-
Contact:
Post
by airsoftsoftwair »
Requiring RapaGUI is necessary to use its functions but of course it shouldn't crash when not doing so. I'll add some error messages for that case.