Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Save Password
Forgot your Password?

 All Forums
 Other hexagora products
 Programs (Programmi)
 [HELP] Getting ctlUniTextBoxXP handle
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  


6 Posts

Posted - 21 Jul 2014 :  05:34:16  Show Profile  Reply with Quote
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!
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

Site Admin

3364 Posts

Posted - 21 Jul 2014 :  23:36:04  Show Profile  Visit s.dav's Homepage  Reply with Quote
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.

Regards, Davide
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000