tgui::FileDialog within a pop-up window.

  • 2 Replies
  • 72 Views
tgui::FileDialog within a pop-up window.
« on: 23 April 2021, 21:37:25 »
Hi! I am using the new FileDialog Widget for the first time.  I can manipulate the dialog box inside the RenderWindow. Good.

However I am not able to create the dialog box in a separate, independent window that I can move freely across the desktop.  :( Maybe it is not possible? And if possible, can you direct me to an example code?

An animated GIF showing the result obtained so far: https://gfycat.com/tinykeydowitcher

Thanks!

DJuego

« Last Edit: 24 April 2021, 14:37:31 by DJuego »

*

texus

  • *****
  • 1612
    • View Profile
    • Texus's Blog
Re: tgui::FileDialog within a pop-up window.
« Reply #1 on: 23 April 2021, 22:23:45 »
TGUI is probably not the best option for such case. The FileDialog widget was added in cases where you basically wouldn't want to have an external window.

You might be better of using something like https://sourceforge.net/projects/tinyfiledialogs/ or https://github.com/samhocevar/portable-file-dialogs

Re: tgui::FileDialog within a pop-up window.
« Reply #2 on: 24 April 2021, 13:53:18 »
Thank you very much for your quick response!  :D

First of all thank you for the great effort you have put into TGUI. It is a GUI that I love! I recently upgraded to 0.9.1 (I actually use the "master") and it just keeps getting better and better. I am also delighted with the gui-builder. It helps a lot!!  :-*

I suspected it. I understand this TGUI limitation. I had several alternatives in mind but the one you have proposed is by far the best. I have tested portable-file-dialogs and it does perfectly what I wanted. Also, I like its simplicity and header-only nature. Thanks for that too!

DJuego
« Last Edit: 25 April 2021, 21:53:53 by DJuego »