Handle of the next control

forum.sourcecode (2000-2005) & forum.td.sourcecode (2005-2010)
Didier Tourneur

Handle of the next control

Post by Didier Tourneur » 08 Oct 2008, 10:32

 Posted by:  Didier Tourneur 

How can I have the handle of the next control of the current datafield to
simulate a input
it's to put in a class definition.

James McCall

Handle of the next control

Post by James McCall » 08 Oct 2008, 17:40

 Posted by:  James McCall 

There might be a more elegant solution but I use the Win32 API function
GetWindow( ). You need to check if the returned window is a tab stop,
whether it is read-only, whether it is disabled.

Attached is a sample.

James

Attachment: ~Try_GetWindow.zip

g.achrainer

Handle of the next control

Post by g.achrainer » 13 Oct 2008, 14:11

 Posted by:  g.achrainer 

Hi Didier,

maybe you can post "WM_NEXTDLGCTL" to the parent.

Regards,

Gerhard

Philip Hautekiet

Handle of the next control

Post by Philip Hautekiet » 14 Oct 2008, 07:52

 Posted by:  Philip Hautekiet 

Set hWndNext = SalGetNextChild(hWndItem,TYPE_DataField | TYPE_xxx |
TYPE_yyy )
Or
Set hWndNext = SalGetNextChild(hWndItem,TYPE_Any)

g.achrainer

Handle of the next control

Post by g.achrainer » 14 Oct 2008, 14:39

 Posted by:  g.achrainer 

or SalSendValidateMsg ( ) if "SAM_Validate" is all he needs...

Return to “td.sourcecode”

Who is online

Users browsing this forum: [Ccbot] and 0 guests