x


Minimize GUI Windows

I'm sure the answer is simple, but it is escaping me at the moment ...

How would I go about minimizing a GUI Window into a draggable "tab" which contains the minimize / maximize buttons and visible title.

I have the contents, the buttons, title, etc .. my issue is that the GUI Window doesn't resize "up" when I remove the contents from the window. My current approach has a boolean flag wrapping my window contents (true = show, false = hide). I'm assuming the Window would bounce back, but it does not.

Want the body to scale upwards

Any ideas, or new approaches I can look into for minimizing a window?

Much appreciated!

  • Ace
more ▼

asked Jan 18 '11 at 10:32 PM

GlennHeckman gravatar image

GlennHeckman
335 7 10 19

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Use the if statements, make each GUI in its own script.

So one script would have the GUI open, maximized, another would have it minimized, and if the play clicks/uses/toggles the button (The lil +/- button), it'll disable the script with it, and enable the other, giving an effect that you're doing that, but in reality, you're just enabling and disabling in the same frame...

Does that make sense?

more ▼

answered Jan 19 '11 at 12:06 AM

Justin Warner gravatar image

Justin Warner
6.3k 19 27 65

+1 'if' is a powerhouse!

Jan 19 '11 at 01:43 AM _Petroz

That your catch phrase now? =P haha

Jan 19 '11 at 02:32 AM Justin Warner
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3669
x199
x11

asked: Jan 18 '11 at 10:32 PM

Seen: 1589 times

Last Updated: Jan 18 '11 at 10:32 PM