StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



StrataFlix: Copying ActionLinkMenu Items to...Expand / Collapse
Author
Message
Posted 08/04/2008 2:39:58 PM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 4:05:52 PM
Posts: 760, Visits: 3,282
Hi,

Implementing the ActionLinkMenu items used in StrataFlix, there are some common actions items used in most forms, is there a way to copy these items to new forms, or should I add the items to a template form class I created?

So far, when I copy one ActionLinkMenu item to the new form, it is not added to the form's ActionItems collection, only ActionLinkMenu items created from the Property page will be manage trough the form's ActionItems collection property.

 
Post #18313
Posted 08/04/2008 3:51:11 PM
StrataFrame Team Member

StrataFrame Team Member

Group: StrataFrame Users
Last Login: 12/23/2008 11:10:40 AM
Posts: 232, Visits: 511
I'd recommend adding those common items to the base form rather than copying them or adding them to a template, actually.

Technically the action is a component, so when you copy it over it won't be added as an item within the form's action collection. To do it manually, you have to go into the form's designer file and add a Me.ActionItems.Add(yourActionItem) call once you copy the action across.

Adding them to a template would work, but the cleanest approach would be to add those common items to your base form and then add a property to turn them on or off when needed. Check out the code of the StrataFlix ApplicationBaseForm to see how to do that. We do it with the Save and Undo actions in there

Hope it helps
Post #18315
Posted 08/04/2008 4:02:55 PM
Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: Today @ 4:05:52 PM
Posts: 760, Visits: 3,282
Thanks Dustin, will do it at the base form level.  So far I tested with the template which is very nice, but to be safe will check the base form route with a flag property to turn it On/Off.

 
Post #18317
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:04pm

Powered by InstantForum.NET v4.1.4 © 2009
Execution: 0.109. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.