U++ framework
Do not panic. Ask here before giving up.

Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » mouse wheel, skipping )]}" chars
Re: mouse wheel, skipping )]}" chars [message #44074 is a reply to message #43995] Mon, 22 December 2014 17:49 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
smxxms wrote on Wed, 10 December 2014 05:54
Maybe i am not aware of these in ide,
but i find them quite usefull - especially with so little piece of code:

>>+=----------
mousewheel, numLinesToScroll read from system:
at Assist.cpp void AssistEditor::MouseWheel(Point p, int zdelta, dword keyflags)
int slines;
SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, &slines, 0);
...
CodeEditor::MouseWheel(p, zdelta*slines, keyflags);

>>+=----------
when same char )]}" ahead_written - it's jumped over:
if((code==')'||code==']'||code=='}'||code=='"') && code==GetChar(GetCursor()))SetCursor(GetCursor()+1);
at CodeEditor.cpp: if(code >= 32 && code < 128 && count == 1) {


This is from sources v7936

smx


I have fixed the first issue (but correctly - your code is not platform independent). It is in trunk now.

I am not sure whether I like the second issue. Is there any mainstream editor that provides this behaviour?

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: [Approved] Direct online search from Code Editor
Next Topic: [BUG REPORT] Renaming package has bugs. Introduce $PACKDIR as STD relative path
Goto Forum:
  


Current Time: Sun May 17 06:29:10 GMT+2 2026

Total time taken to generate the page: 0.00714 seconds