I want to add some custom buttons to the maintenance toolbar in the maintenance form


I want to add some custom buttons to the maintenance toolbar in the...
Author
Message
Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Hi All?

This one should be fairly straight-forward Smile

Thanks!

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
This would have to be a sublass to call the base like this.  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.  However, if you are on a form and want to call the base for a button on the form, that would not work.  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.

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.  VFP was really bad about enforcing encapsulation...we like to refer to VFP as "decapsulated" BigGrin  When we go back and look at old code we always laugh at what we had done...now being "pure and clean" Tongue

Marcia G Akins
Marcia G Akins
Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)Advanced StrataFrame User (698 reputation)
Group: StrataFrame Users
Posts: 322, Visits: 529
Trent L. Taylor (09/24/2008)
This would have to be a sublass to call the base like this.  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.  However, if you are on a form and want to call the base for a button on the form, that would not work.  All base methods (unless exclicitly exposed) will be protected

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 Tongue ?

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