Dear Mr. Nages,
Is it possible to show a menu with several options when clicking on a field in a row?
Thank you. Best regards
xBrowse and menu
xBrowse and menu
Saludos,
Eduardo
Eduardo
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: xBrowse and menu
Code: Select all
oBrw:bPopup := { |oCol| MyPopMenuFunction( oCol ) }
The parameter oCol is the currently selected column.
Right-clicking on any column opens the popup menu just below the current cell..
If you want to implement this only for a specific column then
Code: Select all
oCol:bPopup := { |oCol| MyPopMenuFunction( oCol ) }
For implementation sample, please see \fwh\samples\testxbr3.prg
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: xBrowse and menu
Hi,
And what about bLClicked?
I need to show the menu in this event, but it does not work. The menu does not show up.
If you need, I can build a sample code.
Thank you.
And what about bLClicked?
I need to show the menu in this event, but it does not work. The menu does not show up.
If you need, I can build a sample code.
Thank you.
Saludos,
Eduardo
Eduardo
Re: xBrowse and menu
Try with this code
Code: Select all
:bLClicked := { | nR, nC, nF | MyPopupMnu( oBrw, nR, nC ) }
.../...
//----------------------------------------------------------------------------//
Function MyPopupMnu( o, nRow, nCol )
local oMnu
MENU oMnu POPUP
MENUITEM "Option 1" ACTION Msginfo( o:oWnd:ClassName() )
SEPARATOR
MENUITEM "Exit" RESOURCE "close" ACTION ( o:oWnd:End() )
ENDMENU
ACTIVATE MENU oMnu AT nRow, nCol OF o:oWnd
Return oMnu
//----------------------------------------------------------------------------//
C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: xBrowse and menu
My advice works with right-click.
We advise you not to use single click for any action because single click is used for navigation
Right click and popup menu is a standard user interface
We advise you not to use single click for any action because single click is used for navigation
Right click and popup menu is a standard user interface
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: xBrowse and menu
my solution on left mouseclick
using a defined style connected to the cell
( radio, combo, listbox, fieldedit, dateselection ... )
more samples radio and listbox
regards
Uwe
using a defined style connected to the cell
( radio, combo, listbox, fieldedit, dateselection ... )
more samples radio and listbox
regards
Uwe
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
i work with FW.
If you have any questions about special functions, maybe i can help.