Search found 247 matches

by Widgets
Thu Sep 28, 2017 8:41 pm
Forum: C++ Development
Topic: wxAUI saving a default perspective
Replies: 4
Views: 504

Re: wxAUI saving a default perspective

Finally found out the REAL problem. I had been using wxCrafter to build my GUI, but had not realized the importance of naming every item managed by the wxAuiManager. Once I gave each panel & tool bar a unique name, saving and restoring works a LOT better. This link https://groups.google.com/foru...
by Widgets
Sat Sep 16, 2017 9:26 pm
Forum: C++ Development
Topic: wxFileDirPickerEvent [SOLVED]
Replies: 4
Views: 109

Re: wxFileDirPickerEvent [SOLVED]

That is where I am at.
Just have to now implement the necessary logic :-)
by Widgets
Sat Sep 16, 2017 6:20 pm
Forum: C++ Development
Topic: wxFileDirPickerEvent [SOLVED]
Replies: 4
Views: 109

Re: wxFileDirPickerEvent [SOLVED]

Yes, I can check that once the user presses Enter of otherwise finishes entry; I wanted to catch any errors before that. The only way I see at present is to use a validator for the text field. It gives me an event for every key pressed. Still working on that, so I'll have to see if that gives me wha...
by Widgets
Thu Sep 14, 2017 6:24 pm
Forum: C++ Development
Topic: wxFileDirPickerEvent [SOLVED]
Replies: 4
Views: 109

wxFileDirPickerEvent [SOLVED]

I am using a file picker control to allow the user to select a base directory and want to be able to allow the user to specify a, possibly non-existent, directory at that level. As there seems to be only one event generated for both initial selection as well as for every key stroke from the user, I ...
by Widgets
Thu Jul 13, 2017 3:50 pm
Forum: C++ Development
Topic: wxAUI saving a default perspective
Replies: 4
Views: 504

Re: wxAUI saving a default perspective

That sounds like a good alternative.
Unfortunately I was not quite happy with the default dimensions applied by my GUI builder.
Perhaps I'll have to review that process
by Widgets
Tue Jul 11, 2017 10:13 pm
Forum: C++ Development
Topic: wxAUI saving a default perspective
Replies: 4
Views: 504

Re: wxAUI saving a default perspective

My latest conclusion is to save the last saved perspective to the default at startup.
That way the user should have a working perspective and a place to return to if he modifies his layout during the current session.
by Widgets
Wed Feb 08, 2017 5:29 pm
Forum: wxCode
Topic: Regex problem with UTF-8 string in mime decoding [SOLVED]
Replies: 5
Views: 440

Re: Regex problem with UTF-8 string in mime decoding [SOLVED]

In looking through the code some more, I realized the in the function wxRfc2047::Decode(), the code for Q decoding looked very similar to that for B decoding, with one difference. In the section for Q decoding, there was a bit of extra code which was not present in the B decode section and, what is ...
by Widgets
Wed Feb 08, 2017 3:12 am
Forum: wxCode
Topic: Regex problem with UTF-8 string in mime decoding [SOLVED]
Replies: 5
Views: 440

Re: Regex problem with UTF-8 string in mime decoding [SOLVED]

So is this the original code from wxEmail or did you already add parts? If yes, which ones. The sample test program consists merely of a somewhat shortened extract from the function wxString wxRfc2047::Decode(const wxString& encoded_str) in rfc2047.cpp - as it appears in wxEMail\src\codec\rfc20...
by Widgets
Tue Feb 07, 2017 9:10 pm
Forum: wxCode
Topic: Regex problem with UTF-8 string in mime decoding [SOLVED]
Replies: 5
Views: 440

Re: Regex problem with UTF-8 string in mime decoding [SOLVED]

I didn't test the code, but the fact that it totally ignores the encoding given in the string and uses wxConvLocal internally is quite suspicious. Maybe you can find some other code for RFC2047 decoding "in the wild". Thank you very much for your reply, doublemax. Initially I was very dis...
by Widgets
Tue Feb 07, 2017 3:31 am
Forum: wxCode
Topic: Regex problem with UTF-8 string in mime decoding [SOLVED]
Replies: 5
Views: 440

Regex problem with UTF-8 string in mime decoding [SOLVED]

I am using the wxCode version of the wxEmail package wxEMail-1.0-Beta-2 in a project of mine, compiling under MSVC 2015 community edition using the v140_xp tool set and wxWidgets 3.1.0 staticly linked libraries. <<<<<< edit: v100 tool set - same as compiling under MSVC 2010 The code which seems to g...
by Widgets
Wed Jan 18, 2017 7:09 pm
Forum: C++ Development
Topic: Empty wxGrid causes assert on downarrow
Replies: 4
Views: 279

Re: Empty wxGrid causes assert on downarrow

Thank you for confirming my suspicions :-) Yes, there seems to be several places where the coords are set to 0,0 but I don't understand the code well enough to make up a 'reasonable' patch. Sooner or later someone else with more skills in writing up patches etc will run into the issue. For now, it i...
by Widgets
Tue Jan 17, 2017 9:01 pm
Forum: C++ Development
Topic: Empty wxGrid causes assert on downarrow
Replies: 4
Views: 279

Re: Empty wxGrid causes assert on downarrow

Thank you for looking into this issue. After a bit more experimenting : The grid is created in the GUI code created by wxCrafter m_gridDictSource = new wxGrid(m_panelData, wxID_ANY, wxDefaultPosition, wxDLG_UNIT(m_panelData, wxSize(-1,-1)), wxWANTS_CHARS); m_gridDictSource->CreateGrid(0, 0); m_gridD...
by Widgets
Mon Jan 16, 2017 10:04 pm
Forum: C++ Development
Topic: Empty wxGrid causes assert on downarrow
Replies: 4
Views: 279

Empty wxGrid causes assert on downarrow

When my app starts up, I have an empty grid as the main control. If I press down arrow at this time I get an assert from grid.h line 835 // Please refer to the comments above when reading this class code, it's // absolutely symmetrical to wxGridBackwardOperations. class wxGridForwardOperations : pub...
by Widgets
Wed Nov 30, 2016 6:44 pm
Forum: C++ Development
Topic: Using wxListCtrl [SOLVED]
Replies: 4
Views: 291

Re: Using wxListCtrl [SOLVED]

I think the problem lies here: ................. You're not writing the new wxListItem status back into the listctrl. Which is probably unnecessary anyway, isn't that the default behavior? Good point. Among many things, it seems, that not every way I initially thought of, works as expected as far t...
by Widgets
Wed Nov 30, 2016 3:05 am
Forum: C++ Development
Topic: Using wxListCtrl [SOLVED]
Replies: 4
Views: 291

Re: Using wxListCtrl [SOLVED]

Yes, the line(s)/image(s) I want to copy is/are highlighted in the source window. The code I am using to try and get the selected items: void wxGtNewProjectDlg::OnProjAddImage(wxCommandEvent& event) { int j = m_listCtrlImagesAvailable->GetItemCount(); if ( j <= 0 ) { event.Skip(); return; } wxSt...

Go to advanced search