Page 1 of 2

Modal dialog without decorations

Posted: Wed Jan 27, 2021 4:20 pm
by DarkKnight
How do you create a custom modal dialog without buttons in the title bar like the ask or answer dialogs? I've created a stack and made it modal. The close and minimize buttons still appear, but disabled. The maximize button still also appears, but is active.

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 4:29 pm
by Klaus
You can set the decorations to EMPTY, if that is what you mean?
Either via the inspector for your stack or via script:

Code: Select all

set the decorations of stack "your dialog here" to EMPTY

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 4:36 pm
by DarkKnight
No, the ask and answer dialog open with a titlebar with no visible buttons. How do I get that appearance. Setting the decorations to empty removes the titlebar entirely..

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 4:58 pm
by Klaus
Then: set the decorations to "title".
That should remove everything but the TITLE of the window.

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 5:03 pm
by bogs
I'm on Linux (the look may be different for your OS), but I think you want "Title" in the selector. These are the available arrangements for the title bar -

Image

You get there by hitting the wand button here -

Image

I should point out that on 'nix, the modal dialogs that ship with Lc show up with a close button, as you see here (at least, on XFCE) -

Image

**Klaus beat me to it while I was uploading pictures! Oh the agony ... hee hee

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 5:10 pm
by FourthWorld
DarkKnight wrote:
Wed Jan 27, 2021 4:36 pm
No, the ask and answer dialog open with a titlebar with no visible buttons. How do I get that appearance. Setting the decorations to empty removes the titlebar entirely..
What are the decorations of stack "Answer Dialog"?

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 5:17 pm
by DarkKnight
The decorations of the stack "Answer Dialog" are "default". Setting the decorations to "title" does not make the buttons disappear in the titlebar.

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 5:23 pm
by bogs
Which OS are you using, DarkKnight? Just curious at this point.

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 6:00 pm
by DarkKnight
Mac OS Mojave

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 6:14 pm
by Klaus
I'm also on Mojave and this works for me, see attachement:
window_title.jpg
Title only!

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 6:42 pm
by DarkKnight
I am seeing something different on my end. See attachment.

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 7:02 pm
by Klaus
Very strange!? :shock:
I am using LC 9.6.2 RC1

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 8:19 pm
by bogs
Yah, I don't know what to tell you either DK, I can't simulate any mac environment past Snow Leopard.

But if Klaus is on the system you are using, you should both see the same things. Very weird :?

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 8:28 pm
by DarkKnight
I know. Ask and answer dialogs appear correctly. I even downloaded another stack that appears correct, but anything I create do not.

Re: Modal dialog without decorations

Posted: Wed Jan 27, 2021 9:15 pm
by FourthWorld
If the stack properties are identical to those of the Answer Dialog, what code are you using to show your dialog?