StrataFrame Forum

Using DevExpress controls in SF...

http://forum.strataframe.net/Topic15263.aspx

By Edhy Rijo - 3/31/2008

Hi,

I want to start using some DevEx controls in my SF project like the RibbonControl, XTraNavBar and XTraTreeList, for the XTraNavBar and XTraTreeList I would like to bind some data.

Is there any special procedure to start using this controls in a SF project? 

By Trent L. Taylor - 3/31/2008

Nope...drop and go Smile
By Edhy Rijo - 3/31/2008

Trent,

One more thing, DevEx has a RibbonForm class which is very nice and may fit some of my needs, this form inherits from a DevExpress class not SF ...

Inherits DevExpress.XtraBars.Ribbon.RibbonForm

All SF forms inherits from MicroFour.StrataFrame.UI.Windows.Forms.StandardForm, so how can I have the best of both worlds, the DevEx RibbonForm that will work with SF Security, Localization, etc.?

By Trent L. Taylor - 4/1/2008

You can refer to this post about creating your own SF base form.  Keep in mind that this could inadvertantly set you adrift if we make a change to the BaseForm class.  But this will get you want you want: http://forum.strataframe.net/FindPost14003.aspx
By Edhy Rijo - 4/1/2008

Hi Trent,

Trent L. Taylor (04/01/2008)
Keep in mind that this could inadvertantly set you adrift if we make a change to the BaseForm class.

Can you be more specific in this comment, I am not looking for trouble, just nice solutions Tongue

By Trent L. Taylor - 4/1/2008

Well, basically you are creating your own BaseForm and cutting out the code from our BaseForm.  In that sample, I just took all of the code in the BaseForm class, created another class that inherited from the XtraForm, then added our code in that class.  So at this point you are not inheriting anything from the actual SF class....the code has just been copied over (or as we like to say "backed up" BigGrin).  So if we make a change to the BaseForm, you would not be inheriting that change.  You would have to go over and copy that code out and update your base form.
By Juan Carlos Pazos - 9/18/2008

Hi



I'm playing too with the Ribbon, just do the same that you do in your sample app. and all works fine.



I note that the sample in MyBaseForm.vb the code is from 2005, it says "' © Copyright, 2005 MicroFour, Inc., All rights reserved."



I look for the corresponding code of the BaseForm from the last SF version, and if I put that code replacinng the one in the sample it always give me an error in this line



Implements MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl



Is safly use the code from the sample?



If not, can you tell me exactly wich code should I look for?



Regards
By Juan Carlos Pazos - 9/22/2008

Hi Trent



Any comments about the last post.



Regards
By Trent L. Taylor - 9/22/2008

I really don't understand what you are asking or what your problem is here...sorry Ermm  You will need to elaborate.
By Juan Carlos Pazos - 9/22/2008

Hi Trent



ll, basically you are creating your own BaseForm and cutting out the code from our BaseForm. In that sample, I just took all of the code in the BaseForm class, created another class that inherited from the XtraForm, then added our code in that class. So at this point you are not inheriting anything from the actual SF class....the code has just been copied over (or as we like to say "backed up" [BigGrin] ). So if we make a change to the BaseForm, you would not be inheriting that change. You would have to go over and copy that code out and update your base form.




I will try to do this more clear. I download and check the sample you post for use the XtraRibbon form. Then I copy the forms to my own application and implement a Ribbon in my main form.



Everthing works fine, but I have a small concern:



The sample code in MyBaseForm.vb has a copyright leyend form you that says: "' © Copyright, 2005 MicroFour, Inc., All rights reserved."



You post that if you change something in the BaseForm then as the code is not inherited we have to copy the code and update the base form.



I look for the BaseForm in SF last version, the one I found has a more recent Copyright and if a copy all that code and put in the form of the sample gives me an error in this line:



Implements MicroFour.StrataFrame.UI.Windows.Forms.IContainerControl



As I first test the sample code and works, I use the code of the sample. My questions is how safe is use that code at this point. And what file is BaseForm.vb in the SF source code, and what modifications must I do in order to replace MyBaseForm.vb just as you do in the sample.



Hope this time has more sense to you.



Regards
By Rainer Kempf, RK - 9/30/2008

Hello



I try these Example all i read in this thread but i am

still not able to run the code based on DevExpress RibbonForm.



Seems i am too stupid for this simple task.



Can anyone send me maybe sample project to setup

this problem.



Thank you very much



Rainer