a1200   NEWS   APPS   DOCS   ABOUT
a1200
----
a1200
----
Autodocs
 Libraries:
 workbench.library
  AddAppIconA
  AddAppMenuItemA
  AddAppWindowA
  AddAppWindowDropZoneA
  ChangeWorkbenchSelectionA
  CloseWorkbenchObjectA
  MakeWorkbenchObjectVisibleA
  OpenWorkbenchObjectA
  RemoveAppIcon
  RemoveAppMenuItem
  RemoveAppWindow
  RemoveAppWindowDropZone
  UpdateWorkbench
  WBInfo
  WorkbenchControlA
Include
GuruMeditation
Docs » Autodocs » workbench.library » CloseWorkbenchObjectA

NAME

	CloseWorkbenchObjectA -- Close a drawer as if the user had clicked
on the window close gadget. (V44)

SYNOPSIS

	success = CloseWorkbenchObjectA(name,tags)
D0 A0 A1
BOOL CloseWorkbenchObjectA(STRPTR name,struct TagItem *tags);
success = CloseWorkbenchObject(name,...);
BOOL CloseWorkbenchObject(STRPTR name,...);

FUNCTION

	This routine attempts to close the named object as if the user
had clicked on its drawer window close gadget.

INPUTS

	name -- Name of the drawer to be closed.
tags -- Additional options.

TAGS

	No tags are defined yet (V44).

RESULT

	result -- FALSE if the object in question could not be closed,
TRUE otherwise. If FALSE is returned, you can query the error
code using dos.library/IoErr().

EXAMPLE

	/* Close the drawer "SYS:" */
CloseWorkbenchObjectA("SYS:",NULL);

NOTES

	The name of the drawer to be closed is interpreted relative
to the current directory of the program to call
CloseWorkbenchObjectA().
For this function call to succeed, Workbench must be open. This
means that the LoadWB command was executed and the Workbench
screen has been opened.
While the user is dragging icons, no on-screen rendering may
take place. In this state Workbench may refuse to execute the
CloseWorkbenchObject() call and return an error code instead
(ERROR_OBJECT_IN_USE).

SEE ALSO

dos.library/IoErr(), workbench.library/OpenWorkbenchObjectA()

Comments

Name:
E-mail: Use this if you want a message if you get a response, will not be shown.
Comment:
Select correct short for:

Fairlight

FLT
FC
DC
SPB

Comments:

$VER: d0.se 1.14 Copyright © 2011-2024 Tobias Geijersson support at d0 dot se