473,943 Members | 8,956 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

can't destroy a wxMiniFrame

Hi,

I have a miniframe composed mainly of combo boxes, that I need to
destroy and recreate multiple time with different choice lists for the
combo boxes.

My problem is that even after destroying a miniframe with the Destroy()
method, when it is recreated, the combo boxes show the same lists of
its previous incarnation...

how can I completely destroy a miniframe?

Flavio

Aug 24 '06 #1
2 1558
Flavio írta:
Hi,

I have a miniframe composed mainly of combo boxes, that I need to
destroy and recreate multiple time with different choice lists for the
combo boxes.

My problem is that even after destroying a miniframe with the Destroy()
method, when it is recreated, the combo boxes show the same lists of
its previous incarnation...

how can I completely destroy a miniframe?
From what you wrote, I think that you did not create a new miniframe.
Although you called Destroy(), you tried to display it again. This is
what the documentation says about destroy.

Destroys the window safely. Use this function instead of the delete
operator, since different window classes can be destroyed differently.
*Frames and dialogs are not destroyed immediately* when this function is
called -- they are added to a list of windows to be deleted on idle
time, when all the window's events have been processed. This prevents
problems with events being sent to non-existent windows.
Regards,

Laszlo

Aug 24 '06 #2
It was human error...

I found the bug...

thanks,
Laszlo Nagy wrote:
Flavio írta:
Hi,

I have a miniframe composed mainly of combo boxes, that I need to
destroy and recreate multiple time with different choice lists for the
combo boxes.

My problem is that even after destroying a miniframe with the Destroy()
method, when it is recreated, the combo boxes show the same lists of
its previous incarnation...

how can I completely destroy a miniframe?
From what you wrote, I think that you did not create a new miniframe.
Although you called Destroy(), you tried to display it again. This is
what the documentation says about destroy.

Destroys the window safely. Use this function instead of the delete
operator, since different window classes can be destroyed differently.
*Frames and dialogs are not destroyed immediately* when this function is
called -- they are added to a list of windows to be deleted on idle
time, when all the window's events have been processed. This prevents
problems with events being sent to non-existent windows.
Regards,

Laszlo
Aug 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
15280
by: Thomas Ilsche | last post by:
Hi, how do I "explicitly destroy" an Object in PHP5 to make sure the destructor is called an the object destroyed? unset is not an option because there are multiple variables containing the object handle. Waiting for the end of the script is aswell a bad option because the order in which the destructores are called does matter.
0
3130
by: Cyril Vi?ville | last post by:
Hello everybody, I would like to know how to block the destroy of the MainWindow with the cross and with right click and close? I have actually a basic start : my $window = MainWindow->new; $window->bind("<Destroy>", sub { print "Hello\n" }); MainLoop;
8
2515
by: Zheng Da | last post by:
I don't know where should I ask the question, so send the email to this group. I choose this group, because I want to write the program with c++ :) I want to write a program which support multiprotocol, but do not want to write code for all protocols which I want to support. I plan I give a interface and others give a module which implements a protocol, and then the module can be inserted into my program without recompiling my program....
2
6294
by: Ook | last post by:
I was taught that in a copy constructor, you don't have to destroy your arrays, but in an overloaded assignment operator, you have to. Example: When do you delete, and when do you not? Is it arbitrary, or are there general guidelines that should be followed? I'm thinking that in the copy constructor, you are creating a new instance of the class, and in the assignment, you have already created the class and therefore have to destroy...
65
12728
by: Skybuck Flying | last post by:
Hi, I needed a method to determine if a point was on a line segment in 2D. So I googled for some help and so far I have evaluated two methods. The first method was only a formula, the second method was a piece of C code which turned out to be incorrect and incomplete but by modifieing it would still be usuable. The first method was this piece of text:
8
1958
by: vvenk | last post by:
Hello: I just wrote my first ASP.Net application. It worked fine on my machine and when I put into production, the ASP.Net process reaches 50% quite fast and then the system does not work anymore until I kill that process. Obviously, this is not acceptable. Looking back, I do not destroy any objects in my form. Would that be the reasn why the application breaks down?
2
5889
by: Marco | last post by:
Hello, I have to use the propertyReader of DSOFile.dll for reading/writing custom document properties in a closed document. In the msdn http://support.microsoft.com/?scid=kb;en-us;Q224351 "....However, to save resources at run time, it is recommended that you explicitly create and destroy a PropertyReader object when needed. If you allow Visual Basic to implicitly create the object, it is not released until your application...
3
2783
by: desktop | last post by:
Why does the value of the below int pointer not disappear after using destroy: std::allocator<intallo; int* ip; allo.construct(ip,777); std::cout << "*ip = " << *ip << std::endl; allo.destroy(ip);
3
6533
by: drzoo2 | last post by:
Completely noob question as I am not a programmer but really trying hard to learn Python (Object oriented programming in general). I am writing a program in python that calls a popup window with some general information with an ok button. If I close the window using the window's close button I have no problems but If I call the same destroy function using the button call, it will not kill the popup. def destroy(self, widget, data=None):...
0
9970
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11542
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10669
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9866
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7395
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4914
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4515
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3517
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.