Functions | |
| pghandle | pgDialogBox (const char *title) |
| Create a dialog box with title. | |
| int | pgMessageDialog (const char *title, const char *text, u32 flags) |
| Create a message dialog box. | |
| int | pgMessageDialogFmt (const char *title, u32 flags, const char *fmt,...) |
| Create a message dialog box, with formatting. | |
| int | pgMenuFromString (char *items) |
| Create a popup menu from a string. | |
| int | pgMenuFromArray (pghandle *items, int numitems) |
| Create a popup menu from string handles. | |
| int | pgDatePicker (int *year, int *month, int *day, const char *title) |
| Show a date on a calendar, allow the user to select a new date. | |
| pghandle | pgInputDialog (const char *title, const char *message, pghandle deftxt) |
| Allow the user to edit a one-line string. | |
| pghandle | pgFontPicker (const char *title) |
| Allow the user to select any font. | |
| const char * | pgFilePicker (pgfilter filefilter, const char *pattern, const char *deffile, int flags, const char *title) |
| Select a file to load or save. | |
| int | pgColorPicker (pgcolor *c, const char *title) |
| Display a dialog box allowing the user to select a color. | |
|
||||||||||||
|
Display a dialog box allowing the user to select a color.
|
|
||||||||||||||||||||
|
Show a date on a calendar, allow the user to select a new date.
year, month, and/or day may be zero to use the current date. The year must be fully specified. For example, use 1984 instead of just 84. Of course the dialog is Y2K compliant! On systems with 32-bit time_t, it does not allow years beyond 2037. With a 64-bit time_t this isn't a problem. Months and days are both one-based.
|
|
|
Create a dialog box with title. This helpful function creates a centered, automatically sized dialog box equivalent to "pgNewPopup(PGDEFAULT,PGDEFAULT)" and creates a title widget with the given text.
|
|
||||||||||||||||||||||||
|
Select a file to load or save.
|
|
|
Allow the user to select any font.
|
|
||||||||||||||||
|
Allow the user to edit a one-line string.
|
|
||||||||||||
|
Create a popup menu from string handles.
items array, call pgEnterContext. After pgMenuFromArray returns, call pgLeaveContext to free the string handles and destroy the popup menu. Note that the popup menu will not disappear until the call to pgLeaveContext. This means it is possible to delay calling pgLeaveContext to display other popups on top of the menu, for example to create a tree of popup menus.
|
|
|
Create a popup menu from a string.
|
|
||||||||||||||||
|
Create a message dialog box.
flags is zero, a simple dialog with only an "Ok" button is created. Possible PG_MSGBTN_* flags include:
|
|
||||||||||||||||||||
|
Create a message dialog box, with formatting. This function is equivalent to pgMessage, with support for printf-style formatting
|
1.3-rc3