In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

About popup menu

Xailer professional forum in English
Responder
Avatar de Usuario
Dionisis Divaris
Mensajes: 485
Registrado: Jue Jul 12, 2007 8:48 pm
Ubicación: Athens Greece

About popup menu

Mensaje por Dionisis Divaris »

Hello
I want to present a popup menu inside o TDBBrowse.
I want to take advantage of the event OnRClick to present a popup menu in
nXPos,nYPos.
Please tell me in breaf how to create an present the popup menu.
Many thanks for your help
Best regards
Dionisis
T.I.A
Dionisis
SGS-soft
support.sgs@gmail.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

About popup menu

Mensaje por ignacio »

Dionisis,
Take a look at event OnContextMenu. A sample:
METHOD DbBrowseContextMenu( oSender, nPosX, nPosY ) CLASS ...
LOCAL oPopup
IF oSender:SelectCellFromPoint( nPosX, nPosY )
MENU POPUP oPopup
MENUITEM ... ACTION ...
MENUITEM ... ACTION ...
MENUITEM ... ACTION ...
ENDMENU
oSender:ShowPopupMenu( oPopup, nPosX, nPosY )
ENDIF
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Dionisis Divaris" <sv1fkk@hol.gr> escribió en el mensaje
news:[email=48846f6d@ozsrv2.ozlan.local...]48846f6d@ozsrv2.ozlan.local...[/email]
> Hello
>
> I want to present a popup menu inside o TDBBrowse.
> I want to take advantage of the event OnRClick to present a popup menu in
> nXPos,nYPos.
> Please tell me in breaf how to create an present the popup menu.
>
> Many thanks for your help
>
> Best regards
> Dionisis
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

About popup menu

Mensaje por NoName »

Dionisis,
Take a look at event OnContextMenu. A sample:
METHOD DbBrowseContextMenu( oSender, nPosX, nPosY ) CLASS ...
LOCAL oPopup
IF oSender:SelectCellFromPoint( nPosX, nPosY )
MENU POPUP oPopup
MENUITEM ... ACTION ...
MENUITEM ... ACTION ...
MENUITEM ... ACTION ...
ENDMENU
oSender:ShowPopupMenu( oPopup, nPosX, nPosY )
ENDIF
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Dionisis Divaris" <sv1fkk@hol.gr> escribió en el mensaje
news:[email=48846f6d@ozsrv2.ozlan.local...]48846f6d@ozsrv2.ozlan.local...[/email]
> Hello
>
> I want to present a popup menu inside o TDBBrowse.
> I want to take advantage of the event OnRClick to present a popup menu in
> nXPos,nYPos.
> Please tell me in breaf how to create an present the popup menu.
>
> Many thanks for your help
>
> Best regards
> Dionisis
>
Responder