Posted by Grant Foraker on June 02, 2006 at 13:58:26:
Have a popup dialog I'm developing based on dlg10 (list view). It display as list of A/R transactions and Display, Print, and Close buttons. At the start, the Close button has a thin, solid outline. If the user highlights an invoice and clicks Display, I execute the following ...
============================================================
Case IDC.LIST.DISPLAY
GOSUB GetData
IF SUB(ListInvoice$,1,1) NE ' ' ! Have an Invoice Number
LET PASS$ = ListInvoice$
ENTER 'RHQ10' ! DISPLAY INVOICE
cosCtlId = IDC.LIST.CLOSE
Gosub COS.SetDlgItemFocus
Endif
=======================================================
At first, when returning from RHQ10, the dialog lost the focus. I added the COS.SetDlgItemFocus logic to get the focus back. That worked, almost. Now, the Display button retains the thin, solid outline and the Close button has a dotted line around Close.
If I click on another item in the list, then the dotted line goes away and the thin, solid outline returns to the Close button.
Not sure what to ask google :)