StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
Inherited UI - DevExpress TextEdit
Inherited UI - DevExpress TextEdit
Post Reply
Like
0
Inherited UI - DevExpress TextEdit
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Chris Diesel
Chris Diesel
posted 12 Years Ago
ANSWER
Topic Details
Share Topic
Group: StrataFrame Users
Posts: 74,
Visits: 300
If I drop a DevExpress TextEdit control on a form, I have some properties in the WinForm Designer that show up under the Misc category having to do with Spell Checking (CanCheckText, ShowSpellCheckMenu, SpellCheckerOptions). But, when I drop the TextEdit from StrataFrame's inherited UI library, I don't have these properties and thus the "Check Spelling" is missing from the context menu when running the app. Can someone point me in the right direction to resolve this?
Thanks!
Reply
Like
0
Chris Diesel
Chris Diesel
posted 12 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 74,
Visits: 300
Anyone???
Why would Strataframe's TextEdit that inherits DevExpress' TextEdit not have the same Spell Checker properties?
Reply
Like
0
StrataFrame Team
S
StrataFrame Team
posted 12 Years Ago
ANSWER
Post Details
Share Post
S
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
Sorry, Chris, I didn't post on this yesterday.
The SF DevExpress TextEdit should certainly be inheriting from the same control, but there's a possibility you might need to change the references in the SF inherited DevExpress project and rebuild it. I you have more than one version of DevExpress installed, it's possible that you could be referencing a different version in your project than the SF one is referencing.
Are the properties there in code?
To make sure that the SF one is inheriting the proper version, you can drop one of each on your form, run it, and then at a breakpoint, check the following in the watch window:
1) this.sfControl.GetType().BaseType.AssemblyQualifiedName
2) this.dxControl.GetType().AssemblyQualifiedName
These should be the same values, version and all.
Reply
Like
0
Chris Diesel
Chris Diesel
posted 12 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 74,
Visits: 300
Thanks for the ideas! I'll check it out and get back to you.
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 12 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi Chris, Ben,
I am also using DevExpress controls, even though, I am not using the SpellChecker, but I was able to duplicate Chris issue, so the inherited SF classes are not taken into consideration by the SpellChecker to add the properties needed to use it.
I believe you would need to manually register those inheritedTextEdit controls to the SpellChecker. Please see this link
http://www.devexpress.com/Support/Center/Question/Details/Q402676
and
http://documentation.devexpress.com/#WindowsForms/CustomDocument2995
Edhy Rijo
Edited
12 Years Ago by
Edhy Rijo
Reply
Like
0
Chris Diesel
Chris Diesel
posted 12 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 74,
Visits: 300
Needed to register the class with DevExpress' spell checker:
using DevExpress.XtraSpellChecker.Native;
SpellCheckTextControllersManager.Default.RegisterClass(typeof(MicroFour.StrataFrame.UI.Windows.Forms.DevEx.TextEdit), typeof(SimpleTextEditTextController)); SpellCheckTextBoxBaseFinderManager.Default.RegisterClass(typeof(MicroFour.StrataFrame.UI.Windows.Forms.DevEx.TextEdit), typeof(TextEditTextBoxFinder));
InitializeComponent();
Reply
Like
0
StrataFrame Team
S
StrataFrame Team
posted 12 Years Ago
ANSWER
Post Details
Share Post
S
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
Well, I'm glad Edhy knew what he was talking about
Reply
Like
0
Chris Diesel
Chris Diesel
posted 12 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Users
Posts: 74,
Visits: 300
Too bad I didn't refresh my browser 4 hours ago...
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 12 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi Chris,
Glad you made it work!!!
Edhy Rijo
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search