On 5 March 2023, at 08:32, Manolo <manol...@gmail.com> wrote:
>
>
>Hi Phil,
Thanks Manolo
>
>OPTION_OPEN_GL has no effect whatsoever on FLTK file choosers.
>
>OPTION_FNFC_USES_ZENITY has effect only under the Plasma desktop, which I presume you don't use on the Pi.
>
>The effect of OPTION_USE_KDIALOG is to determine whether FLTK uses command "kdialog" to create file chooser dialog windows. Could you, please, type in a terminal window this command:
>
> kdialog --getopenfilename
>
>This should open a file chooser window where you can select a file and then close the dialog, the name of the selected file should then appear in the terminal. Please report here the outcome of this experiment.
This opened a browser ok.
>
>If command kdialog runs OK on the Pi, then it should also run when piloted by FLTK. May be FLTK blocks because the kdialog window is hidden in the display behind the main FLTK window or somewhere where you didn't look ? another display? Please report here what you see about this topic.
What I found was that I was opening the file browser before I showed the main window. If the main window was visible when I opened the browser it worked ok. I seem to have a problem with next one which is a directory browser, but I am still working on this.
Thanks Phil.
FLTK assumes that if command kdialog is available on the system, its procedure to create a file chooser window with command kdialog and to read the output of this command runs successfully. If that doesn't hold for the Pi, we should do something to fix that.
>
>Le samedi 4 mars 2023 à 22:44:31 UTC+1, pvr...@btinternet.com a écrit :
>
>A couple of weeks back I successfully installed FLTK on my raspberry pi.
>
>However I have now started to port my main application from Windows to the Pi. Apart from a few Windows anomalies (sockets and serial ports) I ran into a problem with native File Browser.
>
>I originally install FLTK with Cmake option -DOPTION_OPEN_GL=OFF. When i ran my app it opened a File browser and then locked up.Using gdb it appears too be in the method Fl_Kdialog_Native_File_Browser_Driver::show().
>
>I scanned the documentation and saw the notes under Fl_Native_File_Browser. I didn't really understand what the various flavours of Linux File browser interface are all about, but I tried setting Fl::option(OPTION_FNFC_USES_ZENITY,true) and this did not make any difference.
>
>I bit the bullet and re-cloned the fltk git tonight., and rebuilt adding -DOPTION_USE_KDIALOG=OFF and now it no longer locks up.
>
>I am using the default OS as supplied with the raspberry Pi 4B, but at all au-fait with the various flavours of windows managers that are available. Is what I am doing reasonable and is there a problem with the default behaviour I encountered.
>
>Regards Phil.
>
>--
>You received this message because you are subscribed to a topic in the Google Groups "fltk.general" group.
>To unsubscribe from this topic, visit https://groups.google.com/d/topic/fltkgeneral/PzEfhsd6no4/unsubscribe.
>To unsubscribe from this group and all its topics, send an email to fltkgeneral...@googlegroups.com.