Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
 All Forums
 Other hexagora products
 Programs (Programmi)
 [HELP] Getting ctlUniTextBoxXP handle

Note: You must be registered in order to post a reply.

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

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.

Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000