Use of FileDialogWindow : getting the result

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Use of FileDialogWindow : getting the result

Thomas Bany
Hi !

I'm trying to fit a GUI in full screen mode, that uses a FileDialogWindow at some point.

I'm able to recover the answer from FileDialogWindow when I it is opened modaly. However, since I would like to open it fullscreen with the selector #openFullScreen, the calling block does not wait and immediatly gets a nil answer.

I was thinking of hacking my way out of it and subclassing FileDialogWindow to overide a method somewhere to call a block of my choosing but I really does not feel right.

Has anyone a clue ?

Thanks in advance for your time !

Thomas.
Reply | Threaded
Open this post in threaded view
|

Re: Use of FileDialogWindow : getting the result

Thomas Bany
Okey so I only needed to select a directory and needed to shrink the size of the widget anyway. So I opted for the sublass solution, got rid of the file pane and added an action block on the #ok method.


2014-04-07 16:12 GMT+02:00 Thomas Bany <[hidden email]>:
Hi !

I'm trying to fit a GUI in full screen mode, that uses a FileDialogWindow at some point.

I'm able to recover the answer from FileDialogWindow when I it is opened modaly. However, since I would like to open it fullscreen with the selector #openFullScreen, the calling block does not wait and immediatly gets a nil answer.

I was thinking of hacking my way out of it and subclassing FileDialogWindow to overide a method somewhere to call a block of my choosing but I really does not feel right.

Has anyone a clue ?

Thanks in advance for your time !

Thomas.

Reply | Threaded
Open this post in threaded view
|

Re: Use of FileDialogWindow : getting the result

Nicolai Hess
2014-04-07 17:58 GMT+02:00 Thomas Bany <[hidden email]>:
Okey so I only needed to select a directory and needed to shrink the size of the widget anyway. So I opted for the sublass solution, got rid of the file pane and added an action block on the #ok method.


2014-04-07 16:12 GMT+02:00 Thomas Bany <[hidden email]>:

Hi !

I'm trying to fit a GUI in full screen mode, that uses a FileDialogWindow at some point.

I'm able to recover the answer from FileDialogWindow when I it is opened modaly. However, since I would like to open it fullscreen with the selector #openFullScreen, the calling block does not wait and immediatly gets a nil answer.

I was thinking of hacking my way out of it and subclassing FileDialogWindow to overide a method somewhere to call a block of my choosing but I really does not feel right.

Has anyone a clue ?

Thanks in advance for your time !

Thomas.



Why do you need a dialog window in fullscreen size, if it is modal anyway ?

Have you tried FileList (it isn't fullscreen, and doesn't look as nice as
the FileDialogWindow, but maybe it is easier to hack around with.)

FileList modalFolderSelector: FileSystem disk workingDirectory

regards
nicolai

Reply | Threaded
Open this post in threaded view
|

Re: Use of FileDialogWindow : getting the result

Thomas Bany
Why do you need a dialog window in fullscreen size, if it is modal anyway ?

Actualy, I need it to be fullscreen. I mentioned a dialog window because I was only able to retrieve the answer this way but I don't want a dialog window :)
 
Have you tried FileList (it isn't fullscreen, and doesn't look as nice as
the FileDialogWindow, but maybe it is easier to hack around with.)

FileList modalFolderSelector: FileSystem disk workingDirectory

Well I think it looks better than my shrank version, I will look into it !