pop-up window

hi friends ,

I want to have a popup window or list box when double click on control. how to do it.

pls help

you can use following code in the clicked method of you control:

TransDate fromdate, todate;

dialog dlg;
DialogField dialogFromDate, dialogToDate;

dlg = new dialog(“Date dailog”);
dialogFromDate = dlg.addField(typeID(Transdate),“From date”);
dialogToDate = dlg.addField(typeID(Transdate),“To date”);

fromDate = dialogFromDate.value();

todate = dialogToDate.value();