Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Putting Shortcut Menu into Grid Cell
Message
 
À
17/07/2001 09:31:03
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00531450
Message ID:
00531523
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Cetin,
>
>This is the problem, since I'm making the grid with code only, I can't double click on an object to add event codes, in my grid I just do something like:
>
>procedure init
>  with this
>    .recordsource="Booking"
>    .column1.width=100
>    .column2.width=90
>    .column3.width=90
>    .column4.width=115
>
>    .column1.controlsource="A"
>    .column2.controlsource="B"
>    .column3.controlsource="C"
>    .column4.controlsource="D"
>
>    .column1.header.caption="A"
>    blah blah blah...
>
>
>In this case how should I add the event code to column4's cells? I wish you'll have time to teach me in a bit more details, thank you very much!!
>
>Jimi
>
>

In addition to Cetin's reply, there is also another way. You can cover your grid with click-transparent shape (or container) and add the code calling your shortcut menu into the shape method. This will work on any grid without placing the code into column textbox and also allows to change the cover with assigned shortcut menu on the fly. There is a sample file which you can download from FoxPro Advisor site.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform