Page 1 of 1

Minibar removal

PostPosted: Tue Mar 15, 2016 10:10 am
by neil.interactit
Yeah I know ... if you have a minibar, why remove it!

In this case I mean the mini-toolbar on the JiwaFinancials.Jiwa.JiwaDocumentTypesUI.MainForm form. I am inheriting this to build a popup form ...

minibar.png

I have been able to show/hide all the other controls as needed, but cannot work out how to hide the mini toolbar?

Cheers,
Neil.

Re: Minibar removal  Topic is solved

PostPosted: Tue Mar 15, 2016 10:38 am
by Scott.Pearce
It's not a mini-toolbar, it's simply a toolbar. You have a ribbon and a toolbar. There is also a "mini-toolbar" as part of the component, but we don't use that.

Anyway, to hide the toolbar you circled:

Code: Select all
UltraToolbarsManager1.Toolbars("Toolbar").Visible = True

Re: Minibar removal

PostPosted: Tue Mar 15, 2016 6:40 pm
by Mike.Sheen
Note the user can hide the toolbar themselves by right clicking the ribbon and unchecking the "Show Toolbar" checkbox. The base form will remember that preference an apply it every time the user loads the form.

I'm also curious why you chose to inherit from JiwaFinancials.Jiwa.JiwaDocumentTypesUI.MainForm - that form itself inherits from JiwaFinancials.Jiwa.JiwaApplication.ListMaintenance.UserInterface which is what I think would be more appropriate to inherit from.

Re: Minibar removal

PostPosted: Wed Mar 16, 2016 12:59 pm
by neil.interactit
Thanks Scott, nailed it.

Hi Mike ... only that UserInterface needed UserInterface<ItemType,ListType>, and looking in from the outside ItemType and ListType weren't immediately apparent, whereas MainForm seemed to work. Probably not a great reason, but unfortunately since the search feature disappeared off the Jiwa API doco, many decisions are "suck it and see" based!

Cheers,
Neil.

Re: Minibar removal

PostPosted: Wed Mar 16, 2016 4:25 pm
by Mike.Sheen
neil.interactit wrote:Hi Mike ... only that UserInterface needed UserInterface<ItemType,ListType>, and looking in from the outside ItemType and ListType weren't immediately apparent, whereas MainForm seemed to work. Probably not a great reason, but unfortunately since the search feature disappeared off the Jiwa API doco, many decisions are "suck it and see" based!


We used to have a search in the API reference? I'll look into why that's disappeared.

The Editable List Maintenance sample should help to understand how to construct these type of forms.