Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7 - Empty grids can't get focus?
Message
From
31/10/2001 12:00:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
31/10/2001 09:41:17
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00575466
Message ID:
00575708
Views:
26
>>>Throughout my application I have RightClick menus on my grids where the user can add, edit or delete. If the user RightClicks on an empty grid, their only option is to add. This worked fine in VFP6, but in VFP7 I notice that I can't RightClick on an empty grid. Instead, the RightClick of the pageframe (most of these grids are on pages on pageframes) fires. It seems that the empty grid can't get focus. What can I do???
>>
>>Yes Elyse,
>>It doesn't get the focus :(
>>You could have code in page rightclick like this :
>>
>>loObj = SYS(1270)
>>IF UPPER(loObj.BaseClass) = 'GRID'
>>	loObj.RightClick()
>>endif
Cetin
>
>Thanks! For some reason my loObj was coming up as a column so I put in a check for that as well and it seems to work.

Elyse,
Sorry forgot to mark you for CC. loObj.parent might be dangerous. See my reply to John for a more generic routine.
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
Reply
Map
View

Click here to load this message in the networking platform