wxSplitterWindow, image between panels

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
mrdebug
Earned some good credits
Earned some good credits
Posts: 131
Joined: Mon Jul 17, 2006 4:57 pm

wxSplitterWindow, image between panels

Post by mrdebug » Thu Jun 28, 2018 2:53 pm

Is there a way to show the graphic behaviour between panels? Now in my software wxSplitterWindow works but does not appear so a user can't know that it there is.

User avatar
doublemax
Moderator
Moderator
Posts: 13986
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSplitterWindow, image between panels

Post by doublemax » Thu Jun 28, 2018 7:53 pm

Are you saying that the actual sash is invisible, so the user don't know there is one?

Which platform and wxWidgets version are you using?
What do you see in the "splitter" sample that comes with wxWidgets?
Use the source, Luke!

mrdebug
Earned some good credits
Earned some good credits
Posts: 131
Joined: Mon Jul 17, 2006 4:57 pm

Re: wxSplitterWindow, image between panels

Post by mrdebug » Thu Jun 28, 2018 8:36 pm

m_splitter1->SetSashInvisible(false); does not seem to have any effect.
The sash does not appear in Windows 10 and Debian 9

User avatar
doublemax
Moderator
Moderator
Posts: 13986
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSplitterWindow, image between panels

Post by doublemax » Thu Jun 28, 2018 9:50 pm

I just checked Windows 10 and indeed the sash is not clearly visible, it's mainly just a gap between the two windows. But i'm not sure that's a problem. I think for most users it will be clear that there might be a sash they can drag and they will see the changing mouse pointer when it's over the sash.

If you really want something more distinctive, you could subclass wxSplitterWindow and implement DrawSash().

Code: Select all

// Draws the sash
virtual void DrawSash(wxDC& dc); 
Use the source, Luke!

mrdebug
Earned some good credits
Earned some good credits
Posts: 131
Joined: Mon Jul 17, 2006 4:57 pm

Re: wxSplitterWindow, image between panels

Post by mrdebug » Fri Jun 29, 2018 9:02 am

Many thanks for your reply. It is not so important.
Are you a wxWidgets official developer?
May I ask you which develop environment are you using?

User avatar
doublemax
Moderator
Moderator
Posts: 13986
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxSplitterWindow, image between panels

Post by doublemax » Fri Jun 29, 2018 9:09 am

Are you a wxWidgets official developer?
No.
May I ask you which develop environment are you using?
VS2013 pro. No GUI editor.
Use the source, Luke!

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3403
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxSplitterWindow, image between panels

Post by ONEEYEMAN » Fri Jun 29, 2018 2:15 pm

Hi
mrdebug wrote: Many thanks for your reply. It is not so important.
Are you a wxWidgets official developer?
The proper term here is - core developer. ;-)

Thank you.

Post Reply