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 » Colored drag margin for Splitter
Colored drag margin for Splitter [message #25494] Thu, 25 February 2010 23:47 Go to next message
kohait00 is currently offline  kohait00
Messages: 934
Registered: July 2009
Location: Germany
Experienced Contributor
hi there,

in many occassions using Splitter requires to be able to *see* the separation bars, but they have SColorFace when not dragged.

i added a BarOpacity method to Splitter, based on current trunk code (rev. around 2150) to make it decidable, if one needs to have them be visible

maybe it is usable to anyone..
  • Attachment: Splitter.h
    (Size: 3.49KB, Downloaded 266 times)
  • Attachment: Splitter.cpp
    (Size: 4.92KB, Downloaded 455 times)
Re: Colored drag margin for Splitter [message #25495 is a reply to message #25494] Fri, 26 February 2010 09:39 Go to previous messageGo to next message
kohait00 is currently offline  kohait00
Messages: 934
Registered: July 2009
Location: Germany
Experienced Contributor
the baropac property should be set in the Spliter::Spiltter() to
baropac = 0;

to have the same behaviour as usual

values for BarOpacity(): 0..255

[Updated on: Fri, 26 February 2010 10:18]

Report message to a moderator

Re: Colored drag margin for Splitter [message #25510 is a reply to message #25495] Fri, 26 February 2010 15:29 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12098
Registered: November 2005
Ultimate Member
w.DrawRect(sz, Blend(SColorFace, SColorShadow, baropac));


Would not it be more loggical to simply have the Color setter here? Why be bothered with Blend?

(But maybe the best is to chameleonize the whole stuff anyway...)

Mirek
Re: Colored drag margin for Splitter [message #25512 is a reply to message #25510] Fri, 26 February 2010 15:32 Go to previous messageGo to next message
kohait00 is currently offline  kohait00
Messages: 934
Registered: July 2009
Location: Germany
Experienced Contributor
well thats the point. i didnt want to blow up the API to much, it should be kept half way style related..without bothering the user much, but adding a color setter would also do it...
Re: Colored drag margin for Splitter [message #25516 is a reply to message #25512] Fri, 26 February 2010 18:32 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12098
Registered: November 2005
Ultimate Member
Well, I have just chameleonized the Splitter...

Mirek
Re: Colored drag margin for Splitter [message #25528 is a reply to message #25516] Sat, 27 February 2010 23:40 Go to previous messageGo to next message
kohait00 is currently offline  kohait00
Messages: 934
Registered: July 2009
Location: Germany
Experienced Contributor
thank you mirek..
just to be sure: is there kind of a tutorial on how to use CH_STYLE stuff in own controls? if i wanted i.e. to make a different highlight color..
Re: Colored drag margin for Splitter [message #25592 is a reply to message #25528] Tue, 02 March 2010 19:07 Go to previous message
mirek is currently offline  mirek
Messages: 12098
Registered: November 2005
Ultimate Member
http://www.ultimatepp.org/reference$Chameleon$en-us.html
Previous Topic: Splitter SetPos bug ?
Next Topic: Splitter: New Callback WhenEndResize
Goto Forum:
  


Current Time: Fri Nov 15 08:36:40 CET 2019

Total time taken to generate the page: 0.01167 seconds