Search found 27 matches

by ydsun
Fri Jun 28, 2019 10:03 am
Forum: C++ Development
Topic: Grid cell left click and left double click handler
Replies: 2
Views: 1048

Re: Grid cell left click and left double click handler

PB: thanks for your input. I've found a workaround. When double clicking on an editable cell, only the left single click handler is called. When double clicking on a read-only cell, the left double click handler will be called. So I've made some columns read-only where double click event can be caug...
by ydsun
Thu Jun 27, 2019 5:13 pm
Forum: C++ Development
Topic: Grid cell left click and left double click handler
Replies: 2
Views: 1048

Grid cell left click and left double click handler

Hi, I've got a very basic question about Grid Cell Left Click events. Is it possible to handle Left Click and Left Double Click differently on the same grid? I've defined handler functions for EVT_GRID_CELL_LEFT_CLICK and EVT_GRID_CELL_LEFT_DCLICK events like: EVT_GRID_CELL_LEFT_CLICK(OnSingleClick)...
by ydsun
Fri May 04, 2018 10:36 am
Forum: C++ Development
Topic: Customizing one column label drawing
Replies: 1
Views: 609

Customizing one column label drawing

Hi,

I want to customize column label for one column only. I wonder if there is a way to set a custom wxGridColumnHeaderRenderer on a specific column? The grid sample code only shows applying the CustomColumnHeaderRenderer to all column labels.

I use wx 3.0.2.

Thanks.
by ydsun
Wed Dec 27, 2017 5:35 pm
Forum: C++ Development
Topic: Set Column Position
Replies: 2
Views: 815

Re: Set Column Position

I have sorted out. Set column positions in reverse order from the highest position to the lowest. In this way, the column positions can be maintained as set by SetColPos. My purpose is to let users to re-arrange the columns of a grid in their preference. The custom positions are saved to a log file ...
by ydsun
Wed Dec 27, 2017 4:19 pm
Forum: C++ Development
Topic: Set Column Position
Replies: 2
Views: 815

Set Column Position

Hi, I try to set custom positions to all columns of a grid. After calling SetColPos(col, pos) with a specific position for each column, some columns implicitly change to a position different from what I gave in SetColPos. I guess that other columns may have to change their position when one of the c...
by ydsun
Tue Nov 14, 2017 3:11 pm
Forum: C++ Development
Topic: Edit multiple columns in wxCheckedListCtrl
Replies: 0
Views: 6228

Edit multiple columns in wxCheckedListCtrl

Hi there, I want to make columns in a wxCheckedListCtrl editable. As I see, only the first column can be edited. I am using a very old version checkedlistctrl.cpp v 1.15 2005/10/20. I wonder if wxCheckedListCtrl has got a new version that supports all columns editing. If I have to use wxDataViewList...
by ydsun
Fri Mar 03, 2017 3:00 pm
Forum: C++ Development
Topic: Is it able to drag a tab out of wxAuiNotebook now?
Replies: 3
Views: 1062

Re: Is it able to drag a tab out of wxAuiNotebook now?

Hi there,

I'd like to revive this question two years on. Is there any solution to implement drag-out/in window now? We are tempted to do this again. Your suggestions are welcome. :D

Thanks!
by ydsun
Thu Apr 21, 2016 11:08 am
Forum: C++ Development
Topic: Resize width of row labels
Replies: 2
Views: 923

Re: Resize width of row labels

Yes, this works.

Many thanks.
by ydsun
Thu Apr 21, 2016 9:47 am
Forum: C++ Development
Topic: Resize width of row labels
Replies: 2
Views: 923

Resize width of row labels

Hi,

Is there a way to resize the width of row label to fit the longest label? I can't find any wxGrid function for that purpose.

Thanks.
by ydsun
Tue Dec 15, 2015 5:00 pm
Forum: C++ Development
Topic: HasScrollbar always returns false
Replies: 0
Views: 2303

HasScrollbar always returns false

I have got another problem when upgrading wx from 2.8.12 to 3.0.2. I use HasScrollbar(wxVERTICAL) to check if a vertical scrollbar is displayed when handling EVT_SIZE. This function worked perfect in 2.8.12. However, it always returns false now in 3.0.2 even when a vertical scrollbar is present in t...
by ydsun
Tue Dec 15, 2015 4:46 pm
Forum: C++ Development
Topic: wxGrid::GetSelectionBlockTopLeft returns empty
Replies: 2
Views: 821

Re: wxGrid::GetSelectionBlockTopLeft returns empty

Now I use GetSelectedRows instead of GetSelectionBlockTopLeft/BottomRight and it works.
by ydsun
Thu Nov 19, 2015 6:11 pm
Forum: C++ Development
Topic: wxGrid::GetSelectionBlockTopLeft returns empty
Replies: 2
Views: 821

wxGrid::GetSelectionBlockTopLeft returns empty

Hi, My code using wxGrid::GetSelectionBlockTopLeft and GetSelectionBlockBottomRight used to work with wxWidgets 2.8.12. Recently we have upgraded wx to 3.0.2. Now these two functions fail to get selection. Both return empty wxGridCellCoordsArray. Does anyone have any idea what causes this problem an...
by ydsun
Wed Oct 28, 2015 4:07 pm
Forum: Platform Related Issues
Topic: The thread tried to read from or write to a virtual address for which it does not have the appropriate access
Replies: 7
Views: 23598

Re: The thread tried to read from or write to a virtual address for which it does not have the appropriate access

In wxWidgets-2.8.12\src\msw\window.cpp: bool wxWindowMSW::HandleKeyDown(WXWPARAM wParam, WXLPARAM lParam) { int id = wxCharCodeMSWToWX(wParam, lParam); if ( !id ) { // normal ASCII char id = wParam; } wxKeyEvent event(CreateKeyEvent(wxEVT_KEY_DOWN, id, lParam, wParam)); return GetEventHandler()->Pro...