Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » mouse wheel, skipping )]}" chars
mouse wheel, skipping )]}" chars [message #43995] Wed, 10 December 2014 05:54 Go to next message
smxxms is currently offline  smxxms
Messages: 3
Registered: December 2014
Location: Slovenia
Junior Member
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
Re: mouse wheel, skipping )]}" chars [message #44074 is a reply to message #43995] Mon, 22 December 2014 17:49 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13986
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
Re: mouse wheel, skipping )]}" chars [message #47048 is a reply to message #43995] Sun, 20 November 2016 17:24 Go to previous message
luoganda is currently offline  luoganda
Messages: 204
Registered: November 2016
Experienced Member
I am now as luoganda, since smxxms didn't work any more, could not log in nor reset password/settings,
so as far as i am concerned that profile can be deleted.
By the way, i don't know why, but using www(dot)gmx(dot)com mail cannot be used with this,
so i had to use g-mail.

Anyway,
__that proposal was added because when using 'tab' to autocomplete function,
__ending ')' is added to it, and you must skip it with right key.
__If there was an option to prevent adding last ')' char this would not be here.
__Not adding ending closed tag ')' or doing it the way it's been proposed is faster.
Maybe an option in settings or something, maybe there is - but i am not aware of it.
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: Tue Jun 25 04:46:44 CEST 2024

Total time taken to generate the page: 0.01029 seconds