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...
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.