Icon disappearing in compiled app?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
cmhjon
Posts: 199
Joined: Tue Aug 04, 2015 11:55 am

Icon disappearing in compiled app?

Post by cmhjon » Tue Jun 09, 2026 12:53 pm

Hi everyone,

Although a button and its icon are present in the native project file, the icon disappears (but the button is still present) in the compiled app. It’s the minus sign icon in the lower right corner of the text field:

Native Project File:
Native.jpg
Compiled App:
App.jpg
I’m also including the code of the button in case it’s some kind of code issue:

Code: Select all

on mouseUp
   lock screen
   if the height of field "Quantity" is 42 then
      set the height of field "Quantity" to 200
      set the top of field "Quantity" to 224
      set the icon of me to 200087
      set top of me to 413
   else
      set the height of field "Quantity" to 42
      set the top of field "Quantity" to 224
      set the icon of me to 200086
      set top of me to 255
   end if
   unlock screen
end mouseUp
Although this not a huge deal, I’d prefer to have it working right. Anyone have any ideas on how to fix this?

Thanks,
Jon :-)

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10500
Joined: Wed May 06, 2009 2:28 pm

Re: Icon disappearing in compiled app?

Post by dunbarx » Tue Jun 09, 2026 2:16 pm

I cannot believe it is a code issue. When you make a standalone from a stack, the thinking is that everything comes over intact. I would send your stack to LC.

Craig

cmhjon
Posts: 199
Joined: Tue Aug 04, 2015 11:55 am

Re: Icon disappearing in compiled app?

Post by cmhjon » Tue Jun 09, 2026 2:36 pm

Hi Craig,

I was about to do that but then I had an idea:

I duplicated the button while in its minus sign state, removed the code from it, and just left it sitting loose on the UI, re-compiled, and now the icon in the corner of the field shows correctly.

Weird,
Jon :-)

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10500
Joined: Wed May 06, 2009 2:28 pm

Re: Icon disappearing in compiled app?

Post by dunbarx » Tue Jun 09, 2026 6:39 pm

OK.

I assume NOT removing the code will also work.

It could just be a glitch. Yesterday a stack I have used forever all of a sudden would only print the bottom 80% of a card. I tried everything, setting the print area, whatever.

So then I closed LC and reopened. Fixed.

Craig

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10414
Joined: Fri Feb 19, 2010 10:17 am

Re: Icon disappearing in compiled app?

Post by richmond62 » Tue Jun 09, 2026 8:07 pm

Deus ex machina

cmhjon
Posts: 199
Joined: Tue Aug 04, 2015 11:55 am

Re: Icon disappearing in compiled app?

Post by cmhjon » Tue Jun 09, 2026 9:31 pm

richmond62 wrote:
Tue Jun 09, 2026 8:07 pm
Deus ex machina
Indeed! :)

Post Reply