Home > database >  Could you tell me how to multiple tabs in pageframe table using a right-click menu
Could you tell me how to multiple tabs in pageframe table using a right-click menu

Time:10-15

I have pageframe1 form1, she has 10 TAB, page1, page2... Page10. Grid1 each TAB in another form, I want to by grid1 right-click menu, to control the form of adding data, deleting data such as operation, only Do a right-click menu, my grid1 in each TAB rightclick event, "wrote the Do menu \ youjian MPR,
Please issue the right-click menu to how to write,
I think it's in the right-click menu to judge which TAB is active, such as:
Right click to add data function:

If thisform. Pageform1. Activate=1
The SELECT zonghejia
Thisform. Pageform1. Page1. Grid1. Setfocus
GO bottom
Thisform. Pageform1. Page1. Grid1. Readonly=. F.
Thisform. Pageform1. Page1. Grid1. AllowCellSelection=. T.
APPEND BLANK
Endif


If thisform. Pageform1. Activate=2
The SELECT zonghejia
Thisform. Pageform1. Page2. Grid1. Setfocus
GO bottom
Thisform. Pageform1. Page2. Grid1. Readonly=. F.
Thisform. Pageform1. Page2. Grid1. AllowCellSelection=. T.
APPEND BLANK
Endif


.


If thisform. Pageform1. Activate=10
The SELECT zonghejia
Thisform. Pageform1. Page10. Grid1. Setfocus
GO bottom
Thisform. Pageform1. Page10. Grid1. Readonly=. F.
Thisform. Pageform1. Page10. Grid1. AllowCellSelection=. T.
APPEND BLANK
Endif
Excuse me, there is no more simple method, thank you very much,
  •  Tags:  
  • VFP
  • Related