Search found 235 matches

by Nunki
Mon Apr 17, 2017 5:51 pm
Forum: C++ Development
Topic: Help required - wxExecute
Replies: 2
Views: 811

Re: Help required - wxExecute

Hi, For you to know if return codes are returned and what they mean I think you may have some reading to do. I refer to the link below of the documentation that may help you on the way. http://docs.wxwidgets.org/3.1.0/group__group__funcmacro__procctrl.html#gaa276e9e676e26bafeec3141b73399b33 regards,...
by Nunki
Mon Apr 17, 2017 5:44 pm
Forum: C++ Development
Topic: making pane get all available space
Replies: 11
Views: 2172

Re: making pane get all available space

I think that Using sizers, the flag wxGROW and setting the stretch factor to 1 may get you on the road.

regards,
Nunki
by Nunki
Wed Apr 12, 2017 6:29 pm
Forum: C++ Development
Topic: Event order causes crash
Replies: 9
Views: 1690

Re: Event order causes crash

Exactly ! My point ! I expected the changing of tabs to trigger this bound function for it is indeed a LOST_FOCUS event. But with the code hWnd = event.GetWindow(); sLabel = hWnd->GetName(); if ((sLabel.Cmp(sObjPost) == 0) || (sLabel.Cmp(sObjMunicipal) == 0)) { hWndParent = hWnd->GetParent(); ..... ...
by Nunki
Tue Apr 11, 2017 7:40 pm
Forum: C++ Development
Topic: Tryin connect timer in frame..
Replies: 9
Views: 2458

Re: Tryin connect timer in frame..

Hi, Some time ago I also struggled a bit with timers. The following code worked for me. First of all I had to use a variable not a pointer to a wxTimer. Then I had to use Bind to connect the timer with the function. Which of course had to be one that had a wxTimerEvent as parameter. And at the end d...
by Nunki
Tue Apr 11, 2017 7:31 pm
Forum: C++ Development
Topic: Event order causes crash
Replies: 9
Views: 1690

Re: Event order causes crash

True, but I assumed that doing a bind to a specific window, in this case the wxTextCtrl, only the KILL_FOCUS event for that specific control would end up in this function. Not for the other windows or controls on the wxPanel or wxFrame, or even controls on another tab in a notebook. hTxt = XRCCTRL(*...
by Nunki
Tue Apr 11, 2017 7:18 am
Forum: C++ Development
Topic: Event order causes crash
Replies: 9
Views: 1690

Re: Event order causes crash

Hi, I managed to dig deeper into the problem. For that reason I'll give you more detailed code. First I bind the two methods on both text controls for the wxEVT_KILL_FOCUS. hTxt = XRCCTRL(*this, "PERS_POST", wxTextCtrl); hTxt->Bind(wxEVT_KILL_FOCUS,wxFocusEventHandler(tcPerson::LostFocusOn...
by Nunki
Mon Apr 10, 2017 10:32 pm
Forum: C++ Development
Topic: Event order causes crash
Replies: 9
Views: 1690

Re: Event order causes crash

Absolutely true, as far as I can see in debugging hWnd is the handle to the wxTextCtrl, hWndParent the underlying TAB page. The moment I reach hPost = XRCCTRL(.... the error arises. So hWndParent is not NULL. // Initialise handles hWnd = event.GetWindow(); hWndParent = hWnd->GetParent(); if (hWndPar...
by Nunki
Mon Apr 10, 2017 10:02 pm
Forum: C++ Development
Topic: Event order causes crash
Replies: 9
Views: 1690

Event order causes crash

Hi guys, This one is a really nice one. I have a frame with a wxNotebook. The first tab contains a wxTextCtrl on which I define a LOST_FOCUS event handler (to read the textfield and search for the postal code and display it). However, when I have typed in some municipal and do no tab, so the focus i...
by Nunki
Sun Apr 09, 2017 7:48 pm
Forum: C++ Development
Topic: how to add wxStatusBar to wxPanel?
Replies: 3
Views: 1517

Re: how to add wxStatusBar to wxPanel?

Hi, I'm used to work with Julian Smart's Dialogblocks application in which I can drag and drop widgets and see and test the result. You can then use or analyse the generated C++ code or you can use the xrc-files directly. This is the XRC code that has a wxFrame with a vertical box sizer, on top the ...
by Nunki
Mon Apr 03, 2017 10:47 pm
Forum: C++ Development
Topic: Convert UTF8 to my current encoding Windows-1252
Replies: 3
Views: 1587

Re: Convert UTF8 to my current encoding Windows-1252

Hi Heiner,

Did you look at https://wiki.wxwidgets.org/Converting_e ... m_wxString ?

there I saw
2017-04-04_004411.png
2017-04-04_004411.png (11.41 KiB) Viewed 1545 times
regards,
Nunki
by Nunki
Mon Apr 03, 2017 10:34 pm
Forum: C++ Development
Topic: wxDatePickerCtrl
Replies: 1
Views: 569

wxDatePickerCtrl

Hi Guys, Anyone who knows howto use the wxDatePickerCtrl and initialise it to an empty date. For a project's startdate it's fine to have the current date as default, but for end dates, which have not yet been determined, it would be nice to have a way to show an empty control. Already tried the wxDP...
by Nunki
Thu Mar 30, 2017 7:27 pm
Forum: C++ Development
Topic: Scaling and 4K displays
Replies: 8
Views: 3184

Re: Scaling and 4K displays

Hi guys, I finally have some additional information on the problem. First I use xrc files created by dialogblocks for displaying the frames (mdi child frames that is) <?xml version="1.0" encoding="iso-8859-1"?> <resource version="2.3.0.1" xmlns="http://www.wxwidget...
by Nunki
Sun Mar 26, 2017 9:55 pm
Forum: C++ Development
Topic: wxTimePickerCtrl
Replies: 1
Views: 688

wxTimePickerCtrl

Hi Guys,

Has anyone sample code on wxTimePickerCtrl. Dialogblocks does not support this control and I tried adding it by first adding a panel and sizer to the frame. The time picker control does not show up anyway. So I must be doing something wrong.

regards,
Nunki
by Nunki
Sun Mar 26, 2017 2:07 pm
Forum: C++ Development
Topic: Scaling and 4K displays
Replies: 8
Views: 3184

Re: Scaling and 4K displays

Ok, I'll try and gather code and some screenshots of all situations, but that will be for tuesday I gather.

Regards,
Nunki
by Nunki
Sun Mar 26, 2017 2:05 pm
Forum: C++ Development
Topic: MDI and modal dialogs
Replies: 4
Views: 1010

Re: MDI and modal dialogs

To my point of view, all windows, so also modal dialogs should remain restricted to the application window. That's the whole point of the MDI interface. The moment they go out of the application window, they belang to the desktop window, the same z-order as the application itself. Then they would bl...