Bug in text control after TXBrowse() mouse wheel scrolling??

Bug in text control after TXBrowse() mouse wheel scrolling??

Postby PatrickWeisser » Tue Oct 14, 2008 3:41 pm

I recently noticed in my application that if I scroll to the bottom of a TXBrowse() display with the mouse wheel, then edit one of the text controls in ANY form, the SPACE bar results in a "2" being typed.

The mallorca.prg sample program shows exactly the same problem. If you launch it, spin the mouse wheel to move the browse cursor to the last row, double click on a data row of the Description column, and press the SPACE bar, you should see "2's" typed.

Note that it is only the mouse wheel which causes this. Getting to the last TXBrowse() row using the down arrow does not cause the problem.

I have the latest FiveWin and Harbour builds.

Can anyone else reproduce this or is there a problem with my environment?

Thanks!
User avatar
PatrickWeisser
 
Posts: 53
Joined: Fri Mar 23, 2007 4:10 am
Location: Seattle, WA, USA

Postby James Bott » Tue Oct 14, 2008 5:28 pm

Patrick,

I remember another message thread where 2's were mysteriously appearing, but I think it was under different circumstances. Try searching the forum (this section).

Regards,
James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA

Postby hag » Wed Oct 15, 2008 3:03 am

Yes I had the same problem. Difference it was a 3. The number of spaces the scroll skips is entered in the get. Got redi of it with this function
Code: Select all  Expand view
function WheelScroll()

   return nil //ScrLines


The code will set the scroll to one line at a time. It is a bug and needs to be fixed.

Harvey
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Bug in text control after TXBrowse() mouse wheel scrolling??

Postby PatrickWeisser » Wed Oct 15, 2008 4:16 am

Hey thanks Harvey, that worked great!

-Patrick
User avatar
PatrickWeisser
 
Posts: 53
Joined: Fri Mar 23, 2007 4:10 am
Location: Seattle, WA, USA

Postby Antonio Linares » Wed Oct 15, 2008 8:36 am

Somehow this code in source\function\valblank.prg is related with the bug:
Code: Select all  Expand view
      // oReg:= TReg32():New( HKEY_CURRENT_USER, "Control Panel\Desktop" )
      // nScrLines := oReg:Get( "WheelScrollLines" )
      // oReg:Close()

Until we discover what exactly happens with it, we have to comment them.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby James Bott » Wed Oct 15, 2008 3:38 pm

Antonio,

I am guessing the value of nScrLines is somehow ending up in the GET.

James
User avatar
James Bott
 
Posts: 4840
Joined: Fri Nov 18, 2005 4:52 pm
Location: San Diego, California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 66 guests