content top

StatusBar Class

StatusBar Class

    About StatusBar Class   StatusBar class is mainly used for creating and managing status bars.   StatusBar Class Methods   StatusBar.Create( long ParentHandle, long Style, long ExStyle ) creates a status bar. If the function succeeds, the return value is a handle to the new control. If the function fails, the return value is 0. long ParentHandle: a handle to the parent or owner control of the control being created. long Style: the style of the control being created. This parameter can be a combination of the window styles and status bar styles. long ExStyle: the extended style of the control being created. This parameter can be a combination of the extended window styles.   StatusBar.Exists( long StatusBarHandle ) returns true if the specified control was created with StatusBar.Create() method and not destroyed yet or false otherwise. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children. long StatusBarHandle: status bar handle.   StatusBar.Count() returns the total number of controls created with StatusBar.Create() method and not destroyed yet. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children.   StatusBar.GetHandleByIndex( ulong StatusBarIndex ) returns the handle from an index if the specified control was created with StatusBar.Create() method and not destroyed yet or 0 otherwise. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children. StatusBarIndex parameter should be less or equal to StatusBar.Count()-1. ulong StatusBarIndex: zero-based index of the status bar.   StatusBar.SetParts( long StatusBarHandle, long Parts ) sets the number of parts for the specified status bar. The function returns true if successful, or false otherwise. long StatusBarHandle: status bar handle. long Parts: number of parts to set (cannot be greater than 256).   StatusBar.GetParts( long StatusBarHandle ) returns the number of parts in a status bar. The function returns true if successful, or false otherwise. long StatusBarHandle: status bar handle.   StatusBar.SetPart( long StatusBarHandle, ulong PartIndex, long Position, long IconHandle, string Text ) sets the position, icon and text of the given part in a status bar. long StatusBarHandle: status bar handle. ulong PartIndex: zero-based index of the part. long Position: position of the part. If this parameter is -1, the right edge of the corresponding part extends to the border of the window. long IconHandle: icon handle. string Text: text of the part.   StatusBar.SetPartPosition( long StatusBarHandle, ulong PartIndex, long Position ) sets the...

Read More

ScrollBar Class

ScrollBar Class

    About ScrollBar Class   ScrollBar class is mainly used for creating and managing scroll bars.   ScrollBar Class Methods   ScrollBar.Create( long ParentHandle, long X, long Y, long Width, long Height, long Style, long ExStyle ) creates a scroll bar. If the function succeeds, the return value is a handle to the new control. If the function fails, the return value is 0. long ParentHandle: a handle to the parent or owner control of the control being created. long X: x coordinate. You can also use CW_USEDEFAULT constant for this argument. long Y: y coordinate. You can also use CW_USEDEFAULT constant for this argument. long Width: width. You can also use CW_USEDEFAULT constant for this argument. long Height: height. You can also use CW_USEDEFAULT constant for this argument. long Style: the style of the control being created. This parameter can be a combination of the window styles and scroll bar styles. long ExStyle: the extended style of the control being created. This parameter can be a combination of the extended window styles.   ScrollBar.Exists( long ScrollBarHandle ) returns true if the specified control was created with ScrollBar.Create() method and not destroyed yet or false otherwise. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children. long ScrollBarHandle: scroll bar handle.   ScrollBar.Count() returns the total number of controls created with ScrollBar.Create() method and not destroyed yet. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children.   ScrollBar.GetHandleByIndex( ulong ScrollBarIndex ) returns the handle from an index if the specified control was created with ScrollBar.Create() method and not destroyed yet or 0 otherwise. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children. ScrollBarIndex parameter should be less or equal to ScrollBar.Count()-1. ulong ScrollBarIndex: zero-based index of the scroll bar.   ScrollBar.SetRange( long ScrollBarHandle, long Type, long Minimum, long Maximum ) sets the minimum and maximum scroll box positions for the specified scroll bar. The return value is the current position of the scroll box. long ScrollBarHandle: scroll bar handle or window handle. long Type: specifies the scroll bar type. long Minimum: the minimum scrolling position. long Maximum: the maximum scrolling position. Type parameter can be one of the following constants. SB_CTL Sets the range of a scroll bar control. The ScrollBarHandle parameter must be the handle to the scroll bar control. SB_HORZ Sets the range of a...

Read More

Menu Class

Menu Class

    About Menu Class   Menu class is mainly used for creating and managing menus.   Menu Class Methods   Menu.Add() adds a menu. The menu is initially empty. If the function succeeds, the return value is a MenuHandle. If the function fails, the return value is 0. Resources associated with a menu that is assigned to a window are freed automatically. If the menu is not assigned to a window, an application must free system resources associated with the menu before closing. An application frees menu resources by calling the Menu.Delete() function.   Menu.AddSubMenu( long MenuHandle, long Position, string Text ) adds a drop-down menu or submenu to the given menu. If the function succeeds, the return value is a MenuHandle. If the function fails, the return value is 0. long MenuHandle: menu handle. long Position: zero-based position of the new menu item. If this argument is -1, the new menu item is appended to the end of the menu. string Text: text of the submenu.   Menu.AddItem( long MenuHandle, long Position, long UncheckedBitmapHandle, long CheckedBitmapHandle, string Text ) adds a menu item to the specified drop-down menu, submenu, or shortcut menu. If the fuction succeeds, the return value is the ItemIndex or -1 otherwise. long MenuHandle: menu handle. long Position: zero-based position of the new menu item. If this argument is -1, the new menu item is appended to the end of the menu. long UncheckedBitmapHandle: the bitmap shown when the menu item is unchecked. If this parameter is 0 no bitmap is shown. long CheckedBitmapHandle: the bitmap shown when the menu item is checked. If this parameter is 0 no bitmap is shown. string Text: text of the submenu.   Menu.AddItemBitmap( long MenuHandle, long Position, long UncheckedBitmapHandle, long CheckedBitmapHandle, long BitmapHandle ) adds a menu item as a bitmap. If the fuction succeeds, the return value is the ItemIndex or -1 otherwise. long MenuHandle: menu handle. long Position: zero-based position of the new menu item. If this argument is -1, the new menu item is appended to the end of the menu. long UncheckedBitmapHandle: the bitmap shown when the menu item is unchecked. If this parameter is 0 no bitmap is shown. long CheckedBitmapHandle: the bitmap shown when the menu item is checked. If this parameter is 0 no bitmap is shown. long BitmapHandle: bitmap handle.   Menu.AddItemBarBreak( long MenuHandle, long Position ) functions the same as the Menu.AddItemBreak() a menu bar. For a drop-down menu, submenu, or shortcut menu, the new column is separated from the old column by a vertical line. If the fuction succeeds, the return value is the ItemIndex or -1 otherwise. long MenuHandle: menu handle....

Read More

Edit Class

Edit Class

    About Edit Class   Edit class is mainly used for creating and managing edit controls.   Edit Class Methods   Edit.Create( long ParentHandle, long X, long Y, long Width, long Height, long Style, long ExStyle ) creates a edit control. If the function succeeds, the return value is a handle to the new control. If the function fails, the return value is 0. long ParentHandle: a handle to the parent or owner control of the control being created. long X: x coordinate. You can also use CW_USEDEFAULT constant for this argument. long Y: y coordinate. You can also use CW_USEDEFAULT constant for this argument. long Width: width. You can also use CW_USEDEFAULT constant for this argument. long Height: height. You can also use CW_USEDEFAULT constant for this argument. long Style: the style of the control being created. This parameter can be a combination of the window styles and edit control styles. long ExStyle: the extended style of the control being created. This parameter can be a combination of the extended window styles.   Edit.Exists( long EditHandle ) returns true if the specified control was created with Edit.Create() method and not destroyed yet or false otherwise. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children. long EditHandle: edit control handle.   Edit.Count() returns the total number of controls created with Edit.Create() method and not destroyed yet. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children.   Edit.GetHandleByIndex( ulong EditIndex ) returns the handle from an index if the specified control was created with Edit.Create() method and not destroyed yet or 0 otherwise. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children. EditIndex parameter should be less or equal to Edit.Count()-1. ulong EditIndex: zero-based index of the edit control.   Edit.CanUndo( long EditHandle ) determines whether there are any actions in the undo queue of an edit control. This method returns true if there are actions in the undo queue; otherwise false. long EditHandle: edit control handle.   Edit.Undo( long EditHandle ) undoes the last operation in the undo queue of an edit or rich edit control. For a single-line control, the return value is always true. For a multiline control, the return value is true if the undo operation is successful, or false otherwise. long EditHandle: edit control handle.   Edit.ResetUndo( long EditHandle ) resets the...

Read More

ListBox Class

ListBox Class

    About ListBox Class   ListBox class is mainly used for creating and managing list boxes.   ListBox Class Methods   ListBox.Create( long ParentHandle, long X, long Y, long Width, long Height, long Style, long ExStyle ) creates a list box. If the function succeeds, the return value is a handle to the new control. If the function fails, the return value is 0. long ParentHandle: a handle to the parent or owner control of the control being created. long X: x coordinate. You can also use CW_USEDEFAULT constant for this argument. long Y: y coordinate. You can also use CW_USEDEFAULT constant for this argument. long Width: width. You can also use CW_USEDEFAULT constant for this argument. long Height: height. You can also use CW_USEDEFAULT constant for this argument. long Style: the style of the control being created. This parameter can be a combination of the window styles and list box styles. long ExStyle: the extended style of the control being created. This parameter can be a combination of the extended window styles.   ListBox.Exists( long ListBoxHandle ) returns true if the specified control was created with ListBox.Create() method and not destroyed yet or false otherwise. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children. long ListBoxHandle: list box handle.   ListBox.Count() returns the total number of controls created with ListBox.Create() method and not destroyed yet. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children.   ListBox.GetHandleByIndex( ulong ListBoxIndex ) returns the handle from an index if the specified control was created with ListBox.Create() method and not destroyed yet or 0 otherwise. Note that all child controls are destroyed when parent control is destroyed. You can also call Control.Destroy() method for destroying a specific control with all of its children. ListBoxIndex parameter should be less or equal to ListBox.Count()-1. ulong ListBoxIndex: zero-based index of the list box.   ListBox.AddItem( long ListBoxHandle, long ItemIndex, string ItemText ) adds a string or item data into a list box. The return value is the index of the position at which the string was inserted. If an error occurs, the return value is LB_ERR. If there is insufficient space to store the new string, the return value is LB_ERRSPACE. long ListBoxHandle: list box handle. long ItemIndex: zero-based index of the item or –1 to add it to the end of the list. string ItemText: item text.   ListBox.GetItem( long ListBoxHandle, long ItemIndex ) returns a string from a list...

Read More
content top