DataWindowChild ldw_child
If the row & gt; 0 then
Choose a case the Describe (dwo. Name + "type")
Case "column"
.
Case report ", "
If GetChild (dwo. Name, ldw_child)=1 then
8 messagebox (" ", ldw_child GetObjectAtPointer ())
9 messagebox (" ", ldw_child GetClickedColumn ())
End the if
The end choose
End the if
CodePudding user response:
//a guess... If your child data window is dw_child2Dw_1. Object. Dw_child2. GetObjectAtPointer ()//give it a try
CodePudding user response:
No, just an error, even if you can, estimated effect is also similar to the following, can not get the column name:If GetChild (dwo. Name, ldw_child)=1 then
Messagebox (" ", ldw_child GetObjectAtPointer ())
end if
CodePudding user response:
I also tried... Is not..CodePudding user response:
There is no solution? Do you have any other time can capture the child datawindow click?There is no way can only calculate position,,,
CodePudding user response:
New datawindow custom event, the event id is pbm_commandDatawindowchild ldwc_Child
Enclosing GetChild (" dept_head_id ldwc_Child)
If hwndchild=Handle (ldwc_child) Then
If notificationcode=1281 Then
Messagebox (" ", ldwc_Child GetObjectAtPointer ())
End the If
End the If