Search found 172 matches

by gtafan
Fri Nov 09, 2018 11:50 am
Forum: C++ Development
Topic: wxGetApp eeror
Replies: 6
Views: 1016

Re: wxGetApp eeror

Hi, Usually people start with minimal sample. But in general - if you know what you are looking for, you go to the documentation first, then the sample, and only then go to search the web (Google). That should be the standard course of actions for every issue related to wxWidgets. Thank you. I agre...
by gtafan
Fri Nov 09, 2018 11:47 am
Forum: C++ Development
Topic: Internationalisation
Replies: 22
Views: 2632

Re: Internationalisation

ONEEYEMAN wrote:Hi,
Out of curiosity - is you program build in Debug or Release mode?

Thank you.
Release, what else. Always using Release only.
by gtafan
Fri Nov 09, 2018 11:45 am
Forum: C++ Development
Topic: wxThread Kill()
Replies: 48
Views: 3384

Re: wxThread Kill()

My thread alocates no resorces, that should be freed and it make sence for the frame to wait for the thread to be terminated befor the frame is destoied. I was thinking to have something like that inside MyFrame class: MyThread thread; then in the constructor of MyFrame I have to call: thread.Run();...
by gtafan
Thu Nov 08, 2018 3:08 pm
Forum: C++ Development
Topic: Internationalisation
Replies: 22
Views: 2632

Re: Internationalisation

Hi, This is a complete failure on your side. Especially if you just starting - always start with the debug build. Now you will have to waste extra time and create a debug build of the library. Thank you. Not going to create that debug stuff, as it´s complete useles for me. It´s easier to write my o...
by gtafan
Thu Nov 08, 2018 3:03 pm
Forum: C++ Development
Topic: wxThread Kill()
Replies: 48
Views: 3384

Re: wxThread Kill()

If I understood you correctly, you want to have a second thread running, which should only be closed if your main programm is about to close. So you need a detached wxThread, or else (in the case of joinable) your main thread would wait for your sub thread to complete, which is never going to happe...
by gtafan
Wed Nov 07, 2018 12:56 pm
Forum: C++ Development
Topic: Internationalisation
Replies: 22
Views: 2632

Re: Internationalisation

ONEEYEMAN wrote:Hi,
Run the samplpe thru the debugger and see where it is initialized.

Thank you.
Sory, but this makes everything even more complicated, have no idea about that debugger stuff. I din´t even have the debug version ofwxWidgets.
by gtafan
Wed Nov 07, 2018 12:49 pm
Forum: C++ Development
Topic: wxGetApp eeror
Replies: 6
Views: 1016

Re: wxGetApp eeror

ONEEYEMAN wrote:Hi,
Always!! check the sample first, before going to the web to search for the answer.

Thank you.
Which sample? I was tallking about code snipet not related to samples.
by gtafan
Tue Nov 06, 2018 2:40 pm
Forum: C++ Development
Topic: wxGetApp eeror
Replies: 6
Views: 1016

Re: wxGetApp eeror

You need to use the DECLARE_APP(YourAppName) where ever you want to use the wxGetApp macro. Note that if you only need to access the base methods and not methods of the derived class, you can use the global wxTheApp pointer. Thanks a lot, this is the problem with code snipets from the net, some inf...
by gtafan
Tue Nov 06, 2018 2:38 pm
Forum: C++ Development
Topic: Internationalisation
Replies: 22
Views: 2632

Re: Internationalisation

ONEEYEMAN wrote:Hi,

Can you do that or you have trouble finding where it is being done?

Thank you.
That´s exactly what I am tallking about all the time. I need to find where it is done.
by gtafan
Mon Nov 05, 2018 4:21 pm
Forum: C++ Development
Topic: wxThread Kill()
Replies: 48
Views: 3384

Re: wxThread Kill()

On some page about wxThread is said, that calling Delete is a graceful way to terminate the thread, but there seems still to be some diference between detached and joinable threads. Also that TestDestroy, I have to call is not complete clear for me.
by gtafan
Mon Nov 05, 2018 4:11 pm
Forum: C++ Development
Topic: wxGetApp eeror
Replies: 6
Views: 1016

wxGetApp eeror

When I am triing to use wxGetApp() in my application, for example in the constructor of MyFrame, which is the frame class, I am geting this error mesage:

error: 'wxGetApp' was not declared in this scope
by gtafan
Mon Nov 05, 2018 4:09 pm
Forum: C++ Development
Topic: Internationalisation
Replies: 22
Views: 2632

Re: Internationalisation

ONEEYEMAN wrote:Hi,
Is the sample works?
If yes - then you should do exactly the same in your code.

Thank you.
I think you are not understanding my problem, if I do exactly the same as in the sample, I´ll get just the sample application, which is useles for me.
by gtafan
Mon Nov 05, 2018 11:31 am
Forum: C++ Development
Topic: Internationalisation
Replies: 22
Views: 2632

Re: Internationalisation

Hi, You should have a set of directories for every language you plan to support. Is this the case? Then just look at the internat sample and do what it does. Thank you. Yes I have a set of directories for every language I plan to support. But internat sample is exactly the problem I started from, I...
by gtafan
Sun Nov 04, 2018 1:52 pm
Forum: C++ Development
Topic: Internationalisation
Replies: 22
Views: 2632

Re: Internationalisation

Hi, Yes - just follow the directory structure of the internat sample. Thank you. I did folowed the structure, but how to let my application use the right language now? So let say the file with translations is called translations.mo and is in the folder lang, where lang is just a placeholder for any...
by gtafan
Sun Nov 04, 2018 1:45 pm
Forum: C++ Development
Topic: wxSpinCtrl problem wxSpinEvent is handled twice
Replies: 18
Views: 1463

Re: wxSpinCtrl problem wxSpinEvent is handled twice

Please don`t get it wrong, but your example uses 2 handler functions, which I defenetly don`t want to have. I am quite sure that the code I suggested you try, from Oct 26, does use just a single function handling wxEVT_SPINCTRL? I just need to know when the Value of SpinCtrl was updated.Is there po...