Newbie MFC porting questions

wxWindows

    Next

  • 1. Changing wxPanel in a wxFrame
    Hello! I'm using an wxFrame and want to change the wxPanel in this frame. So i tried to destroy the Old panel and create a new in this frame: p_myPanel->Destroy(); p_myPanel = NULL; p_mynewPanel = new MyPanel(this, -1); but after that there is no panel shown in the frame, only the gray backgroud. i have to resize the frame to show the new panel. how is it possible to show the new panel without resizing the frame? i have tried to Show(), Layout(), Refresh() and Update() the frame but nothing works. i'm useing wxWindows 2.4.1 with win2000.
  • 2. [wxGTK2 2.4.1, linux, GCC 3.3.2] wxTextCtrl problems: wrong font and no scrolling
    Hi, maybe someone can help me on this topic: I use wxGTK2, and the wxTextCtrl (multiline, editable) shows some strange behaviour. 1) I set the font with SetDefaultStyle(). All text which I write to the TextCtrl with AppendText() is in this font (I need monospaced font). If I write in the TextCtrl an other font is used (which would be set if I wouln'd call SetDefaultStyle()). Same happens if I set the font with SetFont(). 2) If I write in the TextCtrl everything scrolls nicely. If I call AppendText(), the TextCtrl doesn't scroll automatically to the end. Which is not so much a problem, if ShowPosition( GetLastPosition() ) would work or ScrollLines(1) as I read in another thread. Are this bugs in wxGTK2 and are there workarounds, or do I do something wrong? BTW: wxGTK2 improved alot in the last version, at least with wxGTK2 2.4.0 my app written mainly in Windows wasn't useable and now it works very fine, except some minor problems. Good work!! thanks for any help, Werner

Re: Newbie MFC porting questions

Postby vadim » Sun, 25 Jul 2004 07:09:51 GMT




 Yes. But you can use wxStreams to replace CArchive.


 Yes, why not -- it's your collections after all, wxWindows doesn't really
care about them.


 If you mean reimplementing some MFC classes in wx, then it could be a good
idea but I don't think anybody is working on this.

 Regards,
VZ


---------------------------------------------------------------------
To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 


Re: Newbie MFC porting questions

Postby theodore » Mon, 26 Jul 2004 07:48:39 GMT

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[sm]
Are there any plans for a wxMFC porting package for easing the transition away
from MFC?

[vz]
If you mean reimplementing some MFC classes in wx, then it could be a good idea
but I don't think anybody is working on this.


At xMule, we have MFC wrapper classes for CString, CList, CMap, CFile, CMemFile,
CStdioFile, CPtrList, virtually all of the Win32 datatypes, and probably more
besides.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Thunderbird -  http://www.**--****.com/ 

iD8DBQFBAubYy4tlS+M78e0RAssQAJ9Kq1akcqED7rOypCCBrdiQBiU6iwCdEY4l
eQQB9wd7LRNKQmQjqmTMDdk=
=JKGa
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 


Similar Threads:

1.Re[2]: Newbie MFC porting questions

On Fri, 23 Jul 2004 16:12:00 -0700 (PDT) Stanley Mitchell < XXXX@XXXXX.COM > wrote:

SM> The wxWidgets roadmap has some action items regarding STL that made me
SM> wonder. For the 3.0 release for 2005, the description reads: "This
SM> stable release will have STL compatibility for compilers that support
SM> templates fully. For example the wxString class will derive from
SM> std::basic_string<>." In the Done List at the bottom of the page, there
SM> is an item called "STLization".

 This refers to wxUSE_STL == 1 compilation mode of wx 2.5.

SM> So am I safe in assuming that if a compiler supports STL then wxWidgets
SM> can coexist happily?

 Yes, this is true even in 2.4.

 Regards,
VZ


---------------------------------------------------------------------
To unsubscribe, e-mail:  XXXX@XXXXX.COM 
For additional commands, e-mail:  XXXX@XXXXX.COM 

2.MFC newbie question

Hi everyone

I've just started with visual MFC programming in visual C++ . NET, and I
have a very basic question.

When developing a SDI application, do I place my controls (buttons etc.) on
the main frame, or in it's child window, and then just maximize the child
window? I've tried placing a button directly on the main frame, and that
worked, although the background was transparent, but is it the right way to
do it? It seems to me from all the documentation I've read, that the frame
is only meant to be a container for child windows. I tried placing a button
in the child window too, but I couldn't get it to show...

What I'm really asking is how to get started with an SDI application. Every
tutorial I've found neglected to mention anything concerning my question. I
probably missed something obvious,  and now I'm asking you to enlighten
me... please :)

Best Regards,
Ebbe Hansen


3.Remote Desktop, port forwarding, a newbie question:

Hello, If I have two PC's on a LAN behind  an ADSL router, how can I
configure them to individually access them via Remote Desktop from
outside ?

I know I must open a Port forwarding for port 3389 to these machines's
IP local addresses,  (192.168.0.1 and .2), but when I'm outside the
LAN, on the internet, I only see a unique public IP address, how can I
tell the remote desktop client  which one of the two computer I want to
log in?

which is the correct way to work it out? I'm totally ignorant..excuse
me :-)

4.porting old Absoft Macintosh Fortran app to wxwidgets (dumb newbie questions two of three)

5.Newbie: Sockets on eVC4 and CE 4.2 and MFC

What do you use for socket communications?  Is there a socket control for
eVC4?  I don't see any Registered ActiveX Controls in the IDE.  I'm having
trouble with CCeSocket:  it works fine if a PDA acts as a client, but I
cannot receive anything if it is a server.  Does anyone use CCeSocket?

Thanks


6. Newbie to MFC in windows CE!!!

7. Newbie: Sockets on eVC4 and CE 4.2 and MFC

8. Newbie to MFC in windows CE!!!



Return to wxWindows

 

Who is online

Users browsing this forum: No registered users and 39 guest