Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/Functions by category

This list shows the core WinBinder functions listed by category. These functions start with the prefix wb_. Some functions may appear in more than one category.

Tip: You may also consult the <winterpostwiki>Alphabetical list of functions</winterpostwiki>. For other functions, see the See also section below.

WARNING: The functions marked with a stop sign (Image:Icon stop 16.gif) provide low-level access to the Windows API and should be used with great care.

Contents

Control functions

These functions are related to WinBinder controls.

<winterpostwiki>wb_create_control</winterpostwiki> Creates a control, menu, or accelerator
<winterpostwiki>wb_create_items</winterpostwiki> Creates one or more items in a control or menu
<winterpostwiki>wb_delete_items</winterpostwiki> Deletes items from a control or menu
<winterpostwiki>wb_destroy_control</winterpostwiki> Destroys a control
<winterpostwiki>wb_get_class</winterpostwiki> Retrieves the class of a control, window or menu
<winterpostwiki>wb_get_control</winterpostwiki> Returns the handle to a child control in a dialog box or in a menu item
<winterpostwiki>wb_get_enabled</winterpostwiki> Tells whether a control is enabled
<winterpostwiki>wb_get_focus</winterpostwiki> Returns a handle to the window or control that has the keyboard focus
<winterpostwiki>wb_get_id</winterpostwiki> Returns the integer identifier of a control or window
<winterpostwiki>wb_get_item_count</winterpostwiki> Returns the number of items in an object
<winterpostwiki>wb_get_item_list</winterpostwiki> Returns an array with child items or controls
<winterpostwiki>wb_get_level</winterpostwiki> Retrieves the level of a control item
<winterpostwiki>wb_get_parent</winterpostwiki> Returns the control or item parent
<winterpostwiki>wb_get_position</winterpostwiki> Retrieves the position of a control or window
<winterpostwiki>wb_get_selected</winterpostwiki> Returns the selected state of one or more items
<winterpostwiki>wb_get_size</winterpostwiki> Retrieves the size of a control or window
<winterpostwiki>wb_get_state</winterpostwiki> Retrieves the expanded or collapsed state of a treeview node
<winterpostwiki>wb_get_text</winterpostwiki> Gets the text from a control, window, menu item, an item, or sub-item
<winterpostwiki>wb_get_value</winterpostwiki> Retrieves the value of a control, item, or sub-item
<winterpostwiki>wb_get_visible</winterpostwiki> Tells whether an object is visible
<winterpostwiki>wb_refresh</winterpostwiki> Refreshes or redraws an object
<winterpostwiki>wb_set_area</winterpostwiki> Sets a specific area in a window
<winterpostwiki>wb_set_enabled</winterpostwiki> Enables or disables a control
<winterpostwiki>wb_set_focus</winterpostwiki> Assigns the focus to an object
<winterpostwiki>wb_set_font</winterpostwiki> Sets the font of a control
<winterpostwiki>wb_set_image</winterpostwiki> Assigns an image to an object
<winterpostwiki>wb_set_item_image</winterpostwiki> Assigns a portion of an image to a control item
<winterpostwiki>wb_set_location</winterpostwiki> Sets the location of an HTML control or sends a special command to it
<winterpostwiki>wb_set_position</winterpostwiki> Moves an object
<winterpostwiki>wb_set_range</winterpostwiki> Sets the valid range of values of a control.
<winterpostwiki>wb_set_selected</winterpostwiki> Selects one or more items of a control
<winterpostwiki>wb_set_size</winterpostwiki> Sets the size of an object
<winterpostwiki>wb_set_state</winterpostwiki> Sets the state of a treeview node
<winterpostwiki>wb_set_style</winterpostwiki> Sets or resets the style of an object
<winterpostwiki>wb_set_text</winterpostwiki> Sets the text of an object
<winterpostwiki>wb_set_value</winterpostwiki> Sets the value(s) and/or the minimum and maximum range of a control
<winterpostwiki>wb_set_visible</winterpostwiki> Shows or hides an object
<winterpostwiki>wb_sort</winterpostwiki> Sorts the contents of a control

Dialog functions

These functions are related to standard dialog boxes and message boxes.

<winterpostwiki>wb_message_box</winterpostwiki> Displays a message box
<winterpostwiki>wb_sys_dlg_color</winterpostwiki> Displays the standard Select Color dialog box
<winterpostwiki>wb_sys_dlg_open</winterpostwiki> Displays the standard Open dialog box
<winterpostwiki>wb_sys_dlg_path</winterpostwiki> Displays the standard Select Path dialog box
<winterpostwiki>wb_sys_dlg_save</winterpostwiki> Displays the standard Save As dialog box

Drawing functions

These are functions that draw pixels, shapes, lines, and text.

<winterpostwiki>wb_draw_image</winterpostwiki> Draws an opaque or transparent bitmap
<winterpostwiki>wb_draw_line</winterpostwiki> Draws a straight line
<winterpostwiki>wb_draw_point</winterpostwiki> Draws a point of color
<winterpostwiki>wb_draw_rect</winterpostwiki> Draws a filled or hollow rectangle
<winterpostwiki>wb_draw_text</winterpostwiki> Draws a text string
<winterpostwiki>wb_get_pixel</winterpostwiki> Returns the RGB color value of a pixel

Image functions

These functions are related to images (bitmaps, icons and cursors).

<winterpostwiki>wb_create_image</winterpostwiki> Creates an image Image:Icon stop 16.gif
<winterpostwiki>wb_create_mask</winterpostwiki> Creates a masked (transparent) image
<winterpostwiki>wb_destroy_image</winterpostwiki> Destroys an image
<winterpostwiki>wb_load_image</winterpostwiki> Loads an image file from disk and returns a handle to it
<winterpostwiki>wb_get_image_data</winterpostwiki> Returns the internal true-color representation of an image
<winterpostwiki>wb_get_size</winterpostwiki> Gets the dimensions of an image
<winterpostwiki>wb_save_image</winterpostwiki> Saves an image to disk
<winterpostwiki>wb_set_image</winterpostwiki> Assigns an image to an object
<winterpostwiki>wb_set_item_image</winterpostwiki> Assigns a portion of an image to a control item

Low-level functions

These functions are for direct access to the Windows API and other low-level operations.

<winterpostwiki>wb_call_function</winterpostwiki> Calls a DLL function Image:Icon stop 16.gif
<winterpostwiki>wb_create_image</winterpostwiki> Creates an image with DIB parameters Image:Icon stop 16.gif
<winterpostwiki>wb_load_library</winterpostwiki> Loads a DLL into memory
<winterpostwiki>wb_get_address</winterpostwiki> Returns the address of a variable
<winterpostwiki>wb_get_function_address</winterpostwiki> Retrieves the address of a library function
<winterpostwiki>wb_get_image_data</winterpostwiki> Returns the internal true-color representation of an image
<winterpostwiki>wb_peek</winterpostwiki> Gets the contents of a memory area
<winterpostwiki>wb_poke</winterpostwiki> Sets the contents of a memory area Image:Icon stop 16.gif
<winterpostwiki>wb_release_library</winterpostwiki> Releases a DLL from memory
<winterpostwiki>wb_send_message</winterpostwiki> Sends a Windows message to an object Image:Icon stop 16.gif

System functions

These are functions related to the OS or functions that simply did not fit in any other category.

<winterpostwiki>wb_exec</winterpostwiki> Opens or executes a command
<winterpostwiki>wb_create_font</winterpostwiki> Creates a font
<winterpostwiki>wb_create_timer</winterpostwiki> Creates a timer
<winterpostwiki>wb_destroy_font</winterpostwiki> Destroys a font
<winterpostwiki>wb_destroy_timer</winterpostwiki> Destroys a timer
<winterpostwiki>wb_find_file</winterpostwiki> Looks for a file in the Windows and System directories
<winterpostwiki>wb_get_instance</winterpostwiki> Detects a running instance of a WinBinder application
<winterpostwiki>wb_get_registry_key</winterpostwiki> Returns the value of a registry entry
<winterpostwiki>wb_get_system_info</winterpostwiki> Returns various data about the current system
<winterpostwiki>wb_main_loop</winterpostwiki> Enters the Windows main loop
<winterpostwiki>wb_play_sound</winterpostwiki> Plays a system sound
<winterpostwiki>wb_set_registry_key</winterpostwiki> Sets the value of a registry entry Image:Icon stop 16.gif
<winterpostwiki>wb_wait</winterpostwiki> Verifies mouse and keyboard status, create a delay

Window functions

These functions are related to windows and dialog boxes.

<winterpostwiki>wb_create_window</winterpostwiki> Creates a window
<winterpostwiki>wb_destroy_window</winterpostwiki> Destroys a window
<winterpostwiki>wb_get_class</winterpostwiki> Retrieves the class of a control, window or menu
<winterpostwiki>wb_get_focus</winterpostwiki> Returns a handle to the window or control that has the keyboard focus
<winterpostwiki>wb_get_id</winterpostwiki> Returns the integer identifier of a control or window
<winterpostwiki>wb_get_item_count</winterpostwiki> Returns the number of items in an object
<winterpostwiki>wb_get_item_list</winterpostwiki> Returns an array with child items or controls
<winterpostwiki>wb_get_parent</winterpostwiki> Returns the control or item parent
<winterpostwiki>wb_get_position</winterpostwiki> Retrieves the position of a control or window
<winterpostwiki>wb_get_size</winterpostwiki> Retrieves the size of a control or window
<winterpostwiki>wb_get_text</winterpostwiki> Gets the text from a control, window, menu item, an item, or sub-item
<winterpostwiki>wb_get_visible</winterpostwiki> Tells whether an object is visible
<winterpostwiki>wb_refresh</winterpostwiki> Refreshes or redraws an object
<winterpostwiki>wb_set_focus</winterpostwiki> Assigns the focus to an object
<winterpostwiki>wb_set_handler</winterpostwiki> Assigns a callback function to a window
<winterpostwiki>wb_set_image</winterpostwiki> Assigns an image to an object
<winterpostwiki>wb_set_position</winterpostwiki> Moves an object
<winterpostwiki>wb_set_area</winterpostwiki> Sets a specific area in a window
<winterpostwiki>wb_set_size</winterpostwiki> Sets the size of an object
<winterpostwiki>wb_set_style</winterpostwiki> Sets or resets the style of an object
<winterpostwiki>wb_set_text</winterpostwiki> Sets the text of an object
<winterpostwiki>wb_set_visible</winterpostwiki> Shows or hides an object
<winterpostwiki>wb_wait</winterpostwiki> Verifies mouse and keyboard status, create a delay

See also

Winbinder Projects