malisipi/mui

Status Bar and Tool Bar Info

Wajinn opened this issue ยท 5 comments

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

  • 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.

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.

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.

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.

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