Hi Rick; I got to tell you; every time I look at one of your screens... I get inspired. Thank you for the screen shot and the code. Forgive me if I steal some of your ideas.
Gilbert- It feels so good to read your response. It bring a smile to my face. I need to come around this forum more often.
I searched for DEFAULT button, but I don't think there is one.
Code: Select all
TRANSACTIONS_DLG DIALOG 0, 0, 661, 457
STYLE DS_3DLOOK |DS_SETFONT |DS_MODALFRAME |WS_POPUP |WS_VISIBLE |WS_CAPTION
CAPTION "Property Transactions"
FONT 8, "MS Sans Serif"
LANGUAGE LANG_NEUTRAL, 0
BEGIN
CONTROL "",1001,"BUTTON",BS_GROUPBOX |WS_CHILD |WS_VISIBLE ,5,432,653,23
CONTROL "",131,"txbrowse",WS_CHILD |WS_BORDER |WS_VSCROLL |WS_TABSTOP |WS_VISIBLE ,26,19,633,254
CONTROL " E&xit",126,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_VISIBLE ,606,438,50,14
CONTROL "UserDefined",1,"Tfolderex",WS_CHILD |WS_VISIBLE ,5,292,653,141
CONTROL " &Print",130,"BUTTON",BS_PUSHBUTTON |BS_VCENTER |BS_CENTER |WS_CHILD |WS_VISIBLE ,550,438,50,14
CONTROL "",99,"COMBOBOX",CBS_DROPDOWNLIST |WS_CHILD |WS_VISIBLE ,59,1,158,12
CONTROL "Landlord",65535,"STATIC",SS_RIGHT |WS_CHILD |WS_GROUP |WS_VISIBLE ,21,5,33,8
CONTROL "",97,"COMBOBOX",CBS_DROPDOWNLIST |WS_CHILD |WS_VISIBLE ,265,2,158,12
CONTROL "Property",65535,"STATIC",SS_RIGHT |WS_CHILD |WS_GROUP |WS_VISIBLE ,228,5,33,8
CONTROL "",201,"TBtnBmp",WS_CHILD |WS_VISIBLE ,4,19,14,14
CONTROL "",96,"SysDateTimePick32",WS_CHILD |WS_VISIBLE |0x2,486,3,79,12
CONTROL "",95,"SysDateTimePick32",WS_CHILD |WS_VISIBLE |0x2,575,3,79,12
CONTROL "Between",65535,"STATIC",SS_RIGHT |WS_CHILD |WS_GROUP |WS_VISIBLE ,442,5,33,8
CONTROL "",400,"msctls_progress32",WS_CHILD |WS_VISIBLE ,5,276,653,11
CONTROL "",202,"TBtnBmp",WS_CHILD |WS_VISIBLE ,4,36,14,14
CONTROL "",203,"TBtnBmp",WS_CHILD |WS_VISIBLE ,4,53,14,14
CONTROL "",204,"TBtnBmp",WS_CHILD |WS_VISIBLE ,4,70,14,14
CONTROL "Net:",500,"STATIC",SS_RIGHT |WS_CHILD |WS_GROUP |WS_VISIBLE ,433,277,220,11
END
BTW- pressing <Enter> will not close the dialog unless the EDIT_LISTBOX cell on the xbrowse is highlighting an element on the dropdown list. I would expect pressing <Enter> on an item on the dropdown listbox of the xbrowse cell would pick that item. Instead if closes the dialog. ***BUT*** only if the dialog is non-modal. With a modal dialog pressing <enter> while highlighting an element on the EDIT_LISTBOX of an xbrowse cell produces the expected results.
I would think someone else has seen this behavior before. If not, then I think I will need to create a reduced self-contained sample.
Reinaldo.