Main Page | Modules | Data Structures | File List | Data Fields | Globals

Button widget
[Widgets]


Files

file  button.c
 Button core file.
file  button.h
 Button widget header file.

Modules

group  Buttons flags
 Values that can be set into TButton Flags field.

Data Structures

struct  TButton
 Button structure. More...

Typedefs

typedef TButton TButton
 Button structure.

Functions

void ButtonSetCaption (PButton b, l_text Caption)
 Change the caption of a button.
_PUBLIC PButton CreateButton (PApplication App, TRect r, l_text Caption, l_ulong Message)
 Creates a new button.

Detailed Description

Note:
Text is center by default.

Typedef Documentation

typedef struct TButton TButton
 

Button structure.

See also:
CreateButton


Function Documentation

void ButtonSetCaption PButton  b,
l_text  Caption
 

Change the caption of a button.

Parameters:
b Button to affect
Caption New caption
Note:
Redraw the button
See also:
CreateButton

PButton CreateButton PApplication  App,
TRect  r,
l_text  Caption,
l_ulong  Message
 

Creates a new button.

Parameters:
App Application which want to allocate the widget( use &Me in most cases)
r Relative coordinates of new widget
Caption Caption of button
Message Message send when button is clicked
See also:
WidgetInsert

buttonflags


Generated on Fri Oct 29 14:32:53 2004 for oZone GUI by doxygen 1.3.8