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

Status Bar and Tool Bar Info #7

Closed
Wajinn opened this issue Dec 2, 2022 · 5 comments
Closed

Status Bar and Tool Bar Info #7

Wajinn opened this issue Dec 2, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@Wajinn
Copy link

Wajinn commented Dec 2, 2022

Quite useful types of bars for GUIs, that noticed wasn't on your todo list. Maybe it should be considered.

@malisipi
Copy link
Owner

malisipi commented Dec 2, 2022

  • Status Bar is already inside to-do list inside widget section.
  • Tool Bar is supported with a complex api. Cells.v could be good example for that. But i want to make dev-friendly api.

@Wajinn
Copy link
Author

Wajinn commented Dec 2, 2022

Status Bar

Oops, and so it is. Don't know how I overlooked that, but glad it is there.

Tool Bar is supported with a complex api.

And a simple implementation would likely be fine, from the perspective of probably a lot of users. Also good to see that you are thinking about it.

@Wajinn Wajinn changed the title Suggest Creation of Status Bar and Tool Bar Status Bar and Tool Bar Status & Info Dec 2, 2022
@Wajinn Wajinn changed the title Status Bar and Tool Bar Status & Info Status Bar and Tool Bar Info Dec 2, 2022
@malisipi malisipi added the enhancement New feature or request label Dec 4, 2022
@Wajinn
Copy link
Author

Wajinn commented Dec 8, 2022

Interestingly and to add more info, a user can create a quasi status and tool bar by using y_offset or yn_offset with emojis, as is shown with the mui notepad example. Instead of the y_offset, in the future, it would be an actual bar of some type and functionality.

malisipi added a commit that referenced this issue Feb 7, 2023
@malisipi
Copy link
Owner

malisipi commented Feb 7, 2023

You can use statusbar and toolbar with latest commit.

  1. Set height of statusbar/toolbar
    mut app:=m.create(title:"MUI Examples", ... toolbar:25, statusbar:25)

  2. Add widgets
    app.button(id:"open", x:0, y:0, ...frame:"@toolbar") for toolbar
    app.button(id:"open", x:0, y:0, ...frame:"@statusbar") for statusbar

For full example just browse notepad.v.

@Wajinn
Copy link
Author

Wajinn commented Feb 10, 2023

Awesome! It integrates quite nicely. Well, yet another accomplished. I guess we can close this one too.

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
None yet
Development

No branches or pull requests

2 participants