Splitting code across lines?

Everything else that doesn't fall into one of the other PB categories.
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

Actually I'm of the opinion now that we have an IDE bug here.

If a line is longer than a certain length then the horizontal scroll bar at the bottom doesn't shrink after a certain point and you can use it to drag the screen to the end. you have use arrow keys or go to the next line and hit "back" .

Does anyone else get this? If it's not just me I'll post in the bug section
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

That's how Scintilla works. For speed reasons it doesn't continually check line lengths to adjust the horizontal scroll bar. See here:
http://scintilla.sourceforge.net/SciTEF ... lScrollBar
Mat
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

Well, one could always use a pre-parser...
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

MrMat wrote:That's how Scintilla works. For speed reasons it doesn't continually check line lengths to adjust the horizontal scroll bar. See here:
http://scintilla.sourceforge.net/SciTEF ... lScrollBar

Doesn't check at all. you'd think that when you scroll the cursor past what is on screen it would be a good hint that the scroll bar length is not correct :?

Bug!
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

It is standard behaviour and has been discussed on the Scintilla mailing list a few times. I believe it was the pnotepad author who suggested a background scan every now and again to determine the maximum line length and i think he implemented it in his editor. The check has to scan the entire document and take into account the possibility of varing font sizes so it is not something suitable to a check when scrolling - unless you don't mind the occasional delay! I'd consider this a feature request rather than a bug :)
Mat
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

:confused: Pity, as the IDE seems not to scroll properly to the right after a certain length. you have to use the arrow rather than drag.
I hope this break idea gets implemented... I have several LONG query$ that I send to a DB and being able to see the entire $ on my screen would enable debug much faster!

BUT

It may be that the fact PB is a single pass compiler is WHY this cannot be so!

And I am quite happy with the compiler!
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Rook: See http://www.purebasic.fr/english/viewtop ... 575#262575 for a possible solution to the problem for you...
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Major COOL!!! Thanks DD... I had no idea! I have been waiting for a IDE and VD update. I got the VD update, now an IDE update...

I am soooooooooooooooooooooooooooooooooooooooooo excited!
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Post Reply