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 » Community » Newbie corner » LogPos (and Logc) - what does it mean?
LogPos (and Logc) - what does it mean? [message #35752] Fri, 16 March 2012 18:29 Go to next message
slashupp is currently offline  slashupp
Messages: 231
Registered: July 2009
Experienced Member
Hi,
I've browsed/googled this site (and tried my copy of uppsrc)
to try to understand what LogPos is and how it relates to the
real world of pixels. I failed to find such info.

I'm setting the initial position of a horz.splitter using
SetPos(n) where n is some ridiculously high number (in the
thousands) just to move the splitter a few ten's of pixels - why?

How would I relate items with widths in pixels to this strange
size-values?

Can someone please explain it?
Re: LogPos (and Logc) - what does it mean? [message #35753 is a reply to message #35752] Fri, 16 March 2012 19:46 Go to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi slashupp,

Splitter.SetPos() is actually not related to LogPos at all. It takes percent value multiplied by 100 (have a look in docs) Not sure why is it so, I guess some historical reason, or maybe some optimization Smile

For info about LogPos, I can only point you to docs here and there is also some info in GUI tutorial I think...

Best regards,
Honza
Previous Topic: display approximation...
Next Topic: DialSlider
Goto Forum:
  


Current Time: Fri Apr 26 06:51:39 CEST 2024

Total time taken to generate the page: 0.04590 seconds