Search found 114 matches

by papillon68
Wed Sep 15, 2021 2:28 pm
Forum: C++ Development
Topic: wxAuiManager pane customization
Replies: 2
Views: 279

Re: wxAuiManager pane customization

doublemax wrote:
Wed Sep 15, 2021 5:06 am
I've never done that, but based on the API, i'd try a custom wxAuiDockArt and implementing wxAuiDockArt::DrawSash().
https://docs.wxwidgets.org/trunk/classw ... 083cd7d238
Thanks a lot, it worked!
by papillon68
Tue Sep 14, 2021 10:52 pm
Forum: C++ Development
Topic: wxAuiManager pane customization
Replies: 2
Views: 279

wxAuiManager pane customization

Hi folks, I finally found a way to customize any aspect of my application building custom widgets, but I'm still struggling about how to customize the white lines on panes that I add (I use the wxAuiManager). If you please take a look at the attached screenshot: any idea of how to achieve that? Hope...
by papillon68
Fri Aug 27, 2021 9:20 pm
Forum: The Code Dump
Topic: Skinnable scrollbars
Replies: 4
Views: 4119

Re: Skinnable scrollbars

My bad, after accessing the window using GetPanel() it works really great. Thanks a lot for making this great addon!
by papillon68
Fri Aug 27, 2021 9:19 pm
Forum: C++ Development
Topic: Backgroud color of a column header in wxDataviewCtrl
Replies: 6
Views: 1188

Re: Backgroud color of a column header in wxDataviewCtrl

I think you can do it using the wxDataViewCustomRenderer class: https://docs.wxwidgets.org/3.0/classwx_ ... derer.html
by papillon68
Fri Aug 27, 2021 9:16 pm
Forum: C++ Development
Topic: wxScrolledWindow subclassing
Replies: 6
Views: 746

Re: wxScrolledWindow subclassing

It works indeed. My error is that I was accessing the MyScrolledWindow "window" directly instead of referencing it through the GetPanel() method. Doing so would mess up all the sizers and produce the issue I was having. Now it's working great, thanks for all the help and bertolino for making this us...
by papillon68
Fri Aug 27, 2021 12:43 pm
Forum: The Code Dump
Topic: Skinnable scrollbars
Replies: 4
Views: 4119

Re: Skinnable scrollbars

Hi Pascal, thanks for this precious widget implementation. It would work really great, but in my case as I use the scrollbar, the panel contents get deleted. Do you know how to fix that? Thanks.
by papillon68
Fri Aug 27, 2021 12:42 pm
Forum: C++ Development
Topic: wxScrolledWindow subclassing
Replies: 6
Views: 746

Re: wxScrolledWindow subclassing

doublemax wrote:
Thu Aug 26, 2021 10:29 pm
viewtopic.php?f=20&t=48231
Nice find, thanks a lot. I tried and it would work well, only that when scrolling the panel, its contents get erased. I tried adding a OnEraseBackGround event, and a event.skip() to see if that would solve the issue, but didn't work.
by papillon68
Fri Aug 27, 2021 12:40 pm
Forum: C++ Development
Topic: wxScrolledWindow subclassing
Replies: 6
Views: 746

Re: wxScrolledWindow subclassing

Hi, Why do you want to change the native appearance? wxWidgets is "famous" for using native control in order to have platform-specific L&F. If you need such granularity - go with Qt. Besides - it is possible that some platforms are not supporting this (especially check OSX). Thank you. Thanks, I un...
by papillon68
Thu Aug 26, 2021 9:53 pm
Forum: C++ Development
Topic: wxScrolledWindow subclassing
Replies: 6
Views: 746

wxScrolledWindow subclassing

I know wxScrolledWindow doesn't come with any method to change scrollbar colors, so I wanted to ask if subclassing it to a new widget is actually feasible and if somebody was brave enough to try.
I'm wondering what functions and methods will be necessary to make it work properly.
by papillon68
Fri Aug 13, 2021 10:30 am
Forum: C++ Development
Topic: wxGraphicsContext feedback
Replies: 3
Views: 726

Re: wxGraphicsContext feedback

Thanks!
by papillon68
Thu Aug 12, 2021 9:59 pm
Forum: C++ Development
Topic: wxGraphicsContext feedback
Replies: 3
Views: 726

wxGraphicsContext feedback

Hi, I have a wxGraphicsContext and I'm drawing several wxGraphicsBitmap's. After they have been drawn, there is a way to identify the one I clicked, so that I can move it around for example?
Thanks
by papillon68
Mon Feb 01, 2021 8:50 pm
Forum: C++ Development
Topic: wxTextCtrl: enter edit mode procedurally
Replies: 6
Views: 317

Re: wxTextCtrl: enter edit mode procedurally

ONEEYEMAN wrote:
Mon Feb 01, 2021 6:59 pm
Hi,
Did you call "event.Skip()"?

Thank you.
Yes it's there :wink:
by papillon68
Mon Feb 01, 2021 5:58 pm
Forum: C++ Development
Topic: wxTextCtrl: enter edit mode procedurally
Replies: 6
Views: 317

Re: wxTextCtrl: enter edit mode procedurally

After more testing I found a way that works and it's good for what I need to achieve. To sum things up, if I call SetFocus() from a OnLeftUp mouse event it works: the cursor shows up, blinking. Calling SetFocus() from OnLeftDown/OnEnter/OnLeave mouse events does not produce the same result. I'm curi...
by papillon68
Mon Feb 01, 2021 4:43 pm
Forum: C++ Development
Topic: wxTextCtrl: enter edit mode procedurally
Replies: 6
Views: 317

Re: wxTextCtrl: enter edit mode procedurally

Hi, basically I'd like to simulate what happens when you click on the control and the cursor appears, and you are enabled to type values.
The control is not in readonly mode.
by papillon68
Mon Feb 01, 2021 4:24 pm
Forum: C++ Development
Topic: wxTextCtrl: enter edit mode procedurally
Replies: 6
Views: 317

wxTextCtrl: enter edit mode procedurally

Hello, I'd like to have a wxTextCtrl enter edit mode as I hover on it. OnMouse events are ok, but I cannot trigger edit mode. I tried using EmulateKeyPress like this: mytextCtrl->SetFocus(); mytextCtrl->SetEditable(true); wxKeyEvent keyEvent(wxEVT_CHAR); keyEvent.m_keyCode = WXK_SPACE; mytextCtrl->E...