U++ framework
Do not panic. Ask here before giving up.

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: 1324
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: 14291
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: Sun Oct 25 21:24:18 GMT+1 2026

Total time taken to generate the page: 0.00727 seconds