﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » WinForms (How do I?)  » I want to add some custom buttons to the maintenance toolbar in the maintenance form</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 14:18:50 GMT</lastBuildDate><ttl>20</ttl><item><title>I want to add some custom buttons to the maintenance toolbar in the maintenance form</title><link>http://forum.strataframe.net/FindPost19533.aspx</link><description>Hi All?&lt;/P&gt;&lt;P&gt;This one should be fairly straight-forward :)&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Sun, 28 Sep 2008 14:47:19 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I want to add some custom buttons to the maintenance toolbar in the maintenance form</title><link>http://forum.strataframe.net/FindPost19803.aspx</link><description>[quote][b]Trent L. Taylor (09/24/2008)[/b][hr]This would have to be a sublass to call the base like this.&amp;nbsp; If you are within a form and wanting to call the base.MemberName of a method on the form from which you are inherited it would work fine.&amp;nbsp; However, if you are on a form and want to call the base for a button on the form, that would not work.&amp;nbsp; All base methods (unless exclicitly exposed) will be protected [/quote]&lt;/P&gt;&lt;P&gt;If I understand you correctly, this would be a consequence of the fact that .NET does not implement a strong containership model. Or am I on Mars :P ?</description><pubDate>Sun, 28 Sep 2008 14:47:19 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I want to add some custom buttons to the maintenance toolbar in the maintenance form</title><link>http://forum.strataframe.net/FindPost19659.aspx</link><description>This would have to be a sublass to call the base like this.&amp;nbsp; If you are within a form and wanting to call the base.MemberName of a method on the form from which you are inherited it would work fine.&amp;nbsp; However, if you are on a form and want to call the base for a button on the form, that would not work.&amp;nbsp; All base methods (unless exclicitly exposed) will be protected which would prevent you from doing this...so you would have to subclass in this case.&lt;/P&gt;&lt;P&gt;I may not be entirley sure of what you are trying to accomplish, but in regards to inheritance and calling a base member, this is how encapsulation and .NET are designed...as they should be.&amp;nbsp; VFP was really bad about enforcing encapsulation...we like to refer to VFP as "decapsulated" :D&amp;nbsp; When we go back and look at old code we always laugh at what we had done...now being "pure and clean" :P</description><pubDate>Wed, 24 Sep 2008 09:22:35 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: I want to add some custom buttons to the maintenance toolbar in the maintenance form</title><link>http://forum.strataframe.net/FindPost19628.aspx</link><description>[quote][b]Trent L. Taylor (09/22/2008)[/b][hr]Well, if you want to control the event order then you will want to subclass the item and the override the ItemClicked.&amp;nbsp; In this case you would call base.MemberName.&lt;P&gt;[codesnippet]base.MemberName[/codesnippet]&lt;/P&gt;&lt;P&gt;You will want to do this when overriding an On method so that you can control whether your code is executed before or after other event handlers.&amp;nbsp;[/quote]&lt;P&gt;Do I have to subclass the item? Can't I just put this code in the form instance?</description><pubDate>Tue, 23 Sep 2008 09:44:58 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item><item><title>RE: I want to add some custom buttons to the maintenance toolbar in the maintenance form</title><link>http://forum.strataframe.net/FindPost19590.aspx</link><description>Well, if you want to control the event order then you will want to subclass the item and the override the ItemClicked.&amp;nbsp; In this case you would call base.MemberName.&lt;/P&gt;&lt;P&gt;[codesnippet]base.MemberName[/codesnippet]&lt;/P&gt;&lt;P&gt;You will want to do this when overriding an On method so that you can control whether your code is executed before or after other event handlers.&amp;nbsp;</description><pubDate>Mon, 22 Sep 2008 10:53:39 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: I want to add some custom buttons to the maintenance toolbar in the maintenance form</title><link>http://forum.strataframe.net/FindPost19544.aspx</link><description>Well, here I am talking to myself again :P I tried the obvious and created an event handler for the toolbar's ItemClicked event and it worked. The thing that I was concerned about was if there was code up the inheritance hierarchy, I did not want to over-ride it. However, I tried to step into it, and apparently there was no code up the hierarchy. So I am curious, where is the magic code that handles when the add, edit and other buttons in the toolbar are clicked. &lt;/P&gt;&lt;P&gt;Also, in VFP I know that I can call up the inheritance hierarchy by using DODEFAULT(). What is the equivalent was to do this in C#?&lt;/P&gt;&lt;P&gt;Thanks</description><pubDate>Fri, 19 Sep 2008 10:24:06 GMT</pubDate><dc:creator>Marcia G Akins</dc:creator></item></channel></rss>