Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clipper Visual-Objects > ListView:KeyDow...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 14 Topic 11297 of 11560
Post > Topic >>

ListView:KeyDown

by tony holland <tony.holland@[EMAIL PROTECTED] > Apr 8, 2008 at 07:00 AM

Hi all. I have a ListView:KeyDown method that is to be used to enable
action buttons if there is a resource to action. The method works, but
a key stroke behind.

Scroll down the list with the down arrow, cursor lands on an Item that
has a resource and the action button should enable, but it is not
until the next keydown event that the correct action is observed. The
KeyUp method does not appear to work at all.

Using VO2.5b3 - any suggestions?
Thanks
Tony

METHOD ListViewKeyDown(oListViewKeyEvent) CLASS TopicsWindow
  LOCAL oLVI AS ListViewItem

  SUPER:ListViewKeyDown(oListViewKeyEvent)

  oLVI := oDCLV_Topics:GetSelectedItem()		// Get the current Selected
Listview Item.
  IF (oLVI != NULL_OBJECT)
      SELF:SetButtons(oLVI)
   ENDIF
   RETURN NIL

METHOD SetButtons(oLVI) CLASS TopicsWindow
  IF ! Empty(oLVI:GetValue( #ThrdR ) )
      SELF:oCCPB_Test:Enable()
  ELSE
      SELF:oCCPB_Test:Disable()
  ENDIF
  IF ! Empty(oLVI:GetValue( #FrthR ) )
     SELF:oCCPB_Resource:Enable()
  ELSE
     SELF:oCCPB_Resource:Disable()
  ENDIF

  RETURN NIL
 




 14 Posts in Topic:
ListView:KeyDown
tony holland <tony.hol  2008-04-08 07:00:35 
Re: ListView:KeyDown
"Geoff Schaller"  2008-04-08 22:18:10 
Re: ListView:KeyDown
"Stephen Quinn"  2008-04-09 03:01:13 
Re: ListView:KeyDown
Tony Holland <tony.hol  2008-04-09 03:06:41 
Re: ListView:KeyDown
"Geoff Schaller"  2008-04-09 10:13:04 
Re: ListView:KeyDown
Tony Holland <tony.hol  2008-04-10 02:26:56 
Re: ListView:KeyDown
"Don Bjortomt"   2008-04-10 06:18:40 
Re: ListView:KeyDown
"Geoff Schaller"  2008-04-10 22:18:02 
Re: ListView:KeyDown
"Craig Dawson"   2008-04-11 16:28:45 
Re: ListView:KeyDown
D.J.W. van Kooten <pub  2008-04-11 16:09:06 
Re: ListView:KeyDown
"Geoff Schaller"  2008-04-12 11:27:58 
Re: ListView:KeyDown
Tony Holland <tony.hol  2008-04-10 03:33:51 
Re: ListView:KeyDown
Amilcar A. Camargo <am  2008-04-12 19:36:04 
Re: ListView:KeyDown
Tony Holland <tony.hol  2008-04-13 01:44:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 16:24:37 CDT 2008.