Handle mulitiple Themed Tool Strip


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Adding to Dustin remark, you can have one ToolStripmenu to handle all your panels and simply set the button's visible property based on the panel manager being activated which would be the same place to change or reassign the form's primary business object, but if you prefer to have one menu per BO, then that will be more difficult since you will have to manually handle the BO events to set all the menu buttons. Just give it a try, it will work! Hehe

Edhy Rijo

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Yes. As Edhy has already answered in a previous thread of yours, you can change the PrimaryBusinessObject of the form in code whenever your panel manager page changes.  Here is Edhy's response in that thread in case you missed it:

----------------------

I Vikas,

If you want to go this route, then in the PanelManager.PageActivated event set the Form.PrimaryBusinessObject to the corresponding BO. Something like this may work, I have not tested


Private Sub PanelManager1_PageActivated(ByVal e As MicroFour.StrataFrame.UI.Windows.Forms.PanelPageEventArgs) Handles PanelManager1.PageActivated
Select Case Me.PanelManager1.CurrentPage.Name
Case Is = PageCustomers.Name
Me.PrimaryBusinessObject = Me.CustomersBO1

Case Is = PageOrders.Name
Me.PrimaryBusinessObject = Me.OrdersBO1

Case Is = PageOrderItems.Name
Me.PrimaryBusinesObject = Me.OrderItemsBO1
End Select

Vikas Gupta
Vikas Gupta
StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)StrataFrame Beginner (23 reputation)
Group: Forum Members
Posts: 19, Visits: 60
we are usingThemedToolStrip with 3 buttons,
a PanelManager with 3 pages(Page1,Page2,Page3),each page hav own BuinessObject and MaintenanceFormToolStrip.
it switches. When you click button1, 2 n 3

we required again another ThemedToolStrip2 Contain 4 Button n PanelManager with 4 Pages On Page1 .

All 4 pages hav different-2 own BuinessObject and

MaintenanceFormToolStrip.

is it possible??

MaintenanceFormToolStrip

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search