Chuck,
Use the ON DOUBLE CLICKED event to manage access, and the return

something like this:
Case of 
: (Form event=On Double Clicked)  //on a form event of double click
lstbox_Output_On_Double_Click 

: (Form event=On Display Detail)
lstbox_Output_Display_Detail 

: (Form event=On Header Click)
lstbox_Manage_Header_Clicks 
(x_Output_Listbox_Field_Set;->ptr_Current_Table_Order_Field)
end case
\\ end method


follows a portion of Lstbox_Output_On_Double_Click

<snipped code>
DIALOG(ptr_Output_Display_Table->;x_Output_Input_Form_Name)  //display locked 
record for user to examine

If (ptr_Accept_Button->>0)  //user accepted the changed record
  lstbox_Output_On_Close_Detail   //hook to allow actions to occur after 
editing a record
end if  
//we are returning to the output listbox form -
lstbox_Output_Dbl_Clk_Return ($Added)  //we are returning to the output listbox 
form  



Notes:
lstbox_Output_On_Close_Detail - this method does table specific actions after 
closing a entry form, specific (related or otherwise displayed) selections that 
need to be cleared, resetting read write/read only states, managing file 
transfers from client to server, etc.

lstbox_Output_Dbl_Clk_Return - this is a generic method which runs regardless 
of table specifics contains things like resetting window title, menu bar, 
making sure the the right selection is displayed (and sorted as appropriate) 
etc etc


Hope this helps
Chip

> Hi All,
> 
> In converting some of our old forms which make use of open and close
> detail form events in the form method. I have discovered that these
> two events do not seem to fire when using a listbox. We are still at
> v15, but does anyone have any ideas. We are using dialog to open the
> form and not modify or display selection
> When we use modify or display selection the buttons at the top of the
> form disappear.
> 
> Thanks and regards
> 
> Chuck
> 
> -- 
> -----------------------------------------------------------------------------------------
>  Chuck Miller Voice: (617) 739-0306 Fax: (617) 232-1064
>  Informed Solutions, Inc.
>  Brookline, MA 02446 USA Registered 4D Developer
>        Providers of 4D, Sybase & SQL Server connectivity
>           https://www.informed-solutions.com
> -----------------------------------------------------------------------------------------
> This message and any attached documents contain information which may
> be confidential, subject to privilege or exempt from disclosure under
> applicable law.  These materials are intended only for the use of the
> intended recipient. If you are not the intended recipient of this
> transmission, you are hereby notified that any distribution,
> disclosure, printing, copying, storage, modification or the taking of
> any action in reliance upon this transmission is strictly prohibited.
> Delivery of this message to any person other than the intended
> recipient shall not compromise or waive such confidentiality,
> privilege or exemption from disclosure as to this communication.
> **********************************************************************
> 4D Internet Users Group (4D iNUG)
> Archive:  http://lists.4d.com/archives.html
> Options: https://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:[email protected]
> **********************************************************************
------------
Hell is other people 
     Jean-Paul Sartre
**********************************************************************
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to