Search found 322 matches

by Widgets
Thu Jul 26, 2018 4:04 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 118

Re: Reading back contents of wxGrid wxGridCellChoiceEditor

Behave - yes. For the usage it is a different issue. 'Usage' from a user's POV: yes - sort of, because wxChoice as I understand it, does not allow the user to add items to the list, but the wxGrid version does 'usage' from a programmer's POV: NO :D ...... But that's would be counterintuitive, since...
by Widgets
Thu Jul 26, 2018 2:39 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 118

Re: Reading back contents of wxGrid wxGridCellChoiceEditor

I would like to save the edited values, but it seems m_choices is inaccessible Yes, it's not exposed through the API. :( 1) As you're the one filling the choices, shouldn't you be able to reconstruct the values? That is how I am handling it now - but it is a bit of extra trouble; it would be much s...
by Widgets
Wed Jul 25, 2018 8:00 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 118

Re: Reading back contents of wxGrid wxGridCellChoiceEditor

Is there a way to actually retrieve the data values in the choice box??
I would like to save the edited values, but it seems m_choices is inaccessible :?
by Widgets
Wed Jul 25, 2018 5:25 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 118

Re: Reading back contents of wxGrid wxGridCellChoiceEditor

Thank you :-) Tracing through the code today finally got me the answer; yesterday it was a bit too late in the day for clear thinking. I had been tracing through the code, but never really caught on ... Clone() did copy the values, but I stuffed the editor into the wrong column :oops: #-o As for the...
by Widgets
Wed Jul 25, 2018 5:56 am
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 118

Reading back contents of wxGrid wxGridCellChoiceEditor

In a wxGrid with a variable number of rows, I have one column which can contain a choice drop down. In order to allow the user to move existing lines up or down in the grid, i.e. reorder the rows, I want to read back the contents of the choice box which is populated when the row is first inserted so...
by Widgets
Tue Jul 03, 2018 11:56 pm
Forum: C++ Development
Topic: Drag n Drop hint move vs copy [SOLVED]
Replies: 5
Views: 177

Re: Drag n Drop hint move vs copy [SOLVED]

Thank you, doublemax.
If I override the function and simply return 'wxDragCopy' unconditionally, I do get the 'Copy' string - but still get the much fancier graphic as well.
I had assumed I would have to do more than that ;-)
by Widgets
Tue Jul 03, 2018 10:20 pm
Forum: C++ Development
Topic: Drag n Drop hint move vs copy [SOLVED]
Replies: 5
Views: 177

Re: Drag n Drop hint move vs copy [SOLVED]

In my case, for the DND sample, I do get the + in a small square as a graphic (no string other than the '+') when I drag a file name from the right hand pane. If I drag a file (name) from a File Explorer window, I get the string 'move' along with the much larger graphic (two gears inside a frame) I ...
by Widgets
Tue Jul 03, 2018 9:36 pm
Forum: C++ Development
Topic: Drag n Drop hint move vs copy [SOLVED]
Replies: 5
Views: 177

Re: Drag n Drop hint move vs copy [SOLVED]

As far as I can tell, my code and the code in the book parallels that in the 3.0.1 DND example and in neither one can I see any override for the class DnDFile class for OnDragOver - only in the URL DnD case.
So I am still missing something :?
by Widgets
Tue Jul 03, 2018 8:38 pm
Forum: C++ Development
Topic: Missing files in wxFileDialog [SOLVED]
Replies: 2
Views: 129

Re: Missing files in wxFileDialog [SOLVED]

A very interesting topic. I had been unaware of this and will have to read up on it and then see where it leads. Unfortunately, looking in C:/Windows/SysWOW64 does not show the files I am looking for either, even in File Explorer, so I suspect they are located in C:/Windows/System32 as shown in File...
by Widgets
Tue Jul 03, 2018 8:28 pm
Forum: C++ Development
Topic: Drag n Drop hint move vs copy [SOLVED]
Replies: 5
Views: 177

Drag n Drop hint move vs copy [SOLVED]

In trying to sort out my problem with some files not showing in the files list of wxFileDialog, I also was reminded of an old nuisance I had left unsolved. When dragging a file into the utility, the drag hint, once it reaches my utility, claims I am 'move'ing a file, when I am only copying it. In my...
by Widgets
Tue Jul 03, 2018 8:05 pm
Forum: C++ Development
Topic: Missing files in wxFileDialog [SOLVED]
Replies: 2
Views: 129

Missing files in wxFileDialog [SOLVED]

Just now, trying to open a text file for analysis of the BOM, I was trying to load a text file from c:/Windows/System32/ud-boot-time.cmd using the wxFileDialog. void MyFrame::OnFileOpen(wxCommandEvent& WXUNUSED(event) ) { wxString caption = _T("Choose a file"); wxString wsWildcard = _T...
by Widgets
Fri Jun 22, 2018 7:06 pm
Forum: C++ Development
Topic: Charset GB1830
Replies: 2
Views: 111

Re: Charset GB1830

My code to test for the availability of GB1830 came from the font sample. I have meanwhile tried to follow the trail into the wxWidgets code and it is very confusing. wxFontEncoding fontenc = wxFontMapper::Get()->CharsetToEncoding(char_set); -> wxFontMapperBase::NonInteractiveCharsetToEncoding(const...
by Widgets
Fri Jun 22, 2018 2:58 am
Forum: C++ Development
Topic: Charset GB1830
Replies: 2
Views: 111

Charset GB1830

Win 10, MSVC 2015, MSVC 2010 tool chain, wxWidgets 3.1.0 Just now I have run into an issue with my mail screener and the charset gb1830. An incoming message has some fields encoded in GB1830 and I am trying to use code such as wxFontEncoding text_encoding = wxFontMapper::Get()->CharsetToEncoding(cha...
by Widgets
Fri May 18, 2018 1:42 am
Forum: Platform Related Issues
Topic: Win32 API GetTopWindow() - how to call it
Replies: 2
Views: 153

Re: Win32 API GetTopWindow() - how to call it

[edit] After my first cut at my reply, I found the function wxWindow::GetHWND() and it looks like what I think I need, though that is still to be confirmed, but it got me further along the road. wxWindow *pWin = GetTopWindow(); HWND hWnd = pWin->GetHandle(); [/edit] I'm, afraid, that does not do wha...
by Widgets
Thu May 17, 2018 9:43 pm
Forum: Platform Related Issues
Topic: Win32 API GetTopWindow() - how to call it
Replies: 2
Views: 153

Win32 API GetTopWindow() - how to call it

In my current app, I want to get the current top window in general, not the top window of my app. When I tried to use the Win32 function GetTopWindow(), I get the wrong function returning wxWindow * instead of HWND, because wxApp also has a function with the exact same name and it takes precedence. ...

Go to advanced search