int MInputPrompt (const char *title, const char *msg, char *text, int len, const char *ok_btn, const char *canc_btn)

Displays a modal prompt window for a single line text input

Documentation

Displays a modal prompt window for a single line text input. This dialog window allows the program to block its flow, waiting for the user input a single line text.

Returns:
The 0 value is returned if the users selects the Cancel button, 1 is returned otherwise.
Parameters:
title - The text displayed in the window's title bar.
msg - A multi line text string that will be displayed centered in the window.
text - The intial text value displayed in the edit field. It will contain the input text on return.
len - The text buffer len.
ok_btn - The text to be displayed in the Ok-button.
canc_btn - The text to be displayed in the Cnacel-button.

alphabetic index hierarchy of classes


MGUI Copyright 1996-2000 Vincenzo Morello

generated by doc++