Search found 46 matches

by mbeardsley
Tue Feb 28, 2017 9:25 pm
Forum: C++ Development
Topic: Scrolling a wxGrid while it is being updated
Replies: 11
Views: 1299

Re: Scrolling a wxGrid while it is being updated

The issue with the lost focus is a little suspicious. Are you running in debug or release mode? If you're testing in release mode, please try with a debug build. Maybe you're missing some asserts. This happens in both Debug and Release builds. Can't you just leave a bunch of empty lines at the end ...
by mbeardsley
Tue Feb 28, 2017 8:58 pm
Forum: C++ Development
Topic: Scrolling a wxGrid while it is being updated
Replies: 11
Views: 1299

Re: Scrolling a wxGrid while it is being updated

Unfortunately no. Turning off the EnableScrolling() does not work if a scroll operation is already in progress (it appears to get ignored in that case). I'm not sure what you mean by vice-versa, but I assume that you mean don't rebuild while a scroll is in progress, but I haven't found a way to reli...
by mbeardsley
Tue Feb 28, 2017 8:34 pm
Forum: C++ Development
Topic: Scrolling a wxGrid while it is being updated
Replies: 11
Views: 1299

Re: Scrolling a wxGrid while it is being updated

It seems after further inspection that the problem is caused by deleting rows of the table while a scroll operation is in progress. It gets the scroll/mouse/focus system confused (though scrolling with the mouse wheel seems to be ok). Is there some sort of function/event that I could latch onto wher...
by mbeardsley
Tue Feb 28, 2017 5:58 pm
Forum: C++ Development
Topic: Scrolling a wxGrid while it is being updated
Replies: 11
Views: 1299

Re: Scrolling a wxGrid while it is being updated

Well, I have some additional info. It turns out that the problem only seems to occur if the entire grid is being rebuilt while a scrolling operation is in progress. Periodically, I delete all rows of the grid and re-create them from scratch, usually due to objects in the list being added or deleted ...
by mbeardsley
Tue Feb 28, 2017 5:09 pm
Forum: C++ Development
Topic: Scrolling a wxGrid while it is being updated
Replies: 11
Views: 1299

Scrolling a wxGrid while it is being updated

I have a strange problem when scrolling a wxGrid. The text in the Grid is being updated once a second (on a timer loop), because some of the text fields are constantly changing. When the user tries to scroll down (by either dragging the scroll bars or clicking the down arrow button at the bottom of ...
by mbeardsley
Fri Aug 19, 2016 6:26 pm
Forum: C++ Development
Topic: wxFilePicker - how to prevent a directory change?
Replies: 1
Views: 391

wxFilePicker - how to prevent a directory change?

Is there some way to create a wxFilePicker control that prevents the user from being able to open a file from other directories?
I want to limit the user to choosing an already existing file from the provided directory (i.e. no "browse").

I am running MSW 7.0, wxWidgets 3.0.2 and VC10.
by mbeardsley
Tue Aug 02, 2016 4:03 pm
Forum: C++ Development
Topic: TAB Traversal question
Replies: 3
Views: 1313

Re: TAB Traversal question

I had tried that already, but I tried it again and it works. I must have done it incorrectly the first time. Thank you, that was very helpful. As a side note, having that additional hierarchy meant that I also had to enable the window extra style "wxWS_EX_VALIDATE_RECURSIVELY" for my validators to w...
by mbeardsley
Tue Aug 02, 2016 2:13 pm
Forum: C++ Development
Topic: TAB Traversal question
Replies: 3
Views: 1313

TAB Traversal question

I have a Frame that I pop up (by calling Show()) when the user wants to edit something. The frame has about 6 data entry fields, but I can't seem to get the Tab Traversal working. I have tried setting the wxTAB_TRAVERSAL on the individual controls, the panel that they are on, and the frame that hold...
by mbeardsley
Thu Jun 09, 2016 2:07 pm
Forum: C++ Development
Topic: Is there a way to get/set the Scroll Lock state?
Replies: 1
Views: 432

Is there a way to get/set the Scroll Lock state?

Looking through the docs I have been unable to find a way to read and/or set the Scroll Lock state on the keyboard. Does wxWidgets have some way to do this? I know that there is a way to simulate the Scroll Lock key press, but I also need to know the current Scroll Lock state. For example, I want to...
by mbeardsley
Tue Jun 07, 2016 3:59 pm
Forum: C++ Development
Topic: Problem with checkbox inside a grid
Replies: 9
Views: 1613

Re: Problem with checkbox inside a grid

I tried various ways to work around the problem, (mostly trying to interface to the underlying checkbox) all of which seemed to have their own issues. However, I found a much simpler way of doing what I want. Rather than using a wxGridCellBoolEditor AND a wxGridCellBoolRenderer, I am now just using ...
by mbeardsley
Fri Jun 03, 2016 9:02 pm
Forum: C++ Development
Topic: Problem with checkbox inside a grid
Replies: 9
Views: 1613

Re: Problem with checkbox inside a grid

If anything else fails, catch the click from the editor control No, that doesn't work. Clicking the checkbox on/off doesn't cause the event to trigger. I think you should receive a wxEVT_CHECKBOX event. That's an interesting idea, but how would I know which row/column in the grid was being clicked?...
by mbeardsley
Fri Jun 03, 2016 8:07 pm
Forum: C++ Development
Topic: Problem with checkbox inside a grid
Replies: 9
Views: 1613

Re: Problem with checkbox inside a grid

Thanks for the suggestion, but that event doesn't trigger either. To be more clear, I can click the checkbox (inside the grid cell) on and off without getting any event to trigger, however, if I click the area inside the cell (but outside the actual checkbox), various events will trigger as expected...
by mbeardsley
Fri Jun 03, 2016 6:39 pm
Forum: C++ Development
Topic: Problem with checkbox inside a grid
Replies: 9
Views: 1613

Problem with checkbox inside a grid

I am running wxWidgets 3.0.2 on Windows7-64. One of the columns in my wxGrid is a checkbox that I have implemented using wxGridCellBoolRenderer and wxGridCellBoolEditor. I then catch the OnGridSelectCell event to look for input. This works fine if the user clicks on the area of the cell which is jus...
by mbeardsley
Wed Aug 19, 2015 7:47 pm
Forum: C++ Development
Topic: using wxJoystick for more than 2 sticks?
Replies: 1
Views: 168

using wxJoystick for more than 2 sticks?

My application will need to read data from up to 4 different joysticks (I know this sounds silly, but there is a reason for this). I am running Windows 7, with wxWidgets 3.0.2. The docs for wxJoystick seem to imply that only Joystick1 and Joystick2 are supported (at least these are the only enumerat...
by mbeardsley
Thu Jul 30, 2015 2:59 pm
Forum: C++ Development
Topic: Strange Occasional loss of mouse input
Replies: 10
Views: 1130

Re: Strange Occasional loss of mouse input

After some further analysis, it does seem that using a one-shot timer (repeatedly) works better than using a continuous timer (whether vsync is enabled or not). I now re-start the one-shot timer inside my timer handler (which means that timer events cannot become "backed up" since only one timer eve...