Modal dialog without decorations
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 17
- Joined: Tue May 10, 2016 3:22 am
Modal dialog without decorations
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
You can set the decorations to EMPTY, if that is what you mean?
Either via the inspector for your stack or via script:
Either via the inspector for your stack or via script:
Code: Select all
set the decorations of stack "your dialog here" to EMPTY
-
- Posts: 17
- Joined: Tue May 10, 2016 3:22 am
Re: Modal dialog without decorations
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
Then: set the decorations to "title".
That should remove everything but the TITLE of the window.
That should remove everything but the TITLE of the window.
Re: Modal dialog without decorations
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 -

You get there by hitting the wand button here -

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) -

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

You get there by hitting the wand button here -

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) -

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

-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Modal dialog without decorations
What are the decorations of stack "Answer Dialog"?DarkKnight wrote: ↑Wed Jan 27, 2021 4:36 pmNo, 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..
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 17
- Joined: Tue May 10, 2016 3:22 am
Re: Modal dialog without decorations
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
Which OS are you using, DarkKnight? Just curious at this point.

-
- Posts: 17
- Joined: Tue May 10, 2016 3:22 am
Re: Modal dialog without decorations
Mac OS Mojave
Re: Modal dialog without decorations
I'm also on Mojave and this works for me, see attachement:
Title only!-
- Posts: 17
- Joined: Tue May 10, 2016 3:22 am
Re: Modal dialog without decorations
I am seeing something different on my end. See attachment.
Re: Modal dialog without decorations
Very strange!?
I am using LC 9.6.2 RC1

I am using LC 9.6.2 RC1
Re: Modal dialog without decorations
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
But if Klaus is on the system you are using, you should both see the same things. Very weird


-
- Posts: 17
- Joined: Tue May 10, 2016 3:22 am
Re: Modal dialog without decorations
I know. Ask and answer dialogs appear correctly. I even downloaded another stack that appears correct, but anything I create do not.
-
- VIP Livecode Opensource Backer
- Posts: 10043
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: Modal dialog without decorations
If the stack properties are identical to those of the Answer Dialog, what code are you using to show your dialog?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn