if(ed)
{
eolMode = ed->GetControl()->GetEOLMode();
canUndo = ed->GetControl()->CanUndo();
canRedo = ed->GetControl()->CanRedo();
hasSel = (ed->GetControl()->GetSelectionStart() != ed->GetControl()->GetSelectionEnd());
#ifdef __WXGTK__
canPaste = true;
#else
canPaste = ed->GetControl()->CanPaste();
#endif
}
mbar->Enable(idEditUndo, ed && canUndo);
mbar->Enable(idEditRedo, ed && canRedo);
mbar->Enable(idEditCut, ed && hasSel);
mbar->Enable(idEditCopy, ed && hasSel);
mbar->Enable(idEditPaste, ed && canPaste);
I'm having the same problem. But even worse... my C::B is slow all the time. wyoEditor has some bug in it. But I don't know if someone will correct it? I can't work like this... I can't even see my cursor while I'm moving it... :(
The problem I described above occurs in RC2. Yesterday I upgraded to SVN build 2211, but the problem is still there. Now I can see the mouse pointer while moving in editor, but typing is terribly slow...
I'm on Linux by the way. On Windows everything is fine (I have tried it in vmware). I have the same problem in wyoEditor too.
The problem I described above occurs in RC2. Yesterday I upgraded to SVN build 2211, but the problem is still there. Now I can see the mouse pointer while moving in editor, but typing is terribly slow...
I'm on Linux by the way. On Windows everything is fine (I have tried it in vmware). I have the same problem in wyoEditor too.
Try to de-activate some plugins or all and see if it works better. In your system work all other applications normally (fast)?
Best wishes,
Michael
I've tested Scite and Notepad2 which both use Scintilla and it gets realy messy on files > 1MB.
For example i opened a 3MB file in Notepad2 and Scintilla popped up a warning box "Are you shure to open this large file"
After clicking yes it took 20 seconds to open the file.
Hmmm then it's probably something bad in my computer then when you guys don't have that lag.
I have a similar problem on my Slackware Linux. Also with all plugins disabled. Tried it with, KDE and fluxbox - the same result on both. Other apps work fine (like SciTE) so it must be a C::B problem :( I need to use Vim again instead of my favourite IDE
My PC is Sempron 2800+, 1GB RAM, GF6600
Which C::B revision are you using? If RC2, try to build C::B from the SVN sources.
Anyway, I am not sure that it is a C::B problem. I use C::B on Ubuntu and my PC is Pentium III 500MHz with 500MB RAM. C::B is slow as any other applications I use. IMHO your problem is not dependent on C::B (not directly anyway).
SirMike: could you try to profile (http://en.wikipedia.org/wiki/Profiler_%28computer_science%29) Code::Blocks?