FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour XBrowse 16.04 : Gets in Header Bar
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Mon May 02, 2016 12:56 AM

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
Posts: 2064
Joined: Fri Jan 06, 2006 09:28 PM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Mon May 02, 2016 04:25 PM

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!
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Wed May 04, 2016 02:45 AM
  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
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Thu Jun 09, 2016 10:55 AM

Mr. Rao ,

this will work with tdolphin object in xbrowse?

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Thu Jun 09, 2016 02:02 PM
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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Thu Jun 09, 2016 02:03 PM
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
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Thu Jun 23, 2016 04:45 PM

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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Thu Jun 23, 2016 11:06 PM

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
Posts: 195
Joined: Sun Jul 22, 2012 07:01 PM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Mon Jul 25, 2016 12:00 AM

When using TArrayData() as the datasource for an xbrowse instance, how does one set a filter?

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Mon Jul 25, 2016 12:34 AM

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
Posts: 7317
Joined: Thu Oct 18, 2012 07:17 PM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Fri Aug 12, 2016 09:46 AM
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
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
Posts: 474
Joined: Sun Oct 30, 2005 06:37 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Mon Sep 05, 2016 09:08 AM
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(::bBookMark)==EVAL(::bkeyCount)+1,.t.);
.or.::lgetbar.and.nPaintRow<=0

if ::lgetbar.and.nPaintRow==-1

cdata:=::cf1
elseif ::lgetbar.and.nPaintRow==0
cdata:=::cf2
else
cData := Eval( ::bStrData )
end

6. method edit() class txbrwcolumn

if ::nrowsel==-1
uvalue:=::cf1
elseif ::nrowsel==0
uvalue:=::cf2
else
uValue := IfNil( ::Value, ::BlankValue() )
end

if ::lgetbar

if ::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 ::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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Tue Sep 06, 2016 05:34 AM
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:SetFilter( "AGE > 40" )

Please let us know if you face any problems.
Regards



G. N. Rao.

Hyderabad, India
Posts: 811
Joined: Tue May 06, 2008 04:28 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Sat Jul 21, 2018 02:29 AM

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
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: XBrowse 16.04 : Gets in Header Bar
Posted: Sat Jul 21, 2018 02:36 AM

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

Regards



G. N. Rao.

Hyderabad, India