Skip to content

Detach Method 270

This method is used to detach the GUI component from an object without losing the functions, variables and sub-namespaces that it may contain.

The Detach method is niladic.

The effect of this method is to remove the GUI component associated with the named object, leaving behind a plain namespace of the same name. All non-GUI child objects are retained. GUI child objects are either destroyed, or similarly converted to plain namespaces depending upon the values of their KeepOnClose properties.

Application

Objects: ActiveXContainer, ActiveXControl, Animation, Bitmap, BrowseBox, Button, ButtonEdit, Calendar, Circle, Clipboard, ColorButton, Combo, ComboEx, CoolBand, CoolBar, Cursor, DateTimePicker, Edit, Ellipse, FileBox, Font, Form, Grid, Group, HTMLRenderer, Icon, Image, ImageList, Label, List, ListView, Locator, Marker, MDIClient, Menu, MenuBar, MenuItem, Metafile, MsgBox, OCXClass, OLEClient, OLEServer, Poly, Printer, ProgressBar, PropertyPage, PropertySheet, Rect, RichEdit, Scroll, Separator, SM, Spinner, Splitter, Static, StatusBar, StatusField, SubForm, SysTrayItem, TabBar, TabBtn, TabButton, TabControl, TCPSocket, Text, Timer, TipField, ToolBar, ToolButton, ToolControl, TrackBar, TreeView, UpDown