Prompt Box is Black

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
jnorthg
Posts: 3
Joined: Wed Apr 18, 2018 7:54 pm

Prompt Box is Black

Post by jnorthg » Wed Apr 18, 2018 8:04 pm

The prompt box is not showing when I've created the standalone application. I've attached both pictures. First is what it looks like in the program and second is the standalone application. I am very new at livecode.
Attachments
Screen Shot 2018-04-18 at 1.59.49 PM.png
Screen Shot 2018-04-18 at 1.59.49 PM.png (10.25 KiB) Viewed 3580 times
Screen Shot 2018-04-18 at 1.58.27 PM.png
Screen Shot 2018-04-18 at 1.58.27 PM.png (7.11 KiB) Viewed 3580 times

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Prompt Box is Black

Post by bogs » Wed Apr 18, 2018 8:07 pm

If you can put a few more details, such as which Os and version of Lc your using, we might be able to test it out and see if it is a bug that is report-able.
Image

jnorthg
Posts: 3
Joined: Wed Apr 18, 2018 7:54 pm

Re: Prompt Box is Black

Post by jnorthg » Wed Apr 18, 2018 9:05 pm

I am using MacOs and Livecode Community 8.1.9.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9579
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Prompt Box is Black

Post by dunbarx » Wed Apr 18, 2018 9:17 pm

Hi.

It seems you almost have everything in place, but that the backColor of the dialog is black. Everything in LC, including palettes and dialog boxes, modeless or not, are stacks. You can, for example:

Code: Select all

set the backColor of stack "answer dialog" to "red"
That is the actual stack, that we see as a dialog box. What happens if you change that color?

Craig Newman

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Prompt Box is Black

Post by richmond62 » Wed Apr 18, 2018 9:18 pm

IDE.png
IDE.png (12.21 KiB) Viewed 3566 times
standalone.png
Well, that's what happened just now in Mac OS 10.7.5 with LC 8.1.9

I have included a picture of the standalone with the shot of the answer dialog in the standalone
so you can see the problem is that the dialog inherits the backGroundColor of the stack.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9579
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Prompt Box is Black

Post by dunbarx » Wed Apr 18, 2018 9:26 pm

Richmond.

Is this a v. 8.1.9 thing? I am in 8.1.8, (Mac OS 10.9) and if I make a new stack, set its backColor to yellow, and then invoke a dialog box, the dialog is the good ol' grey we love so much.

Craig

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Prompt Box is Black

Post by bogs » Wed Apr 18, 2018 9:32 pm

<Looking admiringly at Craig and Richmond>
You two are pretty sharp, I completely missed the hint that the main stack was black, I thought that was his desktop! :oops:
Image

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9579
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Prompt Box is Black

Post by dunbarx » Wed Apr 18, 2018 9:55 pm

Hmmm.

I do not see this at all, unless it is 8.1.9 where it occurs. I even set the opaque of stack "answer dialog" to "false" as if that outrage mattered, but still anything but yellow, the dialog even overlying the yellow stack:

Code: Select all

on mouseUp
   set the opaque of stack "answer dialog" to "false"
   set the backColor of stack "answer dialog" to any item of "red,blue,green,orange"
   answer "XX"
end mouseUp
And if I set the dialog backColor to empty, good ol' grey.

Craig

jnorthg
Posts: 3
Joined: Wed Apr 18, 2018 7:54 pm

Re: Prompt Box is Black

Post by jnorthg » Wed Apr 18, 2018 10:06 pm

Yes that worked! Thank you. The background on my stack is black and once I changed it in the code that standalone worked. Thank you!

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9287
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Prompt Box is Black

Post by richmond62 » Wed Apr 18, 2018 11:06 pm

Screen Shot 2018-04-19 at 1.04.09 am.png
The top standalone was built in LC 8.1.8
and the bottom one in LC 8.1.10 RC Cola.
RCC.jpg
RCC.jpg (10.93 KiB) Viewed 3521 times

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”