Posted 19 years ago by Grut
Avatar
Hi everybody,

Each syntaxEditor in my application are in a MDIChild form.
So I use a event to tell to my main Form that the selection has changed and then I upgrade the panel of the statut bar to display cursor position.

But when doing that, the selection is very very low !

I tried also to directly set the text of the panel by using the MDIParent but it's worse I think !

Does that mean that the syntaxEditor must be in the same form than every other controls ??

Does anyone have already done such a thing ?

Thanks a lot for those will respond <IMG SRC="smile.gif" border="0">

[ 12-02-2004: Message edited by: Grut ]

Comments (4)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
I'm a little confused by what you're describing. Do you mean that the status bar is not visible on your parent Form? If you have a DockStyle.Bottom on it, I would think that it would work.


Actipro Software Support

Posted 19 years ago by Grut
Avatar
No no, I'll try to explain :

I want to display the current line number in the status bar, like in your test application.
But the syntaxEditor is in a MDIChild (so no in the main Form).

So I use an event to tell to the main form that the selection has changed in the syntaxEditor.
The selection_changed() method call a event which is got by the main Form, so I can upgrade my status bar.

I works with this method, the statusBar is upgraded fine. But the repaint of the selection in the syntaxEditor becomes very very slow...

I also try to make something like :
((mainForm)this.MDIParent).statusBar.Bars[0].Text = currentLine, it also works but it's the same for the repainting, very slow.

So How can I tell to another form that the selection of the syntaxEditor has changed without this repaint problem ?

I can't make a little app th show you if you still don't understand <IMG SRC="smile.gif" border="0">

[ 12-02-2004: Message edited by: Grut ]
Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
So you're saying that the SyntaxEditor control's repainting becomes very slow when you have another MDI parent form attaching to its events? That's odd. If you can duplicate it in a small sample app, go ahead and send it.


Actipro Software Support

Posted 19 years ago by Grut
Avatar
Ok sorry, i found the problem ...
It is the repaint of my statusBar (a special component) that makes the repaint of the syntaxEditor slow ...

Thanks for you help and sorry again.
The latest build of this product (v24.1.0) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.