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 » U++ Widgets - General questions or Mixed problems » how to bind or convert Logc positions to int?
how to bind or convert Logc positions to int? [message #1944] Tue, 28 March 2006 15:59 Go to next message
fudadmin is currently offline  fudadmin
Messages: 1321
Registered: November 2005
Location: Kaunas, Lithuania
Ultimate Contributor
Administrator

	horzSplit.Add(tree);
	horzSplit.Add(editor1);
	horzSplit.Add(editor2);

      Add(option1);
      option1.SetPosX( horzSplit.GetPos(0) );  //error int to Logc


	Add(horzSplit.Horz().VSizePos(35,35));


In fact there 2 questions:
1.how to bind or convert Logc positions to int?
2.Shouldn't all Ctrl's have harmonised methods with the same naming to "speak to each other"? E.g splitter GetPos returns int but from 10000 range while others AFAIK return Logc...
Re: how to bind or convert Logc positions to int? [message #1946 is a reply to message #1944] Tue, 28 March 2006 17:18 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
1. http://upp.sourceforge.net/src$CtrlCore$Ctrl$en-us.html

Note that you cannot convert int to logc for the simple reason - it countains in fact 3 fields... Logc should stand for "logical coordinate" or "logical component". Vertical and horizontal Logc form LogPos - placement of Ctrl within its parent.

2. Logc is simply a different beast....
Previous Topic: 603.r9 TreeCtrl etc. repaint optimization [BUG?]-No,feature.ParentCtrl and Ctrl
Next Topic: GetType() ???
Goto Forum:
  


Current Time: Sat May 04 15:52:19 CEST 2024

Total time taken to generate the page: 0.02768 seconds