ReadOnly on inherited form // ThemedXXXStrip when is dropped on a inheritable form...


Author
Message
Fabian R Silva, -
Fabian R Silva, -
StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)
Group: StrataFrame Users
Posts: 153, Visits: 1.2K
Well, I have "playing" with controls and containers and when I try to make a generic ABM to be inherited and I see that the themedToolStrip / themedStatusStrip / xxxxStrip can´t be edited on the form that inherited the base form with that xxxxStrip, it´s a .Net behavior about collection stuff (If I was understand correctly some msdn googled pages).



I try to avoid this, in a test, I try to set the Browsedialog property of the themedMaintenanceToolstrip, to acoomplish this I finish with:



I created a "CustomthemedMaintenanceToolstrip" SF User Control, I dropped a themedMaintenanceToolstrip, I put a Public Property "BrowseDialog" and in get/set I put the private themedMaintenanceToolstrip



then when I drop my "CustomthemedMaintenanceToolstrip" on my base form, on the form that inherited of this base form I can set the "BrowseDialog" property of my "CustomthemedMaintenanceToolstrip" without problems.... with this approach I have to create some properties to edit each control of the themedMaintenanceToolstrip.



I not see the SF source code yet to explore how the themedMaintenanceToolstrip was created, but I not sure if I have the brain to understand it yet :/



I think that my question is a newbie one but I not sure about a lot of stuff [comin´ to my mind the GetType stuff to launch a form... aprox 8 hours to understand it and type.GetType w00t] and better I question now that I creating some stuff that some time ago I see that I created all of my stuff on a wrong way :/



It's the better way? it´s ok? thanks for the responses! Smile



pd: I try to be clear on my questions but I´m speak in spanish, sorry for my grammar misses and mistakes
Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
No, Fabian, you are doing it right.  In order to change the properties on an inherited control, you will have to set those properties through code.  So, if you inherit a form that already has a toolstrip, and you want to add new buttons to that toolstrip, you will need to create a method to add the new buttons and call that method.  You won't be able to add the new buttons through the designer.

So, yes, you're doing it correctly.

Fabian R Silva, -
Fabian R Silva, -
StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)StrataFrame User (317 reputation)
Group: StrataFrame Users
Posts: 153, Visits: 1.2K
thank you so much Smile

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
No problem, glad I could help.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search