Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Mon Dec 11, 2017 9:37 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Is there anything like SegmentedControl but vertical?
PostPosted: Thu May 09, 2013 3:01 am 
Offline

Joined: Tue Nov 13, 2012 11:19 am
Posts: 7
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: Is there anything like SegmentedControl but vertical?
PostPosted: Sun May 26, 2013 6:05 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
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 :-)

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: Is there anything like SegmentedControl but vertical?
PostPosted: Mon May 27, 2013 6:03 am 
Offline

Joined: Thu Apr 10, 2008 6:03 am
Posts: 303
Location: Paris-La Défense, France
You could have a look at my Custom Toolbar.

It has a vertical option:

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

_________________
Check my Website for high quality custom controls and classes (no plugins) for Windows, Mac OS and Linux
REALBasic 2012 R2 on Win 7 & Mac OS X


Top
 Profile  
Reply with quote  
 Post subject: Re: Is there anything like SegmentedControl but vertical?
PostPosted: Mon May 27, 2013 3:17 pm 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
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

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
 Post subject: Re: Is there anything like SegmentedControl but vertical?
PostPosted: Tue May 28, 2013 5:14 am 
Offline

Joined: Thu Apr 10, 2008 6:03 am
Posts: 303
Location: Paris-La Défense, France
Nice example Simulanics.

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

Is this fixed on Windows 8?

_________________
Check my Website for high quality custom controls and classes (no plugins) for Windows, Mac OS and Linux
REALBasic 2012 R2 on Win 7 & Mac OS X


Top
 Profile  
Reply with quote  
 Post subject: Re: Is there anything like SegmentedControl but vertical?
PostPosted: Wed May 29, 2013 12:29 am 
Offline
User avatar

Joined: Sun Aug 12, 2007 10:10 am
Posts: 1086
Location: Boiling Springs, SC
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.

_________________
Matthew A. Combatti
Real Studio 2012 r1.2

Visit Xojo Developer's Spot!
Systems I Use:
Windows XP/Windows Vista/Windows Server 2008 r2/Windows 7/Windows 8
Mac OSX 10.5/Mac OSX 10.6/Mac OSX Server/Ubuntu/Debian/Suse/Red Hat/
Windows Server 2011/CentOS 5.4 /ReactOS/SimOS

~All Xojo Compatible~


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group