Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Platform agnostic common dialogs support #189

Closed
a740g opened this issue Sep 22, 2022 · 1 comment · Fixed by #216
Closed

Platform agnostic common dialogs support #189

a740g opened this issue Sep 22, 2022 · 1 comment · Fixed by #216
Assignees
Labels
enhancement New feature or request

Comments

@a740g
Copy link
Contributor

a740g commented Sep 22, 2022

We should provide a way to support common dialogs (like MessageBox, InputBox, PasswordBox, ColorPicker, OpenFileDialog, SaveFileDialog, SelectFolderDialog, Tray-popup, Notification Beep) in a platform agnostic manner.

libqb.cpp already has rudimentary support for MessageBox & Alert. However, these can be significantly improved and extended.

From my observations most folks resort to calling native OS libraries for these functionalities which ties the code to a particular platform. Also, supporting common dialogs for multiple platforms on the BASIC side is rather complicated and complex.

My recommendation is to use a tried, tested and compact library like tiny file dialogs.
Using this we can then have VB-style dialog functions like _GetOpenFilename, _MsgBox, _InputBox, etc...

@ghost
Copy link

ghost commented Sep 22, 2022

I like this idea. I don't typically do cross-platform code so when I do dialogs they always are platform specific. However, I could cut down on BAS code by having an internal dialog function like this.

@mkilgore mkilgore added this to Backlog in Backlog/In Progress Sep 24, 2022
@a740g a740g added the enhancement New feature or request label Oct 4, 2022
@a740g a740g self-assigned this Oct 23, 2022
a740g added a commit that referenced this issue Oct 25, 2022
This implements cross-platform common dialogs for QB64-PE (issue #189)
Backlog/In Progress automation moved this from Backlog to Done Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant