thanx!
as i understand it the mouse down event also fires as long as the key is pressed? i guess that would be trouble since i want to delete the item that triggers the deletion?
i do not understand why it should be better to bind inside the mouse click handler?
Search found 462 matches
- Fri Apr 16, 2021 2:01 pm
- Forum: C++ Development
- Topic: wxEVT_CHAR works, wxEVT_KEY_UP does not
- Replies: 4
- Views: 82
- Thu Apr 15, 2021 4:36 pm
- Forum: C++ Development
- Topic: wxEVT_CHAR works, wxEVT_KEY_UP does not
- Replies: 4
- Views: 82
wxEVT_CHAR works, wxEVT_KEY_UP does not
Hello everyone, I have a wxScrolledWindow populated with wxStaticBitmaps and the selected bitmap is painted with a blue edge. The user can select a bitmap by clicking on it and I want to achieve that pressing the delete key deletes the bitmap. Now, in the bitmaps ctor i use Bind(wxEVT_CHAR, &Scrolle...
- Sun Apr 04, 2021 5:42 pm
- Forum: C++ Development
- Topic: SetCellValue crash
- Replies: 2
- Views: 114
Re: SetCellValue crash
YES!!! worked, that was easy, should have thought of it myself.
thank you!

thank you!
- Sun Apr 04, 2021 12:56 pm
- Forum: C++ Development
- Topic: SetCellValue crash
- Replies: 2
- Views: 114
SetCellValue crash
hi everyone, i have a wxGrid cell with a wxGridCellNumberEditor and have a special case where i do not only have an int in that cell of the grid, but i want to show i.e. "45±" instead of just "45". now, it is no problem to remove the "±" before the editor is shown with wxEVT_GRID_EDITOR_SHOWN event,...
- Thu Mar 04, 2021 11:08 am
- Forum: C++ Development
- Topic: wxSocketClient establish connection
- Replies: 6
- Views: 369
Re: wxSocketClient establish connection
I would like to block the main app until either a connection is established or not. I just want this to be as fast as possible. It seems unnecessary to try to establish a wxSocket connection for a couple of seconds if one could somehow quickly check if there is a device at a certain ip adress at all...
- Tue Mar 02, 2021 10:41 am
- Forum: C++ Development
- Topic: wxSocketClient establish connection
- Replies: 6
- Views: 369
Re: wxSocketClient establish connection
good idea! this worked and I found out that the device sometimes needs longer to connect the socket. i used to have WaitOnConnect(2) and that sometimes was too little time. what bugs me is that it might need up to 7 seconds per socket and i have 2 sockets per device and potentially 2 devices. can i ...
- Mon Mar 01, 2021 9:33 am
- Forum: C++ Development
- Topic: wxSocketClient establish connection
- Replies: 6
- Views: 369
Re: wxSocketClient establish connection
yes, it all simply works in the sample, probably because it also has control over the server. That is not the case with me, so i guess my problem has to do with some non wxWidgets socket implementation in the device.
- Sun Feb 28, 2021 5:04 pm
- Forum: C++ Development
- Topic: reorder wxTreeCtrl (drag in spaces between nodes)
- Replies: 5
- Views: 1935
Re: reorder wxTreeCtrl (drag in spaces between nodes)
i am happy that it could help someone! i have updated it myself since then and am still using it. i hope something like this will be part of wxwidgets someday. 

- Sun Feb 28, 2021 5:02 pm
- Forum: C++ Development
- Topic: wxSocketClient establish connection
- Replies: 6
- Views: 369
wxSocketClient establish connection
hi everyone, so this basically works, it just sometimes needs a second run through to be successful. can I improve it? wxIPV4address addrSett; addrSett.Hostname(wxString::Format(wxT("192.168.5.%i"), getLastIpNum())); addrSett.Service(wxString::Format(wxT("%i"), portNr)); bool makeConn = sock->Connec...
- Fri Jan 29, 2021 5:46 pm
- Forum: C++ Development
- Topic: visual on/off bitmap
- Replies: 2
- Views: 169
visual on/off bitmap
I everyone! I want to have some kind of traffic light showing the state of a device connected to my app with either red or green light. I thought about some thing like a mouseOver wxBitmap, only that I control the state and not the mouse. Or just rebuild the whole window and use the other bitmap whe...
- Tue Jan 26, 2021 8:01 pm
- Forum: C++ Development
- Topic: wxPoint or wxRealPoint as function parameter
- Replies: 2
- Views: 156
wxPoint or wxRealPoint as function parameter
I have two functions with different signatures void func1(wxPoint pnt) { OutputDebugString(wxT("wxPoint\n")); } void func1(wxRealPoint pnt) { OutputDebugString(wxT("wxRealPoint\n")); } wxPoint pInt(1, 1); wxRealPoint pDbl(2.0, 2.0); bool choice = true; func1(choice ? pDbl : pInt); No matter what "ch...
- Sun Jan 03, 2021 5:55 pm
- Forum: C++ Development
- Topic: wxSpinCtrlDouble minimum 5 makes manual input 12 impossible
- Replies: 6
- Views: 330
Re: wxSpinCtrlDouble minimum 5 makes manual input 12 impossible
thank you all, then I will use 0 as a minimum and check in every new release if this is fixed.
- Tue Dec 29, 2020 12:13 pm
- Forum: C++ Development
- Topic: wxSpinCtrlDouble minimum 5 makes manual input 12 impossible
- Replies: 6
- Views: 330
wxSpinCtrlDouble minimum 5 makes manual input 12 impossible
Weird thing with wxSpinCtrlDouble, a minimum of i.e. 5 makes it impossible to manually enter any value starting with 1/2/3/4. wxSpinCtrlDouble *dblTest = new wxSpinCtrlDouble(this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxSP_ARROW_KEYS, 5, 50); It works fine with wxSpinCtrl. Can ...
- Thu Oct 08, 2020 6:52 am
- Forum: C++ Development
- Topic: mouseOver lines on wxBitmap
- Replies: 5
- Views: 419
Re: mouseOver lines on wxBitmap
After a look into the sources, it seems that at least under Windows there's dedicated platform specific code that creates a region from a polygon without rendering it into a bitmap. So it's possible that at least under Windows a wxRegion can be both small and fast. I didn't make any performance tes...
- Tue Oct 06, 2020 1:45 pm
- Forum: C++ Development
- Topic: mouseOver lines on wxBitmap
- Replies: 5
- Views: 419
Re: mouseOver lines on wxBitmap
Sounds good, thanx! I would say there will be max 4000 lines. You think wxRegion is much slower than wxRect? To use both like you suggested, I would have to fill and loop at least two vectors. I would tend to only use wxRegion, what do you think? A nice pre test would be if the mouse is between the ...