Search found 49 matches
- Tue Jul 21, 2020 6:28 pm
- Forum: C++ Development
- Topic: How does wxFileDialog remember the directory?
- Replies: 5
- Views: 383
Re: How does wxFileDialog remember the directory?
Thank you, that info is very useful.
- Tue Jul 21, 2020 4:28 pm
- Forum: C++ Development
- Topic: How does wxFileDialog remember the directory?
- Replies: 5
- Views: 383
Re: How does wxFileDialog remember the directory?
Yes, this is under Windows. The problem is that we have a government customer that needs to know if/how/when our software modifies the registry, and "maybe" is not an answer that they will accept. So, is the "last used directory" stored in the registry somewhere (I haven't been able to find it), or ...
- Tue Jul 21, 2020 2:59 pm
- Forum: C++ Development
- Topic: How does wxFileDialog remember the directory?
- Replies: 5
- Views: 383
How does wxFileDialog remember the directory?
When running a program that uses a wxFileDialog, the dialog seems to somehow "remember" the directory accessed most recently, and uses that directory as the new "current" location. Furthermore, it remembers this even after the program is shut down and restarted. While this is a pretty cool "feature"...
- Thu Jan 31, 2019 2:25 pm
- Forum: C++ Development
- Topic: wxGridCellEnumRenderer not working
- Replies: 13
- Views: 1245
Re: wxGridCellEnumRenderer not working
As I said, you seem to be confused about the purpose/intent of wxGridCellEnumRenderer. Yes, I HAVE read the documentation. For example, the documentation for wxGridCellEnumRenderer states : This class may be used to render in a cell a number as a textual equivalent. The corresponding text strings ar...
- Wed Jan 30, 2019 10:34 pm
- Forum: C++ Development
- Topic: wxGridCellEnumRenderer not working
- Replies: 13
- Views: 1245
Re: wxGridCellEnumRenderer not working
Thank you for the wonderful (but irrelevant) reference on enums, but I am quite aware of what an enum is - and it has very little to do with the issue at hand. If wxGridCellEnumRenderer is supposed to render a digit instead of the text associated with that digit (as you seem to think), then why woul...
- Wed Jan 30, 2019 10:04 pm
- Forum: C++ Development
- Topic: wxGridCellEnumRenderer not working
- Replies: 13
- Views: 1245
Re: wxGridCellEnumRenderer not working
It doesn't seem like you quite understand the issue. wxGridCellEnumRenderer does NOT work correctly on a wxGrid, UNLESS you either : 1) derive a new class from wxGrid and override the CanGetValueAs() and GetValueAsLong() methods 2) derive a new class from wxGridCellEnumRenderer and override the Draw...
- Wed Jan 30, 2019 8:49 pm
- Forum: C++ Development
- Topic: wxGridCellEnumRenderer not working
- Replies: 13
- Views: 1245
Re: wxGridCellEnumRenderer not working
Ticket #18336 created for this issue.
- Wed Jan 30, 2019 7:48 pm
- Forum: C++ Development
- Topic: wxGridCellEnumRenderer not working
- Replies: 13
- Views: 1245
Re: wxGridCellEnumRenderer not working
No, that doesn't really work, I think you need to examine that a bit more closely. The editor part works fine, but once you edit the cell (and then move on to some other cell), you are left with a "digit" in the cell instead of the actual words. In your case, the cell starts out with a word, only be...
- Wed Jan 30, 2019 5:40 pm
- Forum: C++ Development
- Topic: wxGridCellEnumRenderer not working
- Replies: 13
- Views: 1245
Re: wxGridCellEnumRenderer not working
Well, I thought that I could simply override GetString(), unfortunately, GetString is not defined as virtual in wxGridCellEnumRenderer.
So, I guess that I will have to override the whole Draw() method instead. This is getting messier each step of the way.
So, I guess that I will have to override the whole Draw() method instead. This is getting messier each step of the way.
- Wed Jan 30, 2019 4:58 pm
- Forum: C++ Development
- Topic: wxGridCellEnumRenderer not working
- Replies: 13
- Views: 1245
Re: wxGridCellEnumRenderer not working
After further investigation, I have found what I think to be the problem. The code for wxGridCellEnumRenderer::GetString is as follows: wxString wxGridCellEnumRenderer::GetString(const wxGrid& grid, int row, int col) { wxGridTableBase *table = grid.GetTable(); wxString text; if ( table->CanGetValueA...
- Tue Jan 29, 2019 3:44 pm
- Forum: C++ Development
- Topic: wxGridCellEnumRenderer not working
- Replies: 13
- Views: 1245
wxGridCellEnumRenderer not working
I can't seem to get wxGridCellEnumRenderer to do anything. Perhaps I am missing an important step? I want to have the user choose between options of "Left", "Right", "Up", or "Down", and have the cell rendered as such (with the "actual" cell values being 0,1,2, or 3. This seems to be what the wxGrid...
- Fri Jan 04, 2019 1:00 am
- Forum: C++ Development
- Topic: WxGrid questions
- Replies: 9
- Views: 1024
Re: WxGrid questions
Yeah, that's what I suspect that I'll end up doing.
It just seemed simpler at first glance to use a wxGrid, since it had everything I needed, except for single cell selection.
Thanks.
It just seemed simpler at first glance to use a wxGrid, since it had everything I needed, except for single cell selection.
Thanks.
- Wed Jan 02, 2019 8:15 pm
- Forum: C++ Development
- Topic: WxGrid questions
- Replies: 9
- Views: 1024
Re: WxGrid questions
Basically, I want to show a "grid-like" widget that has a programmable number of boxes. Each box represents an item in the world from 1 to N. When the user clicks on a box, a frame to the right will be displayed containing the data associated with that item. The user can then view and/or edit that d...
- Wed Jan 02, 2019 2:59 pm
- Forum: C++ Development
- Topic: WxGrid questions
- Replies: 9
- Views: 1024
Re: WxGrid questions
Well, there could be anywhere from like 20 to 2000 (and I won't know how many until runtime). I thought that by using the wxGrid I could gain a lot of functionality (like scrolling if needed). It seems that wxGrid has MORE than what I need, I just want to enforce the "one-selected-cell-only" rule. T...
- Wed Jan 02, 2019 12:36 am
- Forum: C++ Development
- Topic: WxGrid questions
- Replies: 9
- Views: 1024
WxGrid questions
1) Is there some way to disable all group selection functions? I want to disallow the user from ever having more than one cell selected. For my purposes, the selected cell is the "active item", and it makes no sense for there to be more than one active item. 2) Is there some way to change the color ...