Page 1 of 1
Prompt Box is Black
Posted: Wed Apr 18, 2018 8:04 pm
by jnorthg
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.
Re: Prompt Box is Black
Posted: Wed Apr 18, 2018 8:07 pm
by bogs
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.
Re: Prompt Box is Black
Posted: Wed Apr 18, 2018 9:05 pm
by jnorthg
I am using MacOs and Livecode Community 8.1.9.
Re: Prompt Box is Black
Posted: Wed Apr 18, 2018 9:17 pm
by dunbarx
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
Re: Prompt Box is Black
Posted: Wed Apr 18, 2018 9:18 pm
by richmond62

- IDE.png (12.21 KiB) Viewed 4679 times
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.
Re: Prompt Box is Black
Posted: Wed Apr 18, 2018 9:26 pm
by dunbarx
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
Re: Prompt Box is Black
Posted: Wed Apr 18, 2018 9:32 pm
by bogs
<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!

Re: Prompt Box is Black
Posted: Wed Apr 18, 2018 9:55 pm
by dunbarx
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
Re: Prompt Box is Black
Posted: Wed Apr 18, 2018 10:06 pm
by jnorthg
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!
Re: Prompt Box is Black
Posted: Wed Apr 18, 2018 11:06 pm
by richmond62
The top standalone was built in LC 8.1.8
and the bottom one in LC 8.1.10 RC Cola.

- RCC.jpg (10.93 KiB) Viewed 4634 times