B4J Question Popup form

Discussion in 'B4J Questions' started by dibesw, Jun 17, 2015.

Similar threads

B4J Tutorial [B4X] Resumable Subs - Sleep / Wait For
B4J Tutorial Pagination Container
B4J Tutorial SQL Tutorial
B4J Tutorial Accordion container
B4J Tutorial Customized ListView
B4J Tutorial Unhandled exceptions
  1. dibesw

    dibesw Active Member Licensed User

    HI,
    is it possible to show a second form in popup mode?
    eg
    this is Main form
    Code:
    Sub AppStart (Form1 As Form, Args() As String)
        MainForm.Initialize(
    "frm",400,400)
        MainForm = Form1
        MainForm.RootPane.LoadLayout(
    "menu1"'Load the layout file.
        MainForm.Show
    End Sub
    and this second popup form
    Code:
    Sub imgsoci_MouseClicked (EventData As MouseEvent)
        
    'MainForm.close
        soci.Initialize("frm",400,400)
        soci.RootPane.LoadLayout(
    "menusoci")
        soci.Title = 
    "GESTIONE SOCI"
        soci.Show
    End Sub
    "nenu1" is in secondary position
    and to use "menu1" must close "menusoci"
    Thanks!
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Call soci.ShowAndWait instead of Show.
     
Loading...