Page 1 of 1
App created with Revolution on Mac does not work on Windows
Posted: Wed May 06, 2009 11:43 am
by terjery
I have been moving a (very basic) SuperCard project to revolution. Everything works fine on the Mac, but nothing happens in the Windows version og the app. Handlers located in a cards script called from controls just do not respond.
What is the reason for this? Handlers defined in the card should be executed when called from a controrl (menu, button etc...) on the card?
Posted: Wed May 06, 2009 12:33 pm
by SparkOut
I don't know (I've never "properly" used a Mac) but I've heard of issues when using the special => and =< type keys. These single tokens are not part of the character set cross-platform and will cause scripts to fail.
If you use the individual = and > keys (etc etc) then this fixes the scripts - not that that is any guarantee of being the problem, of course, but it's a thing to check, at least.
Posted: Wed May 06, 2009 1:55 pm
by terjery
I don't use any of those.
It is all very simple. The control contains a menuPick handler that calls a switch statement in the card script. The switch-statement is very basic, just picking which handler to call based on the itemname that is reported in the menuPick handler in the control.
On the Mac it works as expected. On Windows, nothing happens.
Posted: Wed May 06, 2009 5:28 pm
by Garrett
I've been using Rev to make apps for Mac and Windows for a few years now and never had such a problem unless I used platform specific code.
If you'd like, I can try your app on Windows Vista here. Just zip up the .exe file and either upload it, or email it to me @ garretthylltunATgmailDOTcom (replace AT with @ and DOT with .)
~Garrett
Posted: Wed May 06, 2009 5:40 pm
by terjery
Thank you for the offer, but I have already tried it on 2 different PCs (XP and Vista) and the same happens on both of them.
The code I'm using is:
In the control (a menu):
Code: Select all
on menuPick pItemName
put the ID of me into cd fld "IDnummer"
-- put pItemName
velgIMeny pItemName
put pItemName into line 1 of cd fld "StegListe"
end menuPick
in the card script:
Code: Select all
on velgIMeny navn
switch navn
case "Forpigmentering"
visForpigmentering
set the disabled of cd btn ID cd fld "IDnummer" to true
exit switch
case "Bland farge etter bruksanvisning"
set the visible of cd btn ID (1086 + cd fld "Steg") to true
set the disabled of cd btn ID cd fld "IDnummer" to true
add 1 to cd fld "Steg"
exit switch
...
end switch
end velgIMeny
(the ... signifies "more of the same").
The handler "visForpigmentering" is in the card script.
Any ideas? Anybody?
I am a long time SuperCard user who bought Revolution just because deploying on Windows would be easy, but so far I just don't see it.