AlloSphere-Research-Group / allolib

Library for interactive multimedia application development
BSD 3-Clause "New" or "Revised" License
36 stars 15 forks source link

`examples/ui/dialog.cpp` | unexpected behaviour and crash #12

Closed kybr closed 5 years ago

kybr commented 5 years ago

Judging just from the name, dialog.cpp (and al::Dialog), I expect this example and this class to open an OS-native window in order to ask something of the user (e.g., select a file, select an output folder, etc.). Instead, a second window appears with a flashing background and an ImGui debug window within it---How is that a "dialog"? What's more, when I trigger the "dialog" a second time, the example crashes. ?

I'm using macOS 10.14.2 Beta (18C31g).

This example does not have any comments or documentation. What is it supposed to show? How is an al::Dialog supposed to be used? What's it for?

mantaraya36 commented 5 years ago

This is a failed attempt, and should be completed or removed.... Sorry for the confusion. I'll look into that tomorrow. I initially wanted to have a separate window but that proved problematic, so I tried a separate panel which proved problematic too...

On Sun, Nov 4, 2018 at 10:11 AM karl yerkes notifications@github.com wrote:

Judging just from the name, dialog.cpp (and al::Dialog), I expect this example and this class to open an OS-native window in order to ask something of the user (e.g., select a file, select an output folder, etc.). Instead, a second window appears with a flashing background and an ImGui debug window within it---How is that a "dialog"? What's more, when I trigger the "dialog" a second time, the example crashes. ?

I'm using macOS 10.14.2 Beta (18C31g).

This example does not have any comments or documentation. What is it supposed to show? How is an al::Dialog supposed to be used? What's it for?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/AlloSphere-Research-Group/allolib/issues/12, or mute the thread https://github.com/notifications/unsubscribe-auth/AAatx2nFBvc6aUemFX2JXUbL8pE5XyFBks5ury2_gaJpZM4YNbeX .

mantaraya36 commented 5 years ago

Made mutiple fixes and there is a now a basic working dialog that opens a new window. Only basic questions and messages for now but could be expanded to support input. Currently crashes if more than one dialog is opened, but works OK for single dialog. ee6a31deb4034706ef35d218cdc3c4493cc21209