procedure init with this .recordsource="Booking" with .Columns(4) .NewObject('myText','myText') .myText.Visible = .t. .CurrentControl = 'myText' .Sparse = .f. endwith *... endproc *... enddefine define class myTextBox as TextBox BorderStyle = 0 procedure RightClick do mymenu.mpr with this endproc enddefine *mymenu.mpr lparameters oTarget DEFINE POPUP shortcut SHORTCUT RELATIVE FROM MROW(),MCOL() DEFINE BAR 1 OF shortcut PROMPT "Add hello" ON SELECTION BAR 1 OF shortcut oTarget.Value = trim(oTarget.Value)+'hello' ACTIVATE POPUP shortcutIf this doesn't work I can send a full sample later.
>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... >>