In the IW these are the results I get from each of these functions:
Used in the system Form Menu:
?a5_window_list()
= {DATA=!a5_controlpanel_activate()}{I=$a5_controlpanel}Control Panel
{DATA=!Home.activate()}{I=$a5_form}Main Menu
{Data=!obj("Contact_Type").activate()}{I=$a5_browse}Contact_Type
{F=+B}{DATA=!Code_Editor.activate()}{I=$a5_script}Code Editor
{I=$$generic.help}{DATA=!__a5documentation_window.activate()} Alpha Anywhere Documentation
What I am using in an XD xml toolbox script:
?a5_list_open_windows()
= ControlPanel
Home
Code_Editor
__a5documentation_window
The difference between these two functions is the first will list a browse but the second will not. Also in the 2nd I can get a pointer to the object name and use a doubleclick event to close it. The first will not do this. Both functions will activate the window when clicked. So of course, I want to do both in my XD, show the named browse in the list of open windows and also be able to activate it as well as close it from the list.
The 1st function is returning the normalized name for the browse object that I assigned using this.window_title = "Contact_Type" in the OnInit event for the browse. It does not however show that title in the browse title bar but instead displays the table name. So much for naming a browse...
Any ideas before I change all these named browses to embedded browses on forms?
Used in the system Form Menu:
?a5_window_list()
= {DATA=!a5_controlpanel_activate()}{I=$a5_controlpanel}Control Panel
{DATA=!Home.activate()}{I=$a5_form}Main Menu
{Data=!obj("Contact_Type").activate()}{I=$a5_browse}Contact_Type
{F=+B}{DATA=!Code_Editor.activate()}{I=$a5_script}Code Editor
{I=$$generic.help}{DATA=!__a5documentation_window.activate()} Alpha Anywhere Documentation
What I am using in an XD xml toolbox script:
?a5_list_open_windows()
= ControlPanel
Home
Code_Editor
__a5documentation_window
The difference between these two functions is the first will list a browse but the second will not. Also in the 2nd I can get a pointer to the object name and use a doubleclick event to close it. The first will not do this. Both functions will activate the window when clicked. So of course, I want to do both in my XD, show the named browse in the list of open windows and also be able to activate it as well as close it from the list.
The 1st function is returning the normalized name for the browse object that I assigned using this.window_title = "Contact_Type" in the OnInit event for the browse. It does not however show that title in the browse title bar but instead displays the table name. So much for naming a browse...
Any ideas before I change all these named browses to embedded browses on forms?
Comment