Jump to content


scroll-error in dbgrid


  • Please log in to reply
6 replies to this topic

#1 user22

user22
  • Members
  • 172 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 06 March 2011 - 08:56 PM

Hello Boki,

i have a dbgrid  where i check if the actual record changes in catching the AfterScroll-event of the assigned datasource.
I only added a ShowMessage('blah blah') in this afterScroll-event. Now when i press the scrolldown-arrow and the record in the datasource changes and the messagewindow comes up, this window has the focus, also scrolling should stop. But it scrolls on and on and even if i release the mouse button it scrolls and scrolls till the cursor moves out of the scrolldown-Button-area ...
So i think you should also check if the grid still has the focus before scrolling to the next record.

bye,
Helmut

#2 user22

user22
  • Members
  • 172 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 18 March 2011 - 03:22 PM

Hello Boki,

please check this - in my application it can happen, that during scrolldown the error message pops up directly above the scrolldown button. In this case the grid still scrolls on but for the user it looks like he has the cursor on the error messge window and not on the grid, so it's very irritating what happens.

thanks,
Helmut

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,683 posts
  • Gender:Male

Posted 19 March 2011 - 12:19 AM

Hello Helmut,

Scrolling in DB-related components are unfortunately a little science sad.gif Can you build a small demo project for me and help me to give you a solution.

best regards
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 user22

user22
  • Members
  • 172 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 21 March 2011 - 11:37 AM

Hello Boki,

here is  a small app to demostrate what i mean.
Start Project1.exe in ..\Debug\Win32 and then press the scrolldown button till a messagewindow with "... still scrolls..." appear.
Then release the mousebutton. You will see that the grid still scrolls. But it stops when you move the cursor outside the area of the underlaying scrolldown-button and it starts scrolling again when you move the cursor back in this area.
You can't select the grid in background because all the message windows (for every scrolled row one messagewindow) opens in modal mode. To stop demo it's best to scroll down till you can see row 200, then close the topmost message window and program will be closed.

bye,
Helmut

PS: i use nextgrid 5.3 with DelphiXE on Windows7 32-bit

[edit] have just added Project1_winXP.exe for testing it on WinXP because the message window is a lot smaller in Xp than in Win7 so the effect is not so clear. But closing the app in WinXP is a little more difficult, i always needed some tries and clicking a little bit around in the app before it closes (don't know why tjis difference).

Attached Files



#5 user22

user22
  • Members
  • 172 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 21 March 2011 - 11:52 AM

hhmmm, i have edited last messages and i uploaded this Project1_winXP.exe but it is not visible.
Second try, now zipped ....

bye,
Helmut

Attached Files



#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 6,683 posts
  • Gender:Male

Posted 21 March 2011 - 09:20 PM

Hello Helmut,

I have test both files and for me when modal ShowMessage is shown scrolling stops immediately.

Do I need to do something more?

Best regards
boki@bergsoft.net
--
BergSoft Home Page: www.bergsoft.net
Members Section: bms.bergsoft.net
Articles and Tutorials: dn.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#7 user22

user22
  • Members
  • 172 posts
  • Gender:Male
  • Location:Linz / Austria

Posted 22 March 2011 - 04:11 PM

No, there is nothing else to do. I will try it tomorrow on another computer and if there is the same problem i will make a screencapture-video to show you what i mean ....

thanks,
Helmut




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users