Real Software Forums
http://forums.realsoftware.com/

Is there anything like SegmentedControl but vertical?
http://forums.realsoftware.com/viewtopic.php?f=10&t=47830
Page 1 of 1

Author:  FCampos [ Thu May 09, 2013 3:01 am ]
Post subject:  Is there anything like SegmentedControl but vertical?

Hi, I would like to know if thre's a way to put the buttons of the segmentedcontrol piled one up or down the other, making a pile of buttons, instead of now, bttons side-by-side the others.
Or if there a way to simulate this control the way I want.

I have tryed to do it with BeveButtons, changing the property ButtonType to toggles, but I have to deselect the others via code when I select one, and it turns to a darker grey instead of soft blue,
like when I move the cursor over it.

Best regards.

Author:  simulanics [ Sun May 26, 2013 6:05 pm ]
Post subject:  Re: Is there anything like SegmentedControl but vertical?

Have you thought about a custom designed control? Draw a sketch and post it of what exactly you want it to look like and I'll make a control :-)

Author:  JeremK [ Mon May 27, 2013 6:03 am ]
Post subject:  Re: Is there anything like SegmentedControl but vertical?

You could have a look at my Custom Toolbar.

It has a vertical option:

http://www.jeremieleroy.com/products/toolbar.php

Author:  simulanics [ Mon May 27, 2013 3:17 pm ]
Post subject:  Re: Is there anything like SegmentedControl but vertical?

Just an example of creating a control in 15 minutes :-) If you need any others or have questions about tailoring the source, just ask. I have a library of over 500 custom controls I've made, and many more that are freely available to the public. You can replace the primary segment control with any native or custom control to achieve a "taskbar" effect, or make the segments canvases to display thumbnails in a vertical layout...using a similar method a horizontal layout can be done as well.

Source Included:
http://www.xojodevspot.com/demos/VerticleSegmentBar.rar

Image

Author:  JeremK [ Tue May 28, 2013 5:14 am ]
Post subject:  Re: Is there anything like SegmentedControl but vertical?

Nice example Simulanics.

The only problem is the flickering I get on Windows 7.

Is this fixed on Windows 8?

Author:  simulanics [ Wed May 29, 2013 12:29 am ]
Post subject:  Re: Is there anything like SegmentedControl but vertical?

JeremK wrote:
Nice example Simulanics.

The only problem is the flickering I get on Windows 7.

Is this fixed on Windows 8?


It works on windows 8 perfect. To stop the flicker change the .refresh's to .invalidate. This was merely a 15 minute demo..if I had taken longer time (which I just might now), I would have added a property for the last selected index and changed the deselectall method to only set the background of the last selected index back to the unselected color. At the moment it loops through all segments, de-selects them all and sets the current clicked segment index to selected. (very inefficient) this looping is what causes the flicker..but if you don't want to change the code or wait a day for me to post the updated fully "proper" methods..just change refresh to invalidate to "reduce" the flicker. Like artists do, at least once a day I come up with a control or code idea and code as much as I can in that 15 minutes..have noticed greater productivity and shorter completion time in "non-demanding" situations because of this as well :-) By the way, I love ideas for demos so if you ever have any, I'd love to hear them.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/