XBrowse 16.04 : Gets in Header Bar

User avatar
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

Post by nageswaragunupudi »

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
User avatar
joseluisysturiz
Posts: 2064
Joined: Fri Jan 06, 2006 9:28 pm
Location: Guatire - Caracas - Venezuela
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by joseluisysturiz »

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... :shock:

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... :shock:
Dios no está muerto...

Gracias a mi Dios ante todo!
ShumingWang
Posts: 467
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by ShumingWang »

1. 2 lines gets as optional, some filters like "a" --> "c", 100--1000
2. :bBarGetAction
Regards!
Shuming Wang
http://www.xtech2.top
Mobile:(86)13802729058
Email:100200651@qq.com
QQ:100200651
Weixin: qq100200651
MGA
Posts: 1271
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by MGA »

Mr. Rao ,

this will work with tdolphin object in xbrowse?
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
User avatar
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

Post by nageswaragunupudi »

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
User avatar
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

Post by nageswaragunupudi »

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
Marc Vanzegbroeck
Posts: 1167
Joined: Mon Oct 17, 2005 5:41 am
Location: Belgium
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by Marc Vanzegbroeck »

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,
Regards,
Marc

FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
User avatar
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

Post by nageswaragunupudi »

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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
rhlawek
Posts: 194
Joined: Sun Jul 22, 2012 7:01 pm

Re: XBrowse 16.04 : Gets in Header Bar

Post by rhlawek »

When using TArrayData() as the datasource for an xbrowse instance, how does one set a filter?
User avatar
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

Post by nageswaragunupudi »

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.
Regards

G. N. Rao.
Hyderabad, India
User avatar
Silvio.Falconi
Posts: 7251
Joined: Thu Oct 18, 2012 7:17 pm
Been thanked: 28 times

Re: XBrowse 16.04 : Gets in Header Bar

Post by Silvio.Falconi »

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
Image
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
ShumingWang
Posts: 467
Joined: Sun Oct 30, 2005 6:37 am
Location: Guangzhou(Canton),China
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by ShumingWang »

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
Image
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
User avatar
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

Post by nageswaragunupudi »

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
User avatar
fraxzi
Posts: 811
Joined: Tue May 06, 2008 4:28 am
Location: Philippines
Contact:

Re: XBrowse 16.04 : Gets in Header Bar

Post by fraxzi »

Mr. Rao,

: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
User avatar
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

Post by nageswaragunupudi »

lGetBar works for all datasources. It is independent of the datasource.
Regards

G. N. Rao.
Hyderabad, India
Post Reply