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 |
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 |
|
mirek
Messages: 14187 Registered: November 2005
|
Ultimate Member |
|
|
smxxms wrote on Wed, 10 December 2014 05:54Maybe 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 |
luoganda
Messages: 208 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.
|
|
|
Goto Forum:
Current Time: Thu Jan 02 21:19:16 CET 2025
Total time taken to generate the page: 0.05356 seconds
|