Home » U++ Library support » U++ Widgets - General questions or Mixed problems » Ctrl creation via dll stuff
Re: Ctrl creation via dll stuff [message #49659 is a reply to message #49658] |
Fri, 23 March 2018 10:20 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
luoganda wrote on Thu, 22 March 2018 21:46
DHCtrl in TabCtrl:
I am not sure yet for this, maybe testcase another time, but:
how do i get any Ctrl rect position relative to TopWindow? And possibly in Layout override func?
Now i am using
rc=GetRect(); struct sZ{int x,y,w,h;}sz={rc.left,rc.top,rc.Width(),rc.Height()};
but rc.left/rc.top is always zero - how do i get that?
I guess I do not fully undestand the question, but in general: If you want to get relative position of two (possibly) unrelated Ctrls, the easiest way is to use GetScreenView (or GetScreenRect if you want 'outer' dimensions) and compute it from these.
Quote:
And, by the way, can another exe be implemented - something like a plugin - into upp application,
or is too much trouble implementing this because of separate event loops and such?
[/quote]
ATM no. Would be nice to have, not all that hard to do IMO. Not a priority for me right now...
Mirek
[Updated on: Fri, 23 March 2018 10:20] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Fri May 10 15:07:44 CEST 2024
Total time taken to generate the page: 0.01875 seconds
|