It is currently Wed Nov 13, 2019 12:56 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: ExplorerTreeGadget with keyboard
PostPosted: Thu Aug 22, 2019 11:57 am 
Offline
Addict
Addict
User avatar

Joined: Wed Apr 30, 2003 8:15 am
Posts: 989
Location: Germany
If you are using the ExplorerListGadget() and have selected an entry with SetGadgetItemState(#Gadget, n, #PB_Explorer_Selected),
then ist important to set also the focus on this element, otherwise the navigation with the keyboard won't work.

Code:
Procedure ExplorerListGadget_SelectItem(GadgetID, n)
  SendMessage_(GadgetID(GadgetID), #LVM_ENSUREVISIBLE, n, #False )
 
  sItem.LV_ITEM
  sItem\Mask      = #LVIF_STATE
  sItem\State     = #LVIS_SELECTED | #LVIS_FOCUSED
  sItem\stateMask = #LVIS_SELECTED | #LVIS_FOCUSED
  SendMessage_(GadgetID(GadgetID), #LVM_SETITEMSTATE, n , sItem)
EndProcedure


_________________
"Daddy, I'll run faster, then it is not so far..."


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 6 guests


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

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye