Wait Cursor Question
Pasquale via Foxgui-users <[email protected]> Fri, 12 May 2023 11:49:12 +0000
| Newsgroups | gmane.comp.lib.fox-toolkit.user |
|---|---|
| Message-ID | <CfbZQ7hJJ9VdSxxtX1NDa1mMhQCuFFBiIWDdCc8ssVjA19U5HU53tCcV4Ufm1r35rHV17pgbrCWEGjsvQ9d0NYnNCTJjvuM1F-aA7lJmkIc=@protonmail.com> |
I have an FXTable with "SEL_SELECTED" which calls a function to display an image. For unsupported images, such as HEIC/HEIF, I convert them to PNG. This can take a little bit for large images. I want to display the wait cursor and use this->getApp()->beginWaitCursor() at the start of my function, but it never activates. It stays a regular mouse and the gui is frozen until the image conversion and loading happens. I use the beginWaitCursor() and endWaitCursor() in other places throughout my program and they always work, but for some reason, I can't get it to work for the function associated with SEL_SELECTED. I'm assuming it is something to do with the gui locking before my call to beginWaitCursor, but I can't figure out where to put the wait cursor call or how to force the wait cursor switch before the gui locks. The status bar also doesn't update which why I assume the gui is locking before these calls. Any help or insight would be greatly appreciated. Pasquale _______________________________________________ Foxgui-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/foxgui-users