XBrowse 16.04 : Gets in Header Bar
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
Thanks for the feedback. So, we shall provide a buttonbar as part of xbrowse. We also keep in mind the suggestion of Mr Robb to provide the facility to display some buttons on the right.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- joseluisysturiz
- Posts: 2064
- Joined: Fri Jan 06, 2006 9:28 pm
- Location: Guatire - Caracas - Venezuela
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
Español:
Saludos, que bueno saber que es viable y beneficioso lo de la barra de botones en el xbrowse...añadiendo algo seria que los GETs de la barra del header tubiese el boton accion de los GET normales, creo los botones que sugiere el colega Robb se podrian colocar en la misma barra de botones que sugiero para que no descuadre los GETs y tamaño de las columnas, igual hay que ver el diseño como se veria e xbrowse con los cambios sugeridos. Gracias. saludos...
English(google traslator):
Greetings, good to know that it is feasible and beneficial as the button bar at the xbrowse ... adding something serious that GETs Bar header tubiese the action of normal GET button, I think the buttons colleague suggests Robb could be placed on the same button bar I suggest not to mismatch the GETs and size of the columns, you still need to see the design as Veria and xbrowse with the suggested changes. Thank you. regards...
Saludos, que bueno saber que es viable y beneficioso lo de la barra de botones en el xbrowse...añadiendo algo seria que los GETs de la barra del header tubiese el boton accion de los GET normales, creo los botones que sugiere el colega Robb se podrian colocar en la misma barra de botones que sugiero para que no descuadre los GETs y tamaño de las columnas, igual hay que ver el diseño como se veria e xbrowse con los cambios sugeridos. Gracias. saludos...

English(google traslator):
Greetings, good to know that it is feasible and beneficial as the button bar at the xbrowse ... adding something serious that GETs Bar header tubiese the action of normal GET button, I think the buttons colleague suggests Robb could be placed on the same button bar I suggest not to mismatch the GETs and size of the columns, you still need to see the design as Veria and xbrowse with the suggested changes. Thank you. regards...

Dios no está muerto...
Gracias a mi Dios ante todo!
Gracias a mi Dios ante todo!
-
- Posts: 467
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
1. 2 lines gets as optional, some filters like "a" --> "c", 100--1000
2. :bBarGetAction
Regards!
Shuming Wang
2. :bBarGetAction
Regards!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
ShumingWang wrote:1. 2 lines gets as optional, some filters like "a" --> "c", 100--1000
2. :bBarGetAction
Regards!
Shuming Wang
We will try to provide soon.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
SGS wrote:Mr. Rao ,
this will work with tdolphin object in xbrowse?
The BarGets feature works with any browse.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
-
- Posts: 1167
- Joined: Mon Oct 17, 2005 5:41 am
- Location: Belgium
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
Hi,
Is it possible to execute a function, after entering a search-text in the get fields? Maybe a valid.
Than a filter-action can be executed automaticy, without pressing the 'Set filter'-button.
Thanks,
Is it possible to execute a function, after entering a search-text in the get fields? Maybe a valid.
Than a filter-action can be executed automaticy, without pressing the 'Set filter'-button.
Thanks,
Regards,
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Marc
FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
You can use oCol:bBarGetValid to be executed as Valid function for the Get.
But there is an issue. The Valid is executed only when the Get loses focus. At the moment, pressing enter or Tab is not exiting the Get and the only way is for the user to change the focus by clicking elsewhere. We are working on this limitation.
But there is an issue. The Valid is executed only when the Get loses focus. At the moment, pressing enter or Tab is not exiting the Get and the only way is for the user to change the focus by clicking elsewhere. We are working on this limitation.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: XBrowse 16.04 : Gets in Header Bar
When using TArrayData() as the datasource for an xbrowse instance, how does one set a filter?
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
The idea is nice.
As of now that is not possible.
We shall consider how such extensions can be made possible.
Thanks for the suggestion.
As of now that is not possible.
We shall consider how such extensions can be made possible.
Thanks for the suggestion.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Silvio.Falconi
- Posts: 7251
- Joined: Thu Oct 18, 2012 7:17 pm
- Been thanked: 28 times
Re: XBrowse 16.04 : Gets in Header Bar
Nages,
Is it possible to insert the gets (to search data) into header of each column . the final user can click with the mouse on header and it open in automatic the get
I saw it into QuantumGrid component

Is it possible to insert the gets (to search data) into header of each column . the final user can click with the mouse on header and it open in automatic the get
I saw it into QuantumGrid component

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
-
- Posts: 467
- Joined: Sun Oct 30, 2005 6:37 am
- Location: Guangzhou(Canton),China
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
Another simple way to add the getbar feature:
1. txbrowse class
+ data lgetbar
txbrwcolumn class
+ data cf1 // firstline
+ data cf2 //second line
+ data cfieldname // for sql where / search
2. method headerheight() class txbrowse
headerheight + 2*::nRowheight // to place the 2 gets bar lines
3. METHOD MouseRowPos( nRow ) CLASS TXBrowse
if ::lgetbar.and.nrow<::HeaderHeight().and.nrow>=::HeaderHeight()-::nrowheight
nrowpos:=-1
elseif ::lgetbar.and.nrow<=::HeaderHeight()-::nrowheight.and.nrow>=::HeaderHeight()-::nrowheight*2
nrowpos:=-2
else
nRowPos := Int( nTmp / ::nRowHeight ) + 1
end
4. method paint() class txbrowse
if ::lgetbar
for nFor := 1 to nLast
if aCols[ nFor ] > nBrwWidth
exit
endif
oCol := ::ColAtPos( nFor )
oCol:PaintData( nRow-::nrowheight*2, aCols[ nFor ], nHeight, lHighLite, .t., nFor, -1 )
oCol:PaintData( nRow-::nrowheight, aCols[ nFor ], nHeight, lHighLite, .t., nFor, 0 )
next
//the right+1 column
oCol:PaintData( nRow-::nrowheight*2, aCols[ nLast+1 ], nHeight, lHighLite, .t., nFor, -1 )
oCol:PaintData( nRow-::nrowheight, aCols[ nLast+1], nHeight, lHighLite, .t., nFor, 0 )
endif
5.
method paintdata() class txbrwcolumn
if ::bStrData != nil.and. !EVAL(::obrw:bBookMark)==EVAL(::obrw:bkeyCount)+1,.t.);
.or.::obrw:lgetbar.and.nPaintRow<=0
if ::obrw:lgetbar.and.nPaintRow==-1
cdata:=::cf1
elseif ::obrw:lgetbar.and.nPaintRow==0
cdata:=::cf2
else
cData := Eval( ::bStrData )
end
6. method edit() class txbrwcolumn
if ::obrw:nrowsel==-1
uvalue:=::cf1
elseif ::obrw:nrowsel==0
uvalue:=::cf2
else
uValue := IfNil( ::Value, ::BlankValue() )
end
if ::obrw:lgetbar
if ::obrw:nrowsel==-1
::bOnPostEdit:={|o,v,n| if(n != VK_ESCAPE ,::cf1:=v,)}
::nEdittype:={||if(::beditblock<>nil,EDIT_GET_BUTTON,1)}
if ::beditblock<>nil.and.GetCursorPos()[2]>::nwidth+ ::nDisplayCol-10
::RunBtnAction()
end
elseif ::obrw:nrowsel==0
::bOnPostEdit:={|o,v,n| if(n != VK_ESCAPE ,::cf2:=v,)}
::nEdittype:={||if(::beditblock<>nil,EDIT_GET_BUTTON,1)}
if ::beditblock<>nil.and.GetCursorPos()[2]>::nwidth+ ::nDisplayCol-10
::RunBtnAction()
end
else
::bOnPostEdit:=if(::bOnPostEditST == nil,{|o,v,n|v:=v},::bOnPostEditST)
::nEdittype:=::nEdittypeSt
endif
end

The problem left is nedittype , can't enable bar gets always enable if nedittype<1
Shuming Wang
1. txbrowse class
+ data lgetbar
txbrwcolumn class
+ data cf1 // firstline
+ data cf2 //second line
+ data cfieldname // for sql where / search
2. method headerheight() class txbrowse
headerheight + 2*::nRowheight // to place the 2 gets bar lines
3. METHOD MouseRowPos( nRow ) CLASS TXBrowse
if ::lgetbar.and.nrow<::HeaderHeight().and.nrow>=::HeaderHeight()-::nrowheight
nrowpos:=-1
elseif ::lgetbar.and.nrow<=::HeaderHeight()-::nrowheight.and.nrow>=::HeaderHeight()-::nrowheight*2
nrowpos:=-2
else
nRowPos := Int( nTmp / ::nRowHeight ) + 1
end
4. method paint() class txbrowse
if ::lgetbar
for nFor := 1 to nLast
if aCols[ nFor ] > nBrwWidth
exit
endif
oCol := ::ColAtPos( nFor )
oCol:PaintData( nRow-::nrowheight*2, aCols[ nFor ], nHeight, lHighLite, .t., nFor, -1 )
oCol:PaintData( nRow-::nrowheight, aCols[ nFor ], nHeight, lHighLite, .t., nFor, 0 )
next
//the right+1 column
oCol:PaintData( nRow-::nrowheight*2, aCols[ nLast+1 ], nHeight, lHighLite, .t., nFor, -1 )
oCol:PaintData( nRow-::nrowheight, aCols[ nLast+1], nHeight, lHighLite, .t., nFor, 0 )
endif
5.
method paintdata() class txbrwcolumn
if ::bStrData != nil.and. !EVAL(::obrw:bBookMark)==EVAL(::obrw:bkeyCount)+1,.t.);
.or.::obrw:lgetbar.and.nPaintRow<=0
if ::obrw:lgetbar.and.nPaintRow==-1
cdata:=::cf1
elseif ::obrw:lgetbar.and.nPaintRow==0
cdata:=::cf2
else
cData := Eval( ::bStrData )
end
6. method edit() class txbrwcolumn
if ::obrw:nrowsel==-1
uvalue:=::cf1
elseif ::obrw:nrowsel==0
uvalue:=::cf2
else
uValue := IfNil( ::Value, ::BlankValue() )
end
if ::obrw:lgetbar
if ::obrw:nrowsel==-1
::bOnPostEdit:={|o,v,n| if(n != VK_ESCAPE ,::cf1:=v,)}
::nEdittype:={||if(::beditblock<>nil,EDIT_GET_BUTTON,1)}
if ::beditblock<>nil.and.GetCursorPos()[2]>::nwidth+ ::nDisplayCol-10
::RunBtnAction()
end
elseif ::obrw:nrowsel==0
::bOnPostEdit:={|o,v,n| if(n != VK_ESCAPE ,::cf2:=v,)}
::nEdittype:={||if(::beditblock<>nil,EDIT_GET_BUTTON,1)}
if ::beditblock<>nil.and.GetCursorPos()[2]>::nwidth+ ::nDisplayCol-10
::RunBtnAction()
end
else
::bOnPostEdit:=if(::bOnPostEditST == nil,{|o,v,n|v:=v},::bOnPostEditST)
::nEdittype:=::nEdittypeSt
endif
end

The problem left is nedittype , can't enable bar gets always enable if nedittype<1
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
rhlawek wrote:When using TArrayData() as the datasource for an xbrowse instance, how does one set a filter?
You can use the same syntax like DBF.
Ex: oBrw:oDbf:SetFilter( "AGE > 40" )
Please let us know if you face any problems.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: XBrowse 16.04 : Gets in Header Bar
Mr. Rao,
:lSeekBar works with MariaDB RS, but :lGetBar does not show ...
Not supported??

:lSeekBar works with MariaDB RS, but :lGetBar does not show ...
Not supported??

Kind Regards,
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
Frances
Fivewin for xHarbour v18.07
xHarbour v1.2.3.x
BCC 7.3 + PellesC8 ( Resource Compiler only)
ADS 10.1 / MariaDB
Crystal Reports 8.5/9.23 DE
xMate v1.15
- nageswaragunupudi
- Posts: 10733
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 11 times
- Contact:
Re: XBrowse 16.04 : Gets in Header Bar
lGetBar works for all datasources. It is independent of the datasource.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India