Search found 145 matches

by gtafan
Fri Oct 26, 2018 2:51 pm
Forum: C++ Development
Topic: wxSpinCtrl problem wxSpinEvent is handled twice
Replies: 18
Views: 790

Re: wxSpinCtrl problem wxSpinEvent is handled twice

Hi, Can you show some code? Are you able to reproduce it inside the widgets sample? Thank you. So this is how the event is handled in the code: void MyFrame::OnSpinCtrl1Change(wxSpinEvent& event) { wxMessageBox(wxString::Format("%i", event.GetPosition())); } If I pres any arrow buttont of SpinCtrl1...
by gtafan
Fri Oct 26, 2018 2:46 pm
Forum: C++ Development
Topic: wxThread Kill()
Replies: 48
Views: 1812

Re: wxThread Kill()

Hi, What type of thread do you have? Thank you. I am not really familiar with wxThread, just have a class derived from wxThread. Something like this: class MyThread: public wxThread { protected: ExitCode Entry() { while(1) { //do some worck Sleep(1000); } } }; I have not tried to execute this code.
by gtafan
Fri Oct 26, 2018 2:24 pm
Forum: C++ Development
Topic: wxThread Kill()
Replies: 48
Views: 1812

wxThread Kill()

The documentation says I should not use Kill() to terminate a wxThread, but I didn´t really understand why. My thread uses no resorces, that should be freed and the Thread should be terminated only when the main application is terminated. Can I use in this case Kill() for my thread?
by gtafan
Fri Oct 26, 2018 11:21 am
Forum: C++ Development
Topic: wxSpinCtrl problem wxSpinEvent is handled twice
Replies: 18
Views: 790

wxSpinCtrl problem wxSpinEvent is handled twice

I am using Codeblocks and wxSmith for developingwxWidget applications. Now I would like to use wxSpinCtrl component to set values. WxSmith has generated a handlerFunc for handling wxSpinEvents, but arrow events are handled twice, this is also explained in the documentation, but unfortunatelly I have...
by gtafan
Tue Aug 21, 2018 11:23 am
Forum: General Development
Topic: Why there is no compiled WxWidgets version?
Replies: 22
Views: 2588

Re: Why there is no compiled WxWidgets version?

Hi Posibly i am just to stupied, but i have extracted the content of the lib folder of "wxWidgets-3.0.4-gcc510TDM-x64-32bits-Static-Monolibs.7z" to the lib folder of "wxWidgets-3.0.4". However when I try to start a wxwidgets project in CodeBlocks I am geting an error mesage: https://c.radikal.ru/c1...
by gtafan
Mon Aug 20, 2018 11:49 am
Forum: General Development
Topic: Why there is no compiled WxWidgets version?
Replies: 22
Views: 2588

Re: Why there is no compiled WxWidgets version?

Hi. There are compiled wxWidgets available on the wxWidgets website (see the "Binaries" section): https://www.wxwidgets.org/downloads/ And if the choice you have using this link, you can have a look here : you will be able to download differents configurations that can be installed in one time. Reg...
by gtafan
Wed Aug 08, 2018 1:36 pm
Forum: C++ Development
Topic: wxString Find next?
Replies: 2
Views: 531

Re: wxString Find next?

You probably need to use find() which uses a start parameter and call the method in a loop, using the previous result increased by one. Pretty much the same as in here: https://stackoverflow.com/a/4034809/7267315 Thanks, Didn´t noticed that function in the docu, as it was not in the list of search ...
by gtafan
Wed Aug 08, 2018 12:16 pm
Forum: C++ Development
Topic: wxString Find next?
Replies: 2
Views: 531

wxString Find next?

wxString has void Find (const wxString &sub), which is described in the docu. I gues that void returns the first apearence of sub, but what if sub apears more than 1 time? How to find the other apearences of sub? Something like FindNext() would be helpful, but haven´t found anything with similar fun...
by gtafan
Wed Apr 18, 2018 12:17 pm
Forum: C++ Development
Topic: Using xml or ini for internationalization?
Replies: 7
Views: 509

Re: Using xml or ini for internationalization?

After looking through the docs, it should work like this: Derive your own class from wxTranslationsLoader and set it with wxTranslations::Get()->SetLoader( ... ). Derive your own class from wxMsgCatalog and return it from wxTranslationsLoader::LoadCatalog(...) The method wxMsgCatalog::GetString(......
by gtafan
Tue Apr 17, 2018 4:36 pm
Forum: C++ Development
Topic: Using xml or ini for internationalization?
Replies: 7
Views: 509

Re: Using xml or ini for internationalization?

but was still wondering if there is posibly an easier way, like using textformats (XML/ini). Nobody stops you from using any other text files, you just can't use wxTranslations* and have to build something on your own. I use .INI files myself, but the code is pretty old and too messy to be shared w...
by gtafan
Tue Apr 17, 2018 2:03 pm
Forum: C++ Development
Topic: Using xml or ini for internationalization?
Replies: 7
Views: 509

Re: Using xml or ini for internationalization?

I do not think so. Really don´t understand why wxWidgets is using only that cryptical formats for this purpose. wxWidgets use compiled message catalogues (.mo), which are not supposed to be edited at all? JFYI, the .mo files are created by compiling .po files (which are not used by wxWidgets at all...
by gtafan
Fri Apr 13, 2018 11:58 am
Forum: C++ Development
Topic: Using xml or ini for internationalization?
Replies: 7
Views: 509

Using xml or ini for internationalization?

Is it posible to use some easier to edit formats like xml or ini to store the translation data? Really don´t understand why wxWidgets is using only that cryptical formats for this purpose.
by gtafan
Wed Apr 04, 2018 9:46 am
Forum: Platform Related Issues
Topic: wxDirDialog looks strange on win7
Replies: 15
Views: 1310

Re: wxDirDialog looks strange on win7

doublemax wrote:
Are generic versions avaible for all dialogs?
Probably not all of them.

Check the files in <wxdir>/include/generic/
It should give you a general idea about which ones are available. They all end in *dlgg.h"
That wxGenericDirDialog seems to be inside dirdlgg.h file.
by gtafan
Tue Apr 03, 2018 3:31 pm
Forum: C++ Development
Topic: add and remoove items wxDataViewCtrl
Replies: 4
Views: 430

Re: add and remoove items wxDataViewCtrl

And how can I add/remoove items for wxDataViewListCtrl and wxDataViewTreeCtrl? The both have methods for that, Insert/Append/DeleteItem. http://docs.wxwidgets.org/trunk/classwx_data_view_tree_ctrl.html http://docs.wxwidgets.org/trunk/classwx_data_view_list_ctrl.html Thanks. But that const wxVector<...
by gtafan
Tue Apr 03, 2018 2:40 pm
Forum: C++ Development
Topic: add and remoove items wxDataViewCtrl
Replies: 4
Views: 430

Re: add and remoove items wxDataViewCtrl

doublemax wrote:If you use wxDataViewCtrl you have to provide your own wxDataViewModel.

The "specialized" variants wxDataViewListCtrl and wxDataViewTreeCtrl have their own models.
And how can I add/remoove items for wxDataViewListCtrl and wxDataViewTreeCtrl?