PDA

View Full Version : Menus management



K!k3
2014-09-24, 12:44
How is the menues (MNT and MPR) VFP uses?

Thanks

Victor Navarro
Barranquilla, COLOMBIA
3008102508
ICQ 279 364 380
Face: +573008102508 (http://www.facebook.com/victorenrique.navarrohoyos)
MSN: eres_un_vago@hotmail.com
Mail: eres_un_vago@yahoo.es (mailto:eres_un_vago@yahoo.es)
Whatsapp: +573008102508
Skype: eres_un_vago (skype:eres_un_vago?chat)
PIN: 7A3F5E60

barrymavin
2014-09-24, 20:17
Use of these is deprecated and discouraged in Lianja as they are specific to VFP and are desktop bound.

Use the section menus or section footers in place of these old FoxPro menus.

K!k3
2014-09-25, 11:05
Well... but, how can do it for right-click menu?

Thanks again

Victor Navarro
Barranquilla, COLOMBIA
3008102508
ICQ 279 364 380
Face: +573008102508 (http://www.facebook.com/victorenrique.navarrohoyos)
MSN: eres_un_vago@hotmail.com
Mail: eres_un_vago@yahoo.es (mailto:eres_un_vago@yahoo.es)
Whatsapp: +573008102508
Skype: eres_un_vago (skype:eres_un_vago?chat)
PIN: 7A3F5E60

yvonne.milne
2014-09-25, 12:06
Hi Victor,

Have a look at the 'Context Menu' attribute and the 'Context Menu' Custom Delegate.

777

Regards,

Yvonne

K!k3
2014-09-25, 18:24
Thanks Yvonne; another question, can I made a complete menu? i.e. many options?

Thanks again

Victor Navarro
Barranquilla, COLOMBIA
3008102508
ICQ 279 364 380
Face: +573008102508 (http://www.facebook.com/victorenrique.navarrohoyos)
MSN: eres_un_vago@hotmail.com
Mail: eres_un_vago@yahoo.es (mailto:eres_un_vago@yahoo.es)
Whatsapp: +573008102508
Skype: eres_un_vago (skype:eres_un_vago?chat)
PIN: 7A3F5E60

yvonne.milne
2014-09-26, 08:19
Hi Victor,

The Context Menu is a single level menu, but you can have multiple options.

Regards,

Yvonne

K!k3
2014-09-27, 17:16
Thanks again.

Where can I get some links about?

Victor Navarro
Barranquilla, COLOMBIA
3008102508
ICQ 279 364 380
Face: +573008102508 (http://www.facebook.com/victorenrique.navarrohoyos)
MSN: eres_un_vago@hotmail.com
Mail: eres_un_vago@yahoo.es (mailto:eres_un_vago@yahoo.es)
Whatsapp: +573008102508
Skype: eres_un_vago (skype:eres_un_vago?chat)
PIN: 7A3F5E60

yvonne.milne
2014-09-29, 10:32
Hi Victor,

The 'Context menu' attribute is a comma-separated list, e.g.


Menu1,Menu2,Menu3

The 'Context menu' delegate is called when you select a menu option and the name of the menu option is passed to the delegate.


////////////////////////////////////////////////////////////////
// Event delegate for 'contextmenu' event
proc page1_contacts_field1_contextmenu(action)
messagebox(action)
endproc

The Context Menu is displayed when you right-click on a field in Edit mode (inline edit or full section or page edit).

Regards,

Yvonne

phabio
2015-01-23, 07:05
Hi all,
can the "context menu" will be managed by code?

eg:
a = Lianja.get("myField")
a.contextmenu = "myMenuFunction()"

thanks
Fabio

yvonne.milne
2015-01-23, 10:06
Hi Fabio,

It's not currently. You can submit an Enhancement Request ticket to request it for a future release.

Regards,

Yvonne

phabio
2015-01-23, 10:08
Thanks Yvonne,
please ignore my other post for the same question.

Fabio

phabio
2018-01-12, 08:09
Hi,
if I use che "context menu", I lost the standard "context menu" function (copy, paste...)...

can I include my custom menu to the standard menu?

thanks
Fabio

yvonne.milne
2018-01-12, 09:31
Hi Fabio,

No, but Lianja v4.1 will include the Lianja.clipBoard() method (beta already does), so you could handle cut, copy, paste in code.

Regards,

Yvonne


Note re earlier question: contextMenu and contextMenuAction can be set using setAttr(). See https://www.lianja.com/doc/index.php/Field_Attributes.

phabio
2018-01-12, 10:09
ok, thanks Yvonne.