Search found 144 matches

by Tapsa
Fri Sep 30, 2016 2:46 pm
Forum: C++ Development
Topic: How to share strings between many combo boxes?
Replies: 4
Views: 618

How to share strings between many combo boxes?

I need dozens of combo boxes around my program to śhare one list of item texts. Currently my combo boxes are wxOwnerDrawnComboBox and I use Append on each of them, so in memory I have same identical list of strings dozens of times. How could I make my combo boxes only use one list of strings to disp...
by Tapsa
Mon Sep 12, 2016 10:34 am
Forum: C++ Development
Topic: What is the difference of where Bind is called?
Replies: 3
Views: 685

Re: What is the difference of where Bind is called?

I guess that the second option is better then.
by Tapsa
Mon Sep 12, 2016 9:57 am
Forum: C++ Development
Topic: Why ProcessEvent works with Connect but not with Bind?
Replies: 2
Views: 553

Re: Why ProcessEvent works with Connect but not with Bind?

I changed my code so that the functions are called directly, leaving no need for ProcessEvent.
by Tapsa
Mon Sep 12, 2016 9:53 am
Forum: C++ Development
Topic: What is the difference of where Bind is called?
Replies: 3
Views: 685

What is the difference of where Bind is called?

Consider these two options. Bind(wxEVT_COMMAND_BUTTON_CLICKED, &AGE_Frame::OnUnitDamageGraphicsCopy, this, Units_DamageGraphics_Copy->GetId()); Units_DamageGraphics_Copy->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &AGE_Frame::OnUnitDamageGraphicsCopy, this); The way I see it, first one looks for all button ...
by Tapsa
Mon Sep 12, 2016 6:30 am
Forum: C++ Development
Topic: Why ProcessEvent works with Connect but not with Bind?
Replies: 2
Views: 553

Why ProcessEvent works with Connect but not with Bind?

Some time ago I upgraded my code by changing connects to binds. Later on I noticed that a ProcessEvent call no longer finds the event handlers it found before. These are the new binds I have. Button_DefaultAoE->Bind(wxEVT_COMMAND_BUTTON_CLICKED, &AGE_OpenSave::OnDefaultAoE, this); Button_DefaultRoR-...
by Tapsa
Fri Aug 12, 2016 8:11 pm
Forum: C++ Development
Topic: How to load JPEG images from ZIP archive?
Replies: 2
Views: 705

Re: How to load JPEG images from ZIP archive?

Thanks. Such simple solution.
by Tapsa
Fri Aug 12, 2016 2:44 pm
Forum: C++ Development
Topic: How to load JPEG images from ZIP archive?
Replies: 2
Views: 705

How to load JPEG images from ZIP archive?

I want to load images into wxImage from ZIP files. So far I have made this code: wxDirDialog dialog(this, "Folder containing ZIPs"); if(dialog.ShowModal() == wxID_OK) { wxDir::GetAllFiles(dialog.GetPath(), &zips, "*.zip"); std::unique_ptr<wxZipEntry> entry; wxFFileInputStream trash(zips[0]); wxZipIn...
by Tapsa
Thu Mar 03, 2016 10:42 am
Forum: C++ Development
Topic: wxOwnerDrawnComboBox vs wxChoice
Replies: 2
Views: 607

Re: wxOwnerDrawnComboBox vs wxChoice

wxOwnerDrawnComboBox wins then.

:D The combo boxes are primarily to show a string corresponding to a related text control value. They can also be used to choose the item (changes the value in related text control).
by Tapsa
Thu Mar 03, 2016 10:06 am
Forum: C++ Development
Topic: wxOwnerDrawnComboBox vs wxChoice
Replies: 2
Views: 607

wxOwnerDrawnComboBox vs wxChoice

Is it just me or is wxOwnerDrawnComboBox a lot faster to draw than wxChoice? All I need is a read only combo box (preferably with white background). My combo boxes can have thousands of items and there can be a hundred of them within a single tab.
I'm using Windows 10 and wxWidgets 3.0.2.
by Tapsa
Wed Mar 02, 2016 7:01 pm
Forum: C++ Development
Topic: How to restore letter spacing of 2.8.12 in 3.0.2?
Replies: 4
Views: 562

Re: How to restore letter spacing of 2.8.12 in 3.0.2?

Thanks, doublemax.
Changing default font point size from 9 to 8 on my frames and dialogues did pretty much what I wanted.
by Tapsa
Wed Mar 02, 2016 5:14 pm
Forum: C++ Development
Topic: How to restore letter spacing of 2.8.12 in 3.0.2?
Replies: 4
Views: 562

Re: How to restore letter spacing of 2.8.12 in 3.0.2?

I am using Win 10 now and building with Mingw-builds 5.3.0. How can I use the manifest that came with wx 2.8.12?
by Tapsa
Wed Mar 02, 2016 3:59 pm
Forum: C++ Development
Topic: How to restore letter spacing of 2.8.12 in 3.0.2?
Replies: 4
Views: 562

How to restore letter spacing of 2.8.12 in 3.0.2?

Is there a method to change the letter spacing all over my application?
Image
by Tapsa
Wed Feb 17, 2016 2:42 pm
Forum: C++ Development
Topic: Problem with derived ~wxThread()
Replies: 0
Views: 1698

Problem with derived ~wxThread()

I followed the wxThread example in here: http://docs.wxwidgets.org/trunk/classwx_thread.html I made my own class that inherits wxThread, but its destructor is never executed. ~MyThread(); MyThread::~MyThread() { ... // Set the thread pointer of my frame to 0 so I can check if this thread is executin...