|
-
Jan 31st, 2012, 11:02 AM
#5
Hyperactive Member
Re: Slide Out Panel Control
hmmm I'm thinking this is a good idea, and really I could use a control of this sort now.
My best guess, and a way I'd tackle this is to inherit the panel control. Shadow or overrides the dock property and use this as a pointer to which your panel will slide out from. With that you can easily snap your panel to the top, left, right, or bottom of the parenting control. The docking would also tell you which way to slide. If your docked to the top then your obviously sliding down, etc etc. You can also ave properties to define how far your tab sticks out, how fast it slides. Maybe even a little more to the sliding as to have an animation effect to it. You could even theme it up and utilize the transparency key to give it a shape other than a square. This method could also help you out with having a physical tab that would appear to stick off your panel..
There's so much you can do!
Also I would avoid resizing the panel to have a sliding effect, rather have it maintain it's size and just have it slide outside of the parenting form via it's left and right properties. (EDIT: Which is why I said to override/shadow the dock. Avoid having the panel dock, just use the already existing dock property to let you know where your panel should be placed within the parent.)
Should keep us posted with what you come up with.
Last edited by DavesChillaxin; Jan 31st, 2012 at 01:45 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|