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

Menu Implementation #137

Open
khaf opened this issue Feb 5, 2020 · 5 comments
Open

Menu Implementation #137

khaf opened this issue Feb 5, 2020 · 5 comments

Comments

@khaf
Copy link

khaf commented Feb 5, 2020

Since menu is not implemented, how would you prefer to implement it?

Should it be implemented from the scratch, or can it be implemented via the primitives that already exist (like modal windows + frames + labels)?

@VladimirMarkelov
Copy link
Owner

I can think of two ways:

  1. I thought of adding a new attribute for controls: "floating" - this control is always skipped when calculating Window size and other controls postions and it always has absolute screen coordinates. Honestly, up to version 0.3 I had this kind of controls and there was a simple ComboBox implementation using it. But then I redesigned the library and removed this case - it made some things more complicated. Though this way needs another fix: allow a control to draw itself outside parent Window.
  2. Separate modal Window. It can be implemented as a Window with ListBox I think - in this case you get for free OnSelect by mouse and arrow keys processing. Another thing that maybe good to have: dismiss menu-window on mouse-click outside it. It may need some library changes.

@khaf
Copy link
Author

khaf commented Feb 6, 2020

I'll do a first try with the already available primitives. We'll solve problems as we go.

@jlopezr
Copy link
Contributor

jlopezr commented Dec 18, 2020

Hi! Any news on this?

@VladimirMarkelov
Copy link
Owner

Hi @jlopezr ,

I am sorry saying this, but nothing has changed. For months I have little free time, and there are no PRs as well.

@khaf
Copy link
Author

khaf commented Jan 4, 2021

Sorry I got busy and never followed up. Will update if I get to work on it later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants