Folder

Folder

Postby Pier Luigi » Tue Dec 05, 2006 11:15 am

PostQuitMessage( 0 ) in the Destroy method close also the first window.

Code: Select all  Expand view
// 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
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy

Postby Antonio Linares » Tue Dec 05, 2006 1:42 pm

Pier,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Pier Luigi » Tue Dec 05, 2006 4:21 pm

Antonio,

It is ok :)

Regards
Pier Luigi
User avatar
Pier Luigi
 
Posts: 58
Joined: Fri Oct 07, 2005 6:30 am
Location: Rome - Italy


Return to FiveWin for Pocket PC

Who is online

Users browsing this forum: No registered users and 9 guests