FDOSTUI
FreeDOS Text User Interface
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
Functions
popup.hpp File Reference

common dialog boxes More...

Go to the source code of this file.

Functions

unsigned char * popup_input (unsigned char const *i_title, unsigned char const *i_prompt, unsigned char const *i_default)
 popup an input dialog More...
 
enum event_response popup_menu (struct menuitem *io_menu, int const i_pos_x, int const i_pos_y)
 popup a menu More...
 
enum event_response popup_message (unsigned char const *i_title, unsigned char const *i_message)
 popup a message More...
 

Detailed Description

common dialog boxes

Function Documentation

◆ popup_input()

unsigned char * popup_input ( unsigned char const *  i_title,
unsigned char const *  i_prompt,
unsigned char const *  i_default 
)

popup an input dialog

Parameters
[in]i_titlestring to display in title bar
[in]i_promptdescription of value to be entered by user
[in]i_defaultdefault value
Returns
0 user cancelled
!0 buffer containing user input. caller must free.
See also
inputdlg

◆ popup_menu()

enum event_response popup_menu ( struct menuitem io_menu,
int const  i_pos_x,
int const  i_pos_y 
)

popup a menu

Parameters
[in,out]io_menumenu to popup
[in]i_pos_xx coordinate
[in]i_pos_yy coordinate
Returns
response

◆ popup_message()

enum event_response popup_message ( unsigned char const *  i_title,
unsigned char const *  i_message 
)

popup a message

Parameters
[in]i_titlewindow title
[in]i_messagemessage
Returns
response