Guidance
指路人
g.yi.org
Guidance Forums / wxWidgets (wxWindows) in C++ / Hello, starting out with this.

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Hello, starting out with this.
#2348
Posted by: 2003-07-02 07:45:13
I just thought I would say hello. I have downloaded Dev-C++, wxWindows and some "making windows programs" tutorials because I want to know how to make windows programs. I've learn OOP techniques at Uni (going to do Java this term) so hopefully I can understand some of this stuff.

Just thought I would warn you that I will probably be back asking questions about wxWindows and Dev-C++ and using the two together. I know how to design the windows dialogs for my program with wxW but this is about where i am in the tutorials.

See yas.
Message2. Re: Hello, starting out with this.
#2370
Posted by: 2003-07-07 18:32:40
The "hard part" about wx is (imho) the event handling stuff.
And some good advice: Don't use "delete" too much! Let wx do the work for you. Otherwise you'll end up with a lot of nice little segfaults and stuff. I myself had to learn this the hard way...

upcase
Message3. Re: Hello, starting out with this.
#2376
Posted by: 2003-07-07 23:55:50
upcase wrote:

> The "hard part" about wx is (imho) the event handling stuff.
> And some good advice: Don't use "delete" too much! Let wx do
> the work for you. Otherwise you'll end up with a lot of nice
> little segfaults and stuff. I myself had to learn this the hard
> way...

The way I understand it, you shouldn't use delete at all for any wxWindow objects. It will delete itself either when the application closes or else the scope goes away for the object. If you need to delete a window, then you call the Delete() method so that it will delete it when the API is ready for it to go -- usually during ONIDLE.

404
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Sat 2024-12-14  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0