What is this widget called ??

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
ibrahim
Earned some good credits
Earned some good credits
Posts: 124
Joined: Mon Mar 14, 2022 8:02 am

What is this widget called ??

Post by ibrahim »

I know this is a stupid question but I am really stuck

I have absolutely no idea what this widget is called. I can't search it because I don't know what it is called :
Screenshot 2022-05-16 151308.png
Screenshot 2022-05-16 151308.png (5.28 KiB) Viewed 520 times
In the wxMessageDialog , there are two colours grey and white, what is used to acheive that ??

I tried creating two panels and set one to grey and one to white but that didn't look like the image shown above
User avatar
Welnyr
Earned a small fee
Earned a small fee
Posts: 22
Joined: Mon May 09, 2022 7:40 am

Re: What is this widget called ??

Post by Welnyr »

wxStaticLine?
a dum dum
ibrahim
Earned some good credits
Earned some good credits
Posts: 124
Joined: Mon Mar 14, 2022 8:02 am

Re: What is this widget called ??

Post by ibrahim »

It's definitely not wxStaticLine
User avatar
doublemax@work
Super wx Problem Solver
Super wx Problem Solver
Posts: 474
Joined: Wed Jul 29, 2020 6:06 pm
Location: NRW, Germany

Re: What is this widget called ??

Post by doublemax@work »

Definitely not a widget. It's either a border of the top or bottom part, or a feature of the native Windows dialog.
ibrahim
Earned some good credits
Earned some good credits
Posts: 124
Joined: Mon Mar 14, 2022 8:02 am

Re: What is this widget called ??

Post by ibrahim »

Which one is it?? , is there a wxWidgets class for implementing it ??? Come on I'm not asking for opinions
Nunki
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 235
Joined: Fri Sep 14, 2012 8:26 am
Location: Kontich, Belgium
Contact:

Re: What is this widget called ??

Post by Nunki »

Well it could be a static line with colour white and a width of, say 20 px.

You could also start with a vertical sizer and add a panel with background white and a second panel with a grey background colour. Put on that panel an horizontal sizer with a space and two buttons. Set the space to stretch and the buttons will end up on the right side. And they will stay on the right side of you resize the basic frame.

Enjoy coding with wxWidgets,
Nunki
ibrahim
Earned some good credits
Earned some good credits
Posts: 124
Joined: Mon Mar 14, 2022 8:02 am

Re: What is this widget called ??

Post by ibrahim »

Nah its not that too , there is a dark grey line is you look closely and that can't be made with two panels. It could be made with another another line though...
Post Reply