Search found 282 matches
- Sat Nov 13, 2021 7:49 am
- Forum: wxCode
- Topic: wxShapeFramework
- Replies: 12
- Views: 14295
Re: wxShapeFramework
So it is now painting okay, just without the highlight? As I mentioned, the simplest thing is to colour the whole shape using something like: if( m_fSelected && m_type == DatabaseView ) SetFill( wxBrush( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ) ); else SetFill( wxBrush( wxColo...
- Fri Nov 12, 2021 6:28 pm
- Forum: wxCode
- Topic: wxShapeFramework
- Replies: 12
- Views: 14295
Re: wxShapeFramework
Do you want to change the background of the header part when the entity is selected? Easiest way would be to set the fill of MyErdTable which is derived from wxSFRoundRectShape. Then keep the background of the header text transparent. If you want to change just the colour of the header part, then yo...
- Fri Nov 12, 2021 5:17 pm
- Forum: wxCode
- Topic: wxShapeFramework
- Replies: 12
- Views: 14295
Re: wxShapeFramework
I suspect it is because of your ::DrawNormal code: void MyErdTable::DrawNormal(wxDC &dc) { if( this->m_fSelected && m_type == DatabaseView ) { m_header->SetFill( wxBrush( wxSystemSettings::GetColour( wxSYS_COLOUR_HIGHLIGHT ) ) ); } wxSFRoundRectShape::DrawNormal( dc ); DrawDetail( dc ); ...
- Fri Nov 12, 2021 10:33 am
- Forum: wxCode
- Topic: wxShapeFramework
- Replies: 12
- Views: 14295
Re: wxShapeFramework
Sorry, please clarify what is not being painted correctly. I can see that the header "owners" has a solid blue background - is that test code or is that the problem? I have not used wxSFGridShape or wxSFFlexGridShape, so it maybe that I can't help you. I generally find that compound shapes...
- Thu Nov 11, 2021 8:29 pm
- Forum: wxCode
- Topic: wxShapeFramework
- Replies: 12
- Views: 14295
Re: wxShapeFramework
Is the layout being performed in the GridTableShape class? If that class is derived from wxSFTextShape then that might be the problem as I think the layout is pretty basic. I have always tended to overload a wxSF class with my own rendering code for anything more complex than a simple line of text. ...
- Thu Nov 11, 2021 1:36 pm
- Forum: wxCode
- Topic: wxShapeFramework
- Replies: 12
- Views: 14295
Re: wxShapeFramework
Hi, yes I use it quite a lot.
What is the problem?
What is the problem?
- Tue Aug 24, 2021 10:04 pm
- Forum: Database Related
- Topic: recommendation for Firebird 3
- Replies: 2
- Views: 13377
Re: recommendation for Firebird 3
Firebird now has its own C++ API which is quite straightforward. There is also IBPP, but it is getting quite old now and I am not sure if Firebird 3 is supported. There is quite good documentation in the $FIREBIRD/doc folder called Using_OO_API.html. The formatting is a little off, but once you get ...
- Fri Aug 20, 2021 10:45 am
- Forum: General Development
- Topic: Is there any course on wxwidgets to get started?
- Replies: 4
- Views: 8251
Re: Is there any course on wxwidgets to get started?
The following two videos were made a couple of years ago, but are still very relevant, especially if you are working on Windows and using Visual Studio:
https://www.youtube.com/watch?v=FOIbK4bJKS8
https://www.youtube.com/watch?v=FwUGeV2fnfM
https://www.youtube.com/watch?v=FOIbK4bJKS8
https://www.youtube.com/watch?v=FwUGeV2fnfM
- Tue Oct 06, 2020 3:30 pm
- Forum: Platform Related Issues
- Topic: "wx.rc" not found on MSYS2/W64 on Win10
- Replies: 17
- Views: 3435
Re: "wx.rc" not found on MSYS2/W64 on Win10
I was fighting with a similar problem yesterday. It turned out to be a problem with the MSYS2 version of windres relating to parsing include paths, however my case may have been different as I have the include files on D: drive. In the end, I used the mingw-64 (https://sourceforge.net/projects/mingw...
- Thu Jun 20, 2019 2:19 pm
- Forum: General Development
- Topic: WxWidgets?
- Replies: 12
- Views: 3292
Re: WxWidgets?
Not available in wxWidgets as Doublemax says, however it is readily available in Ponder.There doesn't appear to be a way to bind a function using a string with the function name. This is possible in Qt out of the box and would be helpful to be able to do this.
- Fri Jun 07, 2019 1:58 pm
- Forum: C++ Development
- Topic: Timer (one-off) memory ownership semantics? Delete in event?
- Replies: 16
- Views: 3122
Re: Timer (one-off) memory ownership semantics? Delete in event?
Is it just that you want the timer to fire once and then stop?
If so, you can use StartOnce() or pass wxTIMER_ONE_SHOT to the normal Start() method.
If so, you can use StartOnce() or pass wxTIMER_ONE_SHOT to the normal Start() method.
- Fri Jun 07, 2019 1:03 pm
- Forum: C++ Development
- Topic: wxSocketBase: Exiting after reading data
- Replies: 19
- Views: 4116
Re: wxSocketBase: Exiting after reading data
4. In response to Socket read event I just call the method we have been discussing. If you are responding to a wxSOCKET_INPUT event, then you can simply use Read(buffer, len) to read all available bytes and return. I am pretty sure that Read is guaranteed to get something if a wxSOCKET_INPUT event ...
- Fri Jun 07, 2019 11:26 am
- Forum: C++ Development
- Topic: wxSocketBase: Exiting after reading data
- Replies: 19
- Views: 4116
Re: wxSocketBase: Exiting after reading data
adding the flag causes it read only once and never hit the end of the loop. So the problem is even bigger now :) Check the program flow mentioned by Kvaz1r. I think that you need both the flag and to adjust the 'if' condition. I know very little about sockets, but isn't a socket connection like a p...
- Fri Jun 07, 2019 10:40 am
- Forum: C++ Development
- Topic: wxSocketBase: Exiting after reading data
- Replies: 19
- Views: 4116
Re: wxSocketBase: Exiting after reading data
You may need to set:That is all I have set.Code: Select all
//flags for notify in case they are necessary SetNotify(wxSOCKET_INPUT_FLAG | wxSOCKET_LOST_FLAG | wxSOCKET_CONNECTION_FLAG);
Code: Select all
SetFlags(wxSOCKET_NOWAIT)
- Fri Jun 07, 2019 10:00 am
- Forum: C++ Development
- Topic: wxSocketBase: Exiting after reading data
- Replies: 19
- Views: 4116
Re: wxSocketBase: Exiting after reading data
What flags do you have set with SetFlags() ? This will change the behavior of Read(). Also, out of interest, why are you subclassing wxSocketClient? I think this isn't necessary for a simple transfer. Finally, I found some good examples of simple socket use here: http://cool-emerald.blogspot.com/201...