Previous topic Next topic
DECLARE WINDOW
Help > Forms >

/////////////////////////////////////////////////////////////////////
// DECLARE WINDOW
/////////////////////////////////////////////////////////////////////

#xcommand DECLARE WINDOW <w> ;
   => ;
      #xtranslate <w> . \<p: Name, Title, Height, Width, ClientHeight, ;
            ClientWidth, VirtualHeight, VirtualWidth, Col, Row, BackColor, ;
            FocusedControl, hWnd, Object, Cursor, NotifyIcon, NotifyToolTip, ;
            SaveAs, MinWidth, MaxWidth, MinHeight, MaxHeight, Topmost, ;
            HelpButton, Closable, Handle\> ;
            => GetExistingFormObject( <(w)> ):\<p\> ;;
      #xtranslate <w> . \<p: Activate, Center, Release, Maximize, Minimize, ;
            Restore, Show, Hide, Print, SetFocus, Redraw\> \[()\] ;
            => GetExistingFormObject( <(w)> ):\<p\> () ;;
      #xtranslate <w> . \<c\> . DisableEdit ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):ReadOnly ;;
      #xtranslate <w> . \<c\> . \<p: Value, Name, Address, BackColor, Spacing, ;
            FontColor, Picture, ToolTip, FontName, FontSize, FontBold, Col, ;
            FontUnderline, FontItalic, FontStrikeOut, Caption, Row, RePaint, ;
            Width, Height, Visible, Enabled, Checked, ItemCount, RangeMin, ;
            RangeMax, CaretPos, ForeColor, ScrollCaret, GetEditSel, Stretch, ;
            Indent, SelColor, OnChange, AllowAppend, AllowDelete, AllowEdit, ;
            Action, OnClick, Length, hWnd, Object, ReadOnly, Cargo, TabStop, ;
            ItemHeight, RichValue, OnGotFocus, OnLostFocus, OnDblClick, ;
            HBitMap, Handle\> ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\> ;;
      #xtranslate <w> . \<c: VScrollBar, HScrollBar\> . \<p\> ;
            => GetExistingFormObject( <(w)> ):\<c\>:\<p\> ;;
      #xtranslate <w> . \<c\> . Enabled( \<arg\> ) ;
            => GetExistingControlObject( \<(c)\>, ;
            <(w)> ):ItemEnabled( \<arg\> ) ;;
      #xtranslate <w> . \<c\> . \<p: Enabled\>( \<arg: .T., .F.\> ) ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\> := \<arg\> ;;
      #xtranslate <w> . \<c\> . Enabled( \<arg\> ) := \<n\> ;
            => GetExistingControlObject( \<(c)\>, ;
            <(w)> ):ItemEnabled( \<arg\>, \<n\> ) ;;
      #xtranslate <w> . \<c\> . \<p: DisplayValue, Position, ForeColor\> ;
            => GetProperty( <(w)>, \<(c)\>, \<(p)\> ) ;;
      #xtranslate <w> . \<c\> . \<p: DisplayValue, Position, ForeColor, ;
            CaretPos, OnChange\> := \<n\> ;
            => SetProperty( <(w)>, \<(c)\>, \<(p)\>, \<n\> ) ;;
      #xtranslate <w> . \<c\> . \<p: Caption, Header, Item, Icon, ColumnWidth, ;
            Picture, Image, Stretch, ItemReadonly, ItemEnabled, ItemDraggable, ;
            CheckItem, BoldItem\>( \<arg\> ) ;
            => GetProperty( <(w)>, \<(c)>, \<(p)>, \<arg\> ) ;;
      #xtranslate <w> . \<c\> . \<p: Caption, Header, Item, Icon, ColumnWidth, ;
            Picture, Image, Stretch, ItemReadonly, ItemEnabled, ItemDraggable, ;
            CheckItem, BoldItem\>( \<arg\> ) := \<n\> ;
            => SetProperty( <(w)>, \<(c)>, \<(p)>, \<arg\>, \<n\> ) ;;
      #xtranslate <w> . \<c\> . \<p: EnableUpdate, DisableUpdate\> ;
            => EMPTY( 0 ) ;;
      #xtranslate <w> . \<c\> . \<p:Cell\>( \<arg1\>, \<arg2\> ) ;
            => GetProperty( <(w)>, \<(c)>, \<(p)>, \<arg1\>, \<arg2\> ) ;;
      #xtranslate <w> . \<c\> . \<p: Cell\>( \<arg1\>, \<arg2\> ) := \<n\> ;
            => SetProperty( <(w)>, \<(c)>, \<(p)>, \<arg1\>, \<arg2\>, \<n\> ) ;;
      #xtranslate <w> . \<c\> . \<p: Refresh, SetFocus, DeleteAllItems, ;
            Release, Show, Hide, Play, Stop, Close, Pause, Eject, OpenDialog, ;
            Resume, ColumnsAutoFit, ColumnsAutoFitH, ColumnsBetterAutoFit, ;
            EditLabel, Up, Down, Left, Right, PageDown, PageUp, GoTop, ;
            GoBottom, Redraw\> \[()\] ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\>() ;;
      #xtranslate <w> . \<c\> . \<p: Save\> \[()\] ;
            => DoMethod( <(w)>, \<(c)\>, \<(p)> ) ;;
      #xtranslate <w> . \<c\> . \<p: Action, OnClick, OnGotFocus, OnLostFocus, ;
            OnDblClick, OnChange\>() ;
            => DoMethod( <(w)>, \<(c)\>, \<(p)> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddItem, DeleteItem, Open, DeletePage, ;
            DeleteColumn, Expand, Collapse, ColumnAutoFit, ColumnAutoFitH, ;
            ColumnBetterAutoFit, GetParent, GetChildren, HandleToItem, Action, ;
            OnClick, TabStop, HeaderImage\>( \<a\> ) ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\> ( \<a\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddItem, Item, ItemReadonly, ItemEnabled, ;
            ItemDraggable, CheckItem, BoldItem, HeaderImage\>( \<arg1\>, ;
            \<arg2\> ) ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\>( \<arg1\>, ;
            \<arg2\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddPage, SetRange, SetEditSel\>( \<a1\>, ;
            \<a2\> ) ;
            => DoMethod( <(w)>, \<(c)>, \<(p)>, \<a1\>, \<a2\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddPage\>( \<a1\>, \<a2\>, \<a3\> ) ;
            => DoMethod( <(w)>, \<(c)>, \<(p)>, \<a1\>, \<a2\>, \<a3\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddPage\>( \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\> ) ;
            => DoMethod( <(w)>, \<(c)>, \<(p)>, \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddPage\>( \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\> ) ;
            => DoMethod( <(w)>, \<(c)>, \<(p)>, \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddPage\>( \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\>, \<a6\> ) ;
            => DoMethod ( <(w)>, \<(c)>, \<(p)>, \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\>, \<a6\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddPage\>( \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\>, \<a6\>, \<a7\> ) ;
            => DoMethod ( <(w)>, \<(c)>, \<(p)>, \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\>, \<a6\>, \<a7\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddItem, Item\>( \<a1\>, \<a2\>, \<a3\> ) ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\> ( \<a1\>, ;
            \<a2\>, \<a3\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddColumn, AddControl\>( \<a1\>, \<a2\>, ;
            \<a3\>, \<a4\> ) ;
            => DoMethod( <(w)>, \<(c)>, \<(p)>, \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddItem\>( \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\> ) ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\> ( \<a1\>, ;
            \<a2\>, \<a3\>, \<a4\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddItem\>( \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\> ) ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\>( \<a1\>, ;
            \<a2\>, \<a3\>, \<a4\>, \<a5\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddItem\>( \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\>, \<a6\> ) ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\>( \<a1\>, ;
            \<a2\>, \<a3\>, \<a4\>, \<a5\>, \<a6\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddItem\>( \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\>, \<a6\>, \<a7\> ) ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\>( \<a1\>, ;
            \<a2\>, \<a3\>, \<a4\>, \<a5\>, \<a6\>, \<a7\> ) ;;
      #xtranslate <w> . \<c\> . \<p: AddItem\>( \<a1\>, \<a2\>, \<a3\>, ;
            \<a4\>, \<a5\>, \<a6\>, \<a7\>, \<a8\> ) ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\> ( \<a1\>, ;
            \<a2\>, \<a3\>, \<a4\>, \<a5\>, \<a6\>, \<a7\>, \<a8\> ) ;;
      #xtranslate <w> . \<c\> . \<p: Speed, Volume, Zoom\> := \<n\> ;
            => GetExistingControlObject( \<(c)\>, <(w)> ):\<p\> ( \<n\> ) ;;
      #xtranslate <w> . \<x\> . \<c\> . \<p: Caption, Enabled\> ;
            => GetProperty( <(w)>, \<(x)>, \<(c)>, \<(p)> ) ;;
      #xtranslate <w> . \<x\> . \<c\> . \<p: Caption, Enabled\> := \<n\> ;
            => SetProperty( <(w)>, \<(x)>, \<(c)>, \<(p)>, \<n\> ) ;;
      #xtranslate <w> . \<x\>( \<k\> ) . \<c\> . \<p: Value, Name, Address, ;
            BackColor, FontColor, Picture, ToolTip, FontName, FontSize, ;
            FontBold, FontItalic, FontUnderline, FontStrikeOut, Caption, ;
            Row, DisplayValue, Col, Width, Height, Visible, Enabled, Checked, ;
            ItemCount, RangeMin, RangeMax, Position, CaretPos, ForeColor, ;
            ScrollCaret\> ;
            => <w> . \<c\> . \<p\> ;;
      #xtranslate <w> . \<x\>( \<k\> ) . \<c\> . \<p: Caption, Header, Item, ;
            Icon\>( \<arg\> ) ;
            => <w> . \<c\> . \<p\>( \<arg\> ) ;;
      #xtranslate <w> . \<x\>( \<k\> ) . \<c\> . \<p: Refresh, SetFocus, ;
            DeleteAllItems, Release, Show, Save, Hide, Play, Stop, Close, ;
            Pause, Eject, OpenDialog, Resume, Action, OnClick\> \[()\] ;
            => <w> . \<c\> . \<p\> () ;;
      #xtranslate <w> . \<x\>( \<k\> ) . \<c\> . \<p: AddItem, DeleteItem, ;
            Open, DeletePage, DeleteColumn, Expand, Collapse, Seek\>( \<a\> ) ;
            => <w> . \<c\> . \<p\> ( \<a\> ) ;;
      #xtranslate <w> . \<x\>( \<k\> ) . \<c\> . \<p: AddItem, ;
            AddPage\>( \<a1\>, \<a2\> ) ;
            => <w> . \<c\> . \<p\> ( \<a1\>, \<a2\> ) ;;
      #xtranslate <w> . \<x\>( \<k\> ) . \<c\> . \<p: AddItem, ;
            AddPage\>( \<a1\>, \<a2\>, \<a3\> ) ;
            => <w> . \<c\> . \<p\> ( \<a1\>, \<a2\>, \<a3\> ) ;;
      #xtranslate <w> . \<x\>( \<k\> ) . \<c\> . \<p: AddItem, AddColumn, ;
            AddControl, AddPage\>( \<a1\>, \<a2\>, \<a3\>, \<a4\> ) ;
            => <w> . \<c\> . \<p\> ( \<a1\>, \<a2\>, \<a3\>, \<a4\> ) ;;
      #xtranslate <w> . \<x\>( \<k\> ) . \<c\> . \<p: Name, Length, hWnd, ;
            Object, ReadOnly, DisableEdit, Speed, Volume, Zoom, Handle\> ;
            => <w> . \<c\> . \<p\>