Page 1 of 1

Folder

Posted: Tue Dec 05, 2006 11:15 am
by Pier Luigi
PostQuitMessage( 0 ) in the Destroy method close also the first window.

Code: Select all | Expand

// FWPPC - Managing multiple windows

#include "FWCE.ch"

function Main()

   local oWnd

   DEFINE WINDOW oWnd TITLE "Main"

   @ 2, 2 BUTTON "Second" SIZE 80, 25 ACTION Second_Window()

   ACTIVATE WINDOW oWnd

return nil

function Second_Window()

   local oWnd2, oFld

   DEFINE WINDOW oWnd2 TITLE "Second"

   @ 0.5, 1 FOLDER oFld PROMPTS "One", "Two" ;
      DIALOGS "sub1", "sub2" ;
      SIZE 225, 245

   ACTIVATE WINDOW oWnd2

return nil

#include ".\..\include\WinApi.ch"

sub1 DIALOG 18, 18, 129, 128
STYLE WS_CHILD | 4
{

}

sub2 DIALOG 18, 18, 129, 128
STYLE WS_CHILD | 4
{

}


Regards.
Pier Luigi

Posted: Tue Dec 05, 2006 1:42 pm
by Antonio Linares
Pier,

There is a new FWPPC build with some minor changes, please try it again, thanks

Posted: Tue Dec 05, 2006 4:21 pm
by Pier Luigi
Antonio,

It is ok :)

Regards
Pier Luigi