Search found 71 matches: menuitem

Searched query: menuitem

by José Camilo
Sun Jun 16, 2024 6:31 am
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas con una búsqueda.
Replies: 4
Views: 544

Re: Problemas con una búsqueda.

... oWnd FROM 1, 1 TO 12, 32 TITLE "TEST" MENU MakeMenu()

ACTIVATE WINDOW oWnd

RETURN( NIL )

Function MakeMenu()
Local oMenu

MENU oMenu
MENUITEM '&Menu'
MENU
MENUITEM "&1 MsgDate (Use DATE())" ACTION MsgInfo(MsgDate(DATE()), "Date Returned")
MENUITEM "&2 MsgDate (Use 03/25/97)" ACTION ...
by Silvio.Falconi
Sat Apr 13, 2024 8:32 am
Forum: FiveWin for Harbour/xHarbour
Topic: SetMultiSelectCol() on line
Replies: 5
Views: 703

SetMultiSelectCol() on line

... an array without the :SetMultiSelectCol()
and I have the ability to display a menupopup like this

MENU oMenu POPUP
if oBrw:IsSelectedRow()
MENUITEM "Deselect the current row" action DeSelect_One_array(oBrw)
MENUITEM "Deselect everything" action oBrw:SelectRow( 0 )
MENUITEM "Prints the ...
by paquitohm
Tue Jan 23, 2024 7:44 pm
Forum: FiveWin para Harbour/xHarbour
Topic: RIBBONBAR cachar el nombre del ACTION ejecutado
Replies: 3
Views: 397

Re: RIBBONBAR cachar el nombre del ACTION ejecutado

Hola

Temas asi los soluciono con el preprocesador. Haciendo un esbozo:

#Translate xmenuitem <c1> action <fAction> message <cMessage> => ;
menuitem <c1> action ( LogAction(<c1>), <fAction>) message <cMessage>


Y asi el codigo que hay que tocar es añadir una x a menuitem

Salu2
by Joel Andujo
Tue Jan 23, 2024 4:50 pm
Forum: FiveWin para Harbour/xHarbour
Topic: RIBBONBAR cachar el nombre del ACTION ejecutado
Replies: 3
Views: 397

RIBBONBAR cachar el nombre del ACTION ejecutado

... la opción del menú ?
Existe algún método, algún bchange donde se pueda tomar la opción antes de ejecutarse ?

Ejemplo:
menu oMnuDBIO Popup 2007
menuitem '&Países' action CATPai() message 'Países'
menuitem '&Entidades Federativas' [url][/url] action CATEst() message 'Entidades Federativas'
endmenu ...
by Silvio.Falconi
Wed Dec 06, 2023 12:04 pm
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 8169

Re: copy a row of xbrowse

MENUITEM "Copy" WHEN acopy=NIL .and. oBrw:IsSelectedRow(); // only when is seletected
ACTION ( IIF(Len(oBrw:aselected) >1,aClone:=Giverows(oBrw),;
aCopy := aclone(oBrw:aRow)),;
oBrw:SetFocus() )


Function Giverows(oBrw)
local n,atmp:={},nAt
For n= 1 to Len( oBrw:aselected)
nAt := oBrw ...
by Silvio.Falconi
Wed Dec 06, 2023 11:52 am
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 8169

Re: copy a row of xbrowse

... I have the last release of fwh


Silvio,
Here you have the solution. But, look also into xbrowse.prg in C:\FWH\Source\Classes\xbrowse.prg.

MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,;
oBrw:SetFocus(), xbrowse(oBrw:aSelected) )



All you need is there. This is the biggest ...
by Otto
Wed Dec 06, 2023 10:53 am
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 8169

Re: copy a row of xbrowse

... I have the last release of fwh


Silvio,
Here you have the solution. But, look also into xbrowse.prg in C:\FWH\Source\Classes\xbrowse.prg.

MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,;
oBrw:SetFocus(), xbrowse(oBrw:aSelected) )



All you need is there. This is the biggest ...
by Silvio.Falconi
Wed Dec 06, 2023 9:13 am
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 8169

Re: copy a row of xbrowse

Perhaps...


MENUITEM "Copy" WHEN acopy=NIL .and. oBrw:IsSelectedRow(); // only when is seletected
ACTION IIF(Len(oBrw:aseleted) >1,Aclone:= Giverows (oBrw),aCopy := aclone(oBrw:aRow)),;
oBrw:SetFocus() )



Function Giverows (oBrw)
local n,uBook,nAt
local aTmp:= {}
For n = 1 to len(oBrw ...
by Otto
Tue Dec 05, 2023 3:17 pm
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 8169

Re: copy a row of xbrowse

... example of how you could modify your code:

### Modified Copy Functionality

```harbour
// Inside PopMenu Function - Modify the "Copy" Menu Item
MENUITEM "Copy" WHEN acopy==NIL .and. oBrw:IsSelectedRow();
ACTION (
aCopy := {}, // Initialize aCopy as an empty array
FOR EACH nRow IN oBrw ...
by Silvio.Falconi
Tue Dec 05, 2023 1:14 pm
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 8169

Re: copy a row of xbrowse

... msgInfo's.
Best regards,
Otto

I not understood
when I copy insert on acopy the row I selected ( all field) change acopy[1] with new codsep

MENUITEM "Paste" WHEN acopy!=NIL ACTION ( ;
oBrw:Lock(), ;
aCopy[ 1 ] := codsep ,;
aCopy[ 8 ] := 0 ,; //recno
aadd( oBrw:aArrayData, aCopy ),;
oBrw ...
by Silvio.Falconi
Tue Dec 05, 2023 9:19 am
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 8169

Re: copy a row of xbrowse

You have to extend here:
MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,;
oBrw:SetFocus() )


and here:
aadd( oBrw:aArrayData,aCopy ),; // oBrw:aArrayData[ oBrw:nArrayAt ] := aCopy ,;



>MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,;
>oBrw:SetFocus() )

must be ...
by Otto
Tue Dec 05, 2023 9:05 am
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 8169

Re: copy a row of xbrowse

You have to extend here:
MENUITEM "Copy" WHEN acopy=NIL ACTION ( aCopy := oBrw:aRow,;
oBrw:SetFocus() )


and here:
aadd( oBrw:aArrayData,aCopy ),; // oBrw:aArrayData[ oBrw:nArrayAt ] := aCopy ,;
by Silvio.Falconi
Tue Dec 05, 2023 8:19 am
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 8169

Re: copy a row of xbrowse

https://i.postimg.cc/R0YV9Xff/fff.gif

when I copied to the second xbrowse
it should enable the "copy" menuitem and disable the "paste" menuitem and give the possibility to copy another line and repeat the operations instead the copy command is disabled and "paste" is always active
by Horizon
Sat Jul 08, 2023 10:09 am
Forum: FiveWin for Harbour/xHarbour
Topic: how to open devtoolswindow from application.
Replies: 21
Views: 2165

Re: how to open devtoolswindow from application.

what menuitem is missing ? I can't understand what you posted...
Hi Antonio,

When the right button is pressed in Webview, "Inspect" should appear on the bottom line of the menu that opens.

The pictures I sent are in Turkish. Somehow, although my Microsoft Edge browser is in English, I could not ...
by Antonio Linares
Sat Jul 08, 2023 9:56 am
Forum: FiveWin for Harbour/xHarbour
Topic: how to open devtoolswindow from application.
Replies: 21
Views: 2165

Re: how to open devtoolswindow from application.

what menuitem is missing ? I can't understand what you posted...