Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site











SourceForge.net Logo

SimpleEditDlgs

 

Demonstrates the use of EditText, EditNumber and EditDateDlg

 

 

main.cpp

 

#include <CtrlLib/CtrlLib.h>

 

using namespace Upp;

 

GUI_APP_MAIN

{

    String text = "Original text";

    if(EditText(text, "Please edit a text", "Text"))

        PromptOK(text);

 

    String text2;

    if(EditTextNotNull(text2, "Please enter non-empty text", "Text"))

        PromptOK(text2);

 

    int number = 10;

    if(EditNumber(number, "Please enter a number 1..100", "Number", 1, 100, true))

        PromptOK(AsString(number));

    

    Date dt = GetSysDate();

    if(EditDateDlg(dt, "Please enter a date", "Date"))

        PromptOK(AsString(dt));

}

 

 

 

 

 

Do you want to contribute?