Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selection change event for a dropdown datawindow (dddw)

Status
Not open for further replies.

girls3dog1

Programmer
Nov 22, 2002
30
0
0
US
pb10.5, Build 5063

I would like to have the equivalent of a selection change event for a dddw in the same way as a ddlb. Can I do this with a user event using the pbm_cbnselchange? If not, is there another way to code this for a dddw. Thanks in advance for your help.
 
hi,The Primary DW'S itemchanged event is useless?

or maybe you can do this with a user event using the "pbm_command".and write the script :
datawindowchild ldwc_child
GetChild("dddw style column name in the primary dw",ldwc_child)
IF hwndchild = Handle( ldwc_Child ) THEN
CHOOSE CASE notificationcode
CASE 2048 // RowFocusChanged on DDDW
CASE 1281 // Clicked on DDDW
CASE 2314 // Right Mouse Button Clicked
CASE 2311 // MouseMove
CASE ELSE//other event you may founded.
END CHOOSE
END IF


 
Thanks. I'll review your response. The itemchanged event does not work for me since you have to loose focus for it to fire. I can understand this for a normal edit style column, but not for a dddw style column. So, you're right, it's useless for dddw.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top