Multiple frames

German C. Basisty german.basisty at eipsistemas.ath.cx
Sat Nov 18 04:47:10 PST 2006


Thank you for your answer. I do know a little about ms Windows, but my main
operating environment is Linux :)
Ander Windows I just use cygwin (a unix like environment who runs Ander
Windows) for development pourposes. I'll check the code. Thank you! Very
kind!

Regards

Ing. Germán C. Basisty
Estudio Informático Patagónico
Consultor
tel. +54 (2942) 15 696 624
german.basisty at eipsistemas.ath.cx
http://www.eipsistemas.ath.cx
________________________________________
De: Dave Silvia [mailto:dsilvia at mchsi.com] 
Enviado el: sábado, 18 de noviembre de 2006 9:16
Para: wx-users at lists.wxwidgets.org
Asunto: Re: Multiple frames

Hi!
 
I imagine by now you're wondering about the attachments in my last response.
Some of the watchdogs in my neighborhood of the internet didn't like some of
the code included in the zip and killed it. Just as soon as my file server
gets back up (they're doing maintenance right now) I'll have a place where
you can get a download.
 
BTW, I didn't notice your MDI caveat at first, so my original solution was
only partial. I've since come up with a model that I think fits what you're
trying to do and I've made a little better presentation of it. So, when the
file server is back up to snuff, it'll be a better solution anyway.
 
Sorry for the delay.
 
thx,
Dave S.
 
 
wxMS_developers · Development with wxWidgets on MSWindows 
http://tech.groups.yahoo.com/group/wxMS_developers/join
 
wxMS_developers RSS feed
http://rss.groups.yahoo.com/group/wxMS_developers/rss
 
wxWidgets Code Exchange
http://wxcodex.net/
-- On Fri, 17 Nov 2006 22:48:05 -0300 German C. Basisty wrote --
> Hi!
>
> My name is German, I'm new to wxWidgets, and I actually have a
> question for you if you may help:
>
> I'm making some experience with wxWindows, and I want to write some
> app which should handle with 2 frames. For that pourpose, I wrote 2
> classes derived from wxFrame: MainFrame and SecondFrame and another
> class to make the program run (DECLARE_APP and IMPLEMENT_APP
> stuff). Those are very very simple and basic frames. When the
> program starts, it shows the MainFrame just like on the examples;
> very nice :)
> Then I added a menu bar, a menu and everything needed (event table,
> etc) The menu is working fine.
> Then, I added a private member to the Mainframe like this:
>
> private:
> SecondFrame *frame2;
>
> and when the user clicks on some menu, it calls a function that
> should show frame 2. The code seems like following:
>
> SecondFrame *frame2 = new SecondFrame();
> frame2 -> Show(TRUE);
> SetTopWindow(frame2);
>
> But it does not work :) It doesn't even compile.
>
> How should I do to make a frame "call" (or better show) another
> frame (without using MDI)?
>
> Bests regards,
>
> German
>
>
> --------------------------------------------------------------------
> - To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org





More information about the wx-users mailing list