Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Help: at top, click on scroll up, what method fires
Message
De
29/10/2001 11:42:53
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/10/2001 11:25:16
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00574355
Message ID:
00574555
Vues:
26
This message has been marked as the solution to the initial question of the thread.
Maybe you don't have nodefault in gotfocus.
Cetin

>I have the GOTFOCUS in each textbox under each column set to:
>
>thisform.tSearch.setfocus
>
>I also have the SCROLLED method set to the same.
>
>It works well as soon as it gets focus to send focus elsewhere whether I got there programmatically or via a click inside the grid. It also works sends focus elsewhere when I click on the vertical scrollbar and/or drag the scrolltab. Finally, when I am NOT at the top row of the grid, clicking on the vertical scrollbar arrow up, it scrolls the table accordingly and sends focus away UNTIL I am at the top record in the grid... then one additional click on that scrollbar arrow up, and focus sets ON the grid. With all that, I assume that some other method in the GRID is firing and it isn't the GOTFOCUS of each column, nor the SCROLLED event of the grid... I just can't figure out which event it is.
>
>>>I have written a form with some specific handling routines. All focus automatically shifts OUT of grid (to text search box) when clicked within grid (after moving focus). I have also modified the SCROLLED method of the grid to catch display changes when clicking and/or dragging on the vertical scrollbar.
>>>
>>>This works fine, except....
>>>
>>>When I am currently on the TOP row of the grid, clicking on the scroll up arrow drops focus into the grid... basically bypassing all my thisform.tSearch.setfocus calls.
>>>
>>>I am not sure what method is running that I need to put my setfocus call into in this scenario. Help?
>>
>>Peter,
>>Scrollbars are part of grid. Clicking anywhere would set focus to grid. You should have your code to get focus off the grid possibly with a nodefault.
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform