True Grid & VB4 (Windows 3.11 & 95) 
Author Message
 True Grid & VB4 (Windows 3.11 & 95)

Hi All,

I hope this is a simple one!

I have a number of forms where there are some data grids. On these
forms a user can select a record(s) and then perform some action (i.e.
delete / update etc.).

I have done this by usuing a popupmenu on the data grids double click
event.

The problem with this is,thta the pop appears no matter where you
double click on the grid (i.e. in blank spaces / the heading etc.).

Is there a way to only allow the menu to appear when user has selected
a record.

Apologies if this is in the help files or manual, but I have had a
look, and can't seem to find the right bit of code.

BTW: If possible, would it be possible to EMAIL a response, as I can't
always take the newsgroup feeds (it's the size you know !!)

Many Thanks in advance.

Cheers
R & L Enterprises - Software/ Hardware Development & Distribution
M.L. Greenwood's & Associates - Business & Technical Consultancy



Sat, 23 Jan 1999 03:00:00 GMT  
 True Grid & VB4 (Windows 3.11 & 95)

Quote:

>The problem with this is,thta the pop appears no matter where you
>double click on the grid (i.e. in blank spaces / the heading etc.).
>Is there a way to only allow the menu to appear when user has selected
>a record.

Use the grid's MouseDown or MouseUp event then compare the X and Y
variables against the grid's data area.

John



Sat, 23 Jan 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. True Grid & VB4 (Windows 3.11 & 95)

2. DDE & VB4 - Windows 3.11 vs Windows 95

3. Listbox changes height when moved from Windows 3.11 to Windows 95

4. MAPI, VB4 & Win 3.11

5. MAPI, VB4 & Win 3.11

6. Setting Passwords on Windows 3.11 / 95 / NT

7. Returning Windows version on 3.10, 3.11, 95 and NT

8. Shutdown windows (3.1 / 3.11 / 95)

9. Shutdown windows 3.1 / 3.11 / 95

10. I need Windows 3.11 API / Necesito API de Windows 3.11

11. I need Windows 3.11 API / Necesito API de Windows 3.11

12. How to create Program Group in Setup1.exe of VB for windows 3.11 & 95

 

 
Powered by phpBB® Forum Software