Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Splitter » What happened to Splitter::BarWidth?
What happened to Splitter::BarWidth? [message #31257] Thu, 17 February 2011 14:48 Go to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi,

What happened to Splitter::BarWidth()? I just updated to 3211 from 2791 and it had simply disappeared. I'm sort of dependent on it because, I have inherited a combined 50 pixel wide ruler/splitter that I use in my application.

Best regards,

Tom
Re: What happened to Splitter::BarWidth? [message #31258 is a reply to message #31257] Thu, 17 February 2011 15:00 Go to previous messageGo to next message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
OK, I see:

As of SVN3198 CtrlLib: Moved splitter width to style definition.

Best regards,

Tom
Re: What happened to Splitter::BarWidth? [message #31261 is a reply to message #31258] Thu, 17 February 2011 15:37 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Tom1 wrote on Thu, 17 February 2011 09:00

OK, I see:

As of SVN3198 CtrlLib: Moved splitter width to style definition.

Best regards,

Tom

I'm sorry for that Smile I'll restore it today. I thought nobody is using this. My thought was that width of the splitter is a part of skin definition and should be changed only through skin changes not by the control itself.
Re: What happened to Splitter::BarWidth? [message #31262 is a reply to message #31261] Thu, 17 February 2011 15:40 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Use next code:
	static Splitter::Style spstyle = Splitter::StyleDefault() ;
	spstyle.width = 5;	//<== This is width 
	yoursplitter.SetStyle(spstyle);


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: What happened to Splitter::BarWidth? [message #31264 is a reply to message #31262] Thu, 17 February 2011 15:49 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Daniel, see please http://www.ultimatepp.org/forum/index.php?t=msg&goto=312 63&#msg_31263.

SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: What happened to Splitter::BarWidth? [message #31266 is a reply to message #31262] Thu, 17 February 2011 15:55 Go to previous message
Tom1
Messages: 1212
Registered: March 2007
Senior Contributor
Hi both of you,

I did exactly as Sergey proposed and it works. If this solution is likely to remain valid in future and not get overridden by generic styling of GUI, there is no need for my sake to revert to the old interface. (There was only two places in my code using the BarWidth function call and they were easily found and converted.)

Thanks to you both and best regards,

Tom
Previous Topic: FIX: Drawing artefact Bar when zommed
Next Topic: Added One more example of reference/SplitterFrame
Goto Forum:
  


Current Time: Fri Mar 29 06:55:15 CET 2024

Total time taken to generate the page: 0.01450 seconds