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

Add function fplWindowDialog() for all platforms #82

Open
f1nalspace opened this issue Mar 6, 2021 · 0 comments
Open

Add function fplWindowDialog() for all platforms #82

f1nalspace opened this issue Mar 6, 2021 · 0 comments
Labels
feature New feature request win32-platform Windows aka win32 platform window-sys Window system (X11, Win32) x11-subplatform X11 window system

Comments

@f1nalspace
Copy link
Owner

f1nalspace commented Mar 6, 2021

Its nice for simple feedback to show messageboxes, so we need to add support for it.
For win32 its damn easy: MessageBox()

For X11 its a pain in the ..., because there is no such function. You have to create a new X11 window, create a label and button on it and display it. I am not sure if X11 has raw support for buttons and labels... so some sort of library are required (Gnome, KDE, etc).

References:

https://github.com/Eleobert/MessageBox-X11/blob/master/messagebox.c
https://rosettacode.org/wiki/Window_creation/X11#C

@f1nalspace f1nalspace added feature New feature request win32-platform Windows aka win32 platform window-sys Window system (X11, Win32) x11-subplatform X11 window system labels Mar 6, 2021
@f1nalspace f1nalspace changed the title Add function ShowDialog() for all platforms Add function fplWindowDialog() for all platforms Mar 14, 2021
@f1nalspace f1nalspace added this to the libfpl 0.9.7 milestone Mar 22, 2021
@f1nalspace f1nalspace modified the milestones: libfpl 0.9.7, libfpl 0.9.8 May 11, 2021
@f1nalspace f1nalspace removed this from the libfpl 0.9.8 milestone May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request win32-platform Windows aka win32 platform window-sys Window system (X11, Win32) x11-subplatform X11 window system
Projects
None yet
Development

No branches or pull requests

1 participant