Search found 241 matches: narrayat

Return to advanced search

Re: To nages : modify of a xbrowse

What is this? :aCols[1]:bEditBlock := { |r,c|IIF(oBrwFilter:nArrayAt = 1,MsgInfo("not"),) } What is the purpose of bEditBlock? I not Know I found this line on this forum on first colum I use :aCols[1]:nEditType := EDIT_LISTBOX ...
by Silvio.Falconi
Thu May 09, 2024 8:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To nages : modify of a xbrowse
Replies: 4
Views: 141

Re: To nages : modify of a xbrowse

... on first column I made :aCols[1]:nEditType := EDIT_LISTBOX :aCols[1]:aEditListTxt := acOperators :aCols[1]:bEditBlock := { |r,c|IIF(oBrwFilter:nArrayAt = 1,MsgInfo("not"),) } I not want the end use can select the combobox if is on first line ( SEE THE PICTURE) https://i.postimg.cc/4NbFm215/filter.jpg
by Silvio.Falconi
Wed May 08, 2024 7:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To nages : modify of a xbrowse
Replies: 4
Views: 141

To nages : modify of a xbrowse

... the first column I wish it not show the listbox when is the first line of array this not run :aCols[1]:bEditBlock := { |r,c,oCol|IIF(!oBrwFilter:nArrayAt = 1, MsgInfo("Non puoi")) } for the 4th column I have problem because I cannot insert more characters
by Silvio.Falconi
Wed May 08, 2024 10:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To nages : modify of a xbrowse
Replies: 4
Views: 141

Re: combobox color

hi Otto,
Otto wrote:In TComboMetro, the combobox is done with an xbrowse.

::bClrStd := { || If( ::nArrayAt == ::nHoverAt .and. ::nArrayAt > ::nBlankRows, ;
{ CLR_WHITE, CLR_BLUE }, { CLR_BLACK, CLR_WHITE } ) }
i did not know that, so it should be easy when is based on xbrowse
by Jimmy
Sun Apr 28, 2024 6:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: combobox color
Replies: 22
Views: 564

Re: combobox color

... and then pass the color along with it. Or just pass another ARRAY with the colors. And then compare it in ::bClrStd. ::bClrStd := { || If( ::nArrayAt == ::nHoverAt .and. ::nArrayAt > ::nBlankRows, ; { CLR_WHITE, CLR_BLUE }, { CLR_BLACK, CLR_WHITE } ) } Best regards, Otto
by Otto
Sun Apr 28, 2024 5:36 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: combobox color
Replies: 22
Views: 564

Re: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna

Prueba asi y debería funcionar: oBrw:aCols[ 2 ]:bEditWhen = { || oBrw:nArrayAt != 8 } luego es el valor que esté devolviendo la expresión Prueba a hacer esto para saber el tipo de valor que hay: olbx101c:acols[4]:bEditWhen:= { || MsgInfo( ValType( olbx101c:aArrayData[olbx101c:nArrayAt][5] ...
by elmoiquique
Thu Mar 28, 2024 9:01 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna
Replies: 10
Views: 2758

Re: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna

Prueba asi y debería funcionar: oBrw:aCols[ 2 ]:bEditWhen = { || oBrw:nArrayAt != 8 } luego es el valor que esté devolviendo la expresión Prueba a hacer esto para saber el tipo de valor que hay: olbx101c:acols[4]:bEditWhen:= { || MsgInfo( ValType( olbx101c:aArrayData[olbx101c:nArrayAt][5] ...
by Antonio Linares
Thu Mar 28, 2024 8:29 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna
Replies: 10
Views: 2758

Re: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna

Hola Antonio

Una consulta,,, como desabilito un EDIT_BUTTON dentro de un xbrowse, dependiendo de la condicion

olbx101c:acols[4]:bEditWhen:= { || olbx101c:aArrayData[olbx101c:nArrayAt][5]="1" }

lo hago de esta manera pero no me funciona, sigue estando habilitado

Gracias
by elmoiquique
Thu Mar 28, 2024 4:27 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBROWSE, con Get, Combobox y CheckBox, en una misma Columna
Replies: 10
Views: 2758

Re: To Nageswrao Del Objs on TscrollPanel

... ] oCol:bLDClickData := { || Erase_Items(oBrw,oPanel) } Function Erase_Items(oBrw,oPanel,aData,oDlg,oFontSmall) local nItem:= oBrw:aArrayData[ oBrw:nArrayAt ][2] oBrw:Delete() oBrw:Refresh() DeleteControl( oPanel, nItem ) return nil function DeleteControl( oPanel, nItem ) local nTop, nLeft for n ...
by Silvio.Falconi
Mon Mar 04, 2024 8:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nageswrao Del Objs on TscrollPanel
Replies: 17
Views: 721

To Nageswrao Del Objs on TscrollPanel

... := oBrw:aCols[ i ] oCol:bLDClickData := { || Erase_Items(oBrw,oPanel) } NEXT Function Erase_Items(oBrw,oPanel) local nItem:= oBrw:aArrayData[ oBrw:nArrayAt ][2] aDel(oBrw:aArraydata,nItem-1) // xbrowser oBrw:aArraydata oPanel:aControls[nItem]:destroy() oBrw:refresh() oPanel:refresh() return nil ...
by Silvio.Falconi
Mon Feb 26, 2024 12:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nageswrao Del Objs on TscrollPanel
Replies: 17
Views: 721

show a string into xbrowse

I have a field numeric and I wish show the string + "gg"

:bEditValue :={ || str(oBrw:aArrayData[ oBrw:nArrayAt,1])+"gg" }

why not run ?
by Silvio.Falconi
Thu Dec 07, 2023 11:24 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show a string into xbrowse
Replies: 4
Views: 412

Re: copy a row of xbrowse

...   ) For many rows selected Not run ok oBrw:aSelected give number or numbers not the row oBrw:aRow is as ::aArrayData[ ::nArrayAt ] you can make For n= 1 to Len( oBrw:aselected) nAt := oBrw:aArrayData[ oBrw:aselected[n] ] aadd( acopy, aclone(nat)) next just an idea
by Silvio.Falconi
Wed Dec 06, 2023 11:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5831

Re: copy a row of xbrowse

... aCopy ),; oBrw:Unlock( .t. ), ; acopy:=NIL ,; oBrw:RefreshCurrent(), oBrw:SetFocus() ) ENDMENU but when I modify it the nRecord:= oBrowse:nArrayAt is the same
by Silvio.Falconi
Tue Dec 05, 2023 1:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5831

Re: copy a row of xbrowse

... "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 seletected to copy I ...
by Silvio.Falconi
Tue Dec 05, 2023 9:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5831

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 Otto
Tue Dec 05, 2023 9:05 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 5831
Next

Return to advanced search