T O P I C R E V I E W |
ma.montesi |
Posted - 21 Jul 2014 : 05:34:16 Hi, I'm facing a strange behaviour when I try to get the ctlUniTextBoxXP's handle calling his hWnd method. If I do it in Form_Load OR in Form_Activate I get 2 different values for the same control! Eg. Form_Load -> H2006FC Form_Activate -> H2106FC
I think in Form_Load you expose the handle of somewhat hidden, and when the control is completely painted in Form_Activate I get the "real" handle. Is there a way to read a unique handle, regardless where the code is executed?
Thanks in advance, Marco |
1 L A T E S T R E P L I E S (Newest First) |
s.dav |
Posted - 21 Jul 2014 : 23:36:04 The handle of the internal textbox can change from time to time because some properties (some of those we give you at runtime) require that the handle is recreated. For example the 'RightToLeft', 'HideSelection', 'ScrollBars', 'Alignment', 'MultiLine' properties require the control to be recreated (this is a Windows limit)
So if you changed one of the above properties you'll have you handle changed. |
|
|