Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP7 - Empty grids can't get focus?
Message
From
31/10/2001 09:41:17
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
 
 
To
31/10/2001 04:37:39
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00575466
Message ID:
00575622
Views:
20
>>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 Pomerantz
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform