Search found 349 matches

by Widgets
Wed Jul 25, 2018 5:25 pm
Forum: C++ Development
Topic: Reading back contents of wxGrid wxGridCellChoiceEditor
Replies: 7
Views: 441

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: 441

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
Replies: 5
Views: 402

Re: Drag n Drop hint move vs copy

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
Replies: 5
Views: 402

Re: Drag n Drop hint move vs copy

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
Replies: 5
Views: 402

Re: Drag n Drop hint move vs copy

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
Replies: 2
Views: 256

Re: Missing files in wxFileDialog

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
Replies: 5
Views: 402

Drag n Drop hint move vs copy

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
Replies: 2
Views: 256

Missing files in wxFileDialog

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("EXE files (*...
by Widgets
Fri Jun 22, 2018 7:06 pm
Forum: C++ Development
Topic: Charset GB1830
Replies: 2
Views: 278

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: 278

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: 446

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: 446

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. ...
by Widgets
Sat May 12, 2018 8:39 pm
Forum: The Code Dump
Topic: wxBup - yet-another backup utility with some differences
Replies: 0
Views: 872

wxBup - yet-another backup utility with some differences

wxBUP, my backup utility is not available on Github at: https://github.com/tester0077/wxBup
by Widgets
Sat May 12, 2018 5:19 pm
Forum: The Code Dump
Topic: wxMS - Mail Screener is now available on Github
Replies: 9
Views: 924

Re: wxMS - Mail Screener is now available on Github

wxMS also has a preview facility. Originally it was invoked with SPACE (same as my old Mailwasher 2.0 freebie) but after my efforts to port it to Ubuntu, where SPACE seemed to be bound to something else, I moved it to Alt-Space
HTH :)