Question on skinned button

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
matt
Posts: 18
Joined: Sat Jun 12, 2010 2:40 am

Question on skinned button

Post by matt » Mon Aug 02, 2010 9:13 pm

I followed the Rev tutorial on skinning buttons, and it seems to work perfectly until I save a standalone. When I load the standalone (Mac version) the graphic is replaced by a gray box. Although the button works properly, the image isn't displayed at all. I checked the ID on the image on my graphics stack, and it matches the graphic I've selected on the transparent button's icon & hilite icon selections within the property inspector. Has anyone else come across the problem? I didn't see mention of it in the forum, and as far as I can tell I followed the tutorial exactly. Thanks!

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

Re: Question on skinned button

Post by Curry » Mon Aug 02, 2010 10:43 pm

Check that image is indeed included in standalone...

Image from Rev icon library: Check standalone inclusions. Other image: Imported in stack or set to a filepath? Graphics stack: Included in your build and open?
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

matt
Posts: 18
Joined: Sat Jun 12, 2010 2:40 am

Re: Question on skinned button

Post by matt » Tue Aug 03, 2010 12:34 am

Other image: Imported in stack or set to a filepath?
Thanks! I browsed for the image again on my image card, and then reset the icon & background properties of the button in question. Now it is working correctly.

matt
Posts: 18
Joined: Sat Jun 12, 2010 2:40 am

Re: Question on skinned button

Post by matt » Fri Aug 06, 2010 1:59 am

I think I spoke too soon. It is working correctly on the Mac standalone only, but the Windows standalone doesn't display the png file. Instead I see a black box on the Windows standalone instead of the png file. Has anyone else experienced this? Thanks for your help, again.

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

Re: Question on skinned button

Post by Curry » Fri Aug 06, 2010 2:08 am

When you say browsed for the image again, do you mean the image is set to an external file?

If so, try importing the image directly into your stack.
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

matt
Posts: 18
Joined: Sat Jun 12, 2010 2:40 am

Re: Question on skinned button

Post by matt » Fri Aug 06, 2010 10:02 pm

Hi Curry, thanks for your help on this issue. I missing something, I guess, but I haven't been able to see what. As far as I could tell from reading the user guide my image is included with the stack and not as a reference. I did this by:
  • Creating a new card for graphics
  • On that card going into the file menu -> import as control -> image file -> browsed for png file
  • Lastly I went the icons & borders property of the stack and set the correct image id

Curry
Posts: 111
Joined: Mon Oct 15, 2007 11:34 pm
Contact:

Re: Question on skinned button

Post by Curry » Tue Aug 10, 2010 10:37 pm

Sorry, I would need to see it. Feel free to email your stack (link below) and I'll have a look.
Best wishes,

Curry Kenworthy

LiveCode Development, Training & Consulting
http://livecodeconsulting.com/

WordLib: Conquer MS Word & OpenOffice
SpreadLib: "Excel-lent" spreadsheet import/export
http://livecodeaddons.com/

matt
Posts: 18
Joined: Sat Jun 12, 2010 2:40 am

Re: Question on skinned button

Post by matt » Fri Aug 13, 2010 2:44 am

It's actually working properly now. I used Crossover Mac for testing the Windows standalone, and it ran the exe just fine but would not display all the images (though one image appeared normal under Crossover). My experience with Crossover Mac has been that software either runs perfectly or not at all, so given that one image was working I didn't think that could be the culprit. I tested on a Windows XP machine at work, and all the images showed up. Thanks again for the suggestions.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Question on skinned button

Post by Mark » Fri Aug 13, 2010 9:09 am

Hi Matt,

CrossOver is based on Wine. To work with Wine, Revolution would need a few libraries to display 24 bit images or PNG images (I couldn't bother to find out what the actual problem is). Those libraries are unavailable in Wine. Perhaps, if you compiled Wine including those libraries, it might work, but I'm not going to try this. You could report this to CrossOver as a bug, but I expect them to argue that the libraries used by Rev are old and obsolete. RunRev should update the graphics engine to use more up-to-date libraries.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

matt
Posts: 18
Joined: Sat Jun 12, 2010 2:40 am

Re: Question on skinned button

Post by matt » Fri Aug 13, 2010 2:06 pm

That makes sense. Knowing this, I think what I'll do is install Windows into VirtualBox for testing the Windows standalones.

Post Reply