Thread Tools Display Modes
09-10-09, 05:59 AM   #1
MigGat
A Fallenroot Satyr
Join Date: Sep 2009
Posts: 27
How to partially hide frame AND it's content?

Hi all,

The thread title may be a little confusing so I'll post 2 images. What I really want is a collapsible frame behaviour.

Expanded:



Collapsed:



What I'm doing here is changing the frame's size (after that I'll move the frame down there so that they snap) with:

frmAYAutoMessage:SetHeight(50);

The problem is that while the frame is collapsed, all it's content is visible on the same position. Is there a better solution than hide them?

Thanks
  Reply With Quote
09-10-09, 06:08 AM   #2
Slakah
A Molten Giant
 
Slakah's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2007
Posts: 863
You could use a scroll frame, without any of the scrolling and just using it for the hiding.
  Reply With Quote
09-10-09, 06:10 AM   #3
xConStruct
A Chromatic Dragonspawn
 
xConStruct's Avatar
AddOn Author - Click to view addons
Join Date: May 2008
Posts: 199
ScrollFrames hide parts of their child-frames if they are outside of the frame.
But they are maybe a bit too big for your issue - if I were you, i would create another (invisible) child frame which holds all your buttons, checkboxes and so on, and toggle only this one.

edit: Slakah was faster :P
__________________
« Website | GitHub »

Oh hai!
  Reply With Quote
09-10-09, 07:15 AM   #4
MigGat
A Fallenroot Satyr
Join Date: Sep 2009
Posts: 27
I've tried with the scroll frame but when I resize, child controls keep showing on their position..

I'm trying the other solution now, creating an invisible child frame that parents all the controls and toggle it.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » How to partially hide frame AND it's content?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off