Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid and Double-Click Event
Message
From
19/06/2001 09:52:04
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00520905
Message ID:
00520997
Views:
17
>Hi folks - I have a grid with records from a view in it - each record has a primary key.
>
>I would like to double-click on a record and launch a second form with information related to that record that is held in a second view.
>
>How?
>
>I guess to most this is pretty routine stuff!!

Chris,
Grid dblclick would work if dblclicked in a dead area (gridlines, after recs etc). Other times dblclick of controls would work. It's cumbersome to add functioanlity to all controls to call grid's click. Instead you can control it from one place :) Place a transparent container in front of grid. In dblclick put your code but be sure to test where you're with gridhittest and activate clicked row first to get correct PK. Instead of activating you could temporarily set visibility of container to .f. and do a click at the same location.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform