do preview in wxFileDialog

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
shawnee
Experienced Solver
Experienced Solver
Posts: 67
Joined: Tue Jan 16, 2018 1:05 am

do preview in wxFileDialog

Post by shawnee » Mon Jun 29, 2020 6:37 am

Hi all,

Is it possible do something about preview in wxFileDialog when I select a file?
Surely, this file has its special format, I need popup another panel to show it.

I checked the document about wxFileDialog, it seems no way to hook up my callback. How can I do this or other ways to do it? Thanks!

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

Re: do preview in wxFileDialog

Post by ONEEYEMAN » Mon Jun 29, 2020 3:36 pm

Hi,
Please explain what do you want to do?
It is possible to have a special control created in that dialog and possibly you could do something there?

Thank you.

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

Re: do preview in wxFileDialog

Post by doublemax » Mon Jun 29, 2020 4:07 pm

You can add a custom control to a wxFileDialog:
https://docs.wxwidgets.org/trunk/classw ... 7c6334b527

Check the "dialogs" sample that comes with wxWidgets for an example.
Use the source, Luke!

Post Reply