flat assembler
Message board for the users of flat assembler.

Index > IDE Development > [request] FASMW scrollbar behavior

Author
Thread Post new topic Reply to topic
Frank



Joined: 17 Jun 2003
Posts: 100
Frank 06 Dec 2007, 13:22
When clicking on the vertical scrollbar below the scroll box (or "thumb"), FASMW scrolls down a full screen page. If less than a full screen page is left, FASMW should display that last page entirely. However, that does not happen. Instead, if less than a full screen page is left, FASMW starts to scroll down line-by-line.

Apart from being unexpected, that behavior is also a little annoying with bigger monitors, because scrolling down the last 30-40 lines may consume a lot of time.

Fortunately there appears to be a simple fix, it requires changing one single line in SOURCE\IDE\FASMW\ASMEDIT.INC:

Code:
    vscroll_pagedown:
        mov     esi,[window_line]
        mov     eax,[sc.nPos]
        add     eax,[sc.nPage]
        mov     ecx,[sc.nMax]
        sub     ecx,eax
        inc     ecx
        cmp     ecx,[sc.nPage]
;        jbe     scroll_down            ; original code
        jbe     scrolling_down          ; new code
        mov     ecx,[sc.nPage]
    scrolling_down:
    
Post 06 Dec 2007, 13:22
View user's profile Send private message Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4073
Location: vpcmpistri
bitRAKE 18 Dec 2007, 01:45
Thank you - that was driving me crazy!
Post 18 Dec 2007, 01:45
View user's profile Send private message Visit poster's website Reply with quote
Madis731



Joined: 25 Sep 2003
Posts: 2139
Location: Estonia
Madis731 18 Dec 2007, 06:37
I never noticed it Razz have always used PgUp/PgDn for that... nice to have though.
Post 18 Dec 2007, 06:37
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 4073
Location: vpcmpistri
bitRAKE 18 Dec 2007, 07:06
I prefer to touch my screen.
Post 18 Dec 2007, 07:06
View user's profile Send private message Visit poster's website Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 18 Dec 2007, 13:03
I also never noticed this bug myself, for the same reason as Madis. Wink
Will be fixed in next release.
Post 18 Dec 2007, 13:03
View user's profile Send private message Visit poster's website Reply with quote
Frank



Joined: 17 Jun 2003
Posts: 100
Frank 18 Dec 2007, 15:06
Thanks Very Happy
Post 18 Dec 2007, 15:06
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.