Home - RAD C++ GUI Lib 1.2.2 Documentation
Published on March 09, 2007 [03:04:01 PM]



Browse class : Form

Function : void create(String Title [,short X,short Y,short W,short H,RCPWSTYLE Style,bool Enabled,bool Visible, bool Maximized,bool Minimized,bool Center,_window ParentWindow,bool IsChild,UINT ExtendedStyle])


Description

Used when you wish to create form that hasnot yet been created. ie, you have declared variables like 'Form form1;' anywhere in code, and at certain point you wish to create it:
form1.create("My Form");

Style must be one of following:

  • RCP_SIMPLE Simple overlapped window with minimize, maximize and close button in title

  • RCP_PLAIN window with title only

  • RCP_2BUTTON No maximize button

  • RCP_2BUTTON_NR No maximize button with no resizing allowed

  • RCP_2BUTTON2 No minimize button

  • RCP_2BUTTON2_NR No minimize button with no resizing allowed

  • RCP_POPUP A simple popup window with only close button in titlebar

  • RCP_POPUP_NR A simple popup window with only close button in titlebar with no resizing allowed

  • RCP_TOOL A tool window like dokcing toolbar windows

  • RCP_TOP Top most window, that does not let focus be lost when focus is acutally lost

  • RCP_NONE Window with no borders, no titlebar, simply a rectangle

  • RCP_NONE_WB Window with no borders, no titlebar, simply a rectangle, and no resizing

  • RCP_TRANSPARENT A window with no background filled



    ParentWindow must be a valid window, usually another form, but may be any kind of standard control too e.g. Button, Label, TextBox etc.



    IsChild if passed true the form becomes real child which draws itself within client area of parent.


    Return

    Nothing


  • Remarks

    Example:

    Form form1("My Form");





    Visit www.radcpp.com for more help and updates. Documentation created using FlaX.Doc