XBrowse 16.04 : RecordSelector

XBrowse 16.04 : RecordSelector

Postby nageswaragunupudi » Tue Apr 26, 2016 9:42 am

Till now we could toggle display of Record Selector and set width of record selector. From FWH 16.04 we can display text, change or omit pointer bitmap, display text or icon in recsel header, text on recsel footer and assign action and/or popup menu on click on recsel header.

Following screen-shots show some of the possiblities and also the code required.

Text in header, body and footer of record selector:

Image

Row captions on record selector and icon on header:
Image

Excel like look:
Image

Custom bitmap for record selector pointer and
Popup menu on click of recselctor icon.
Image
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: XBrowse 16.04 : RecordSelector

Postby Silvio.Falconi » Tue Apr 26, 2016 9:57 am

WORDERFULL

MANY MANY CONGRATULATIONS
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7047
Joined: Thu Oct 18, 2012 7:17 pm

Re: XBrowse 16.04 : RecordSelector

Postby bpd2000 » Wed Apr 27, 2016 12:37 pm

Image
Regards, Greetings

Try FWH. You will enjoy it's simplicity and power.!
User avatar
bpd2000
 
Posts: 153
Joined: Tue Aug 05, 2014 9:48 am
Location: India

Re: XBrowse 16.04 : RecordSelector

Postby ukoenig » Wed Apr 27, 2016 2:57 pm

GREAT extensions :shock:

just a small correction possible ?

I added and prepared these options in my xbrowse-config-section.
I noticed only a part of the recordselector-area is repainted after a color-change at runtime.
Is it possible to fix it as well ?

The prepared xBrowse-selection-area

Image

best regards
Uwe :?:
Last edited by ukoenig on Thu Apr 28, 2016 12:19 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: XBrowse 16.04 : RecordSelector

Postby nageswaragunupudi » Wed Apr 27, 2016 3:07 pm

After you change record selector color during runtime, are you calling oBrw:Refresh() ?
I think oBrw:Refresh() should repaint fully with new color.
Please let me know.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: XBrowse 16.04 : RecordSelector

Postby ukoenig » Wed Apr 27, 2016 3:17 pm

Mr. Rao,

The color-change-button and browser-repaint
Everything is repainted, but for the selector-column, only the background of the selector-image-is changed.

---------------

REDEFINE BTNBMP oBtn[16] OF oDlg4 ;
ID 595 PIXEL 2007 ;
NOBORDER ;
PROMPT "&r) Ausw.Spalte" ;
FILENAME c_Pfad1 + "Paint1.Bmp" ;
ACTION ( aVal[107] := ChooseColor(aVal[107], 2 ), oBBmp[16]:Refresh(), ;
SHOW_XBRW( oBrw, aVal ) ) ;
FONT oFontSys ;
LEFT

// -- the BROWSER-update ( this function is called on any change to show the result )-------

FUNCTION SHOW_XBRW( oBrw, aVal )

oBrw:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrw:nColDividerStyle := LINESTYLE_BLACK
oBrw:nRowDividerStyle := LINESTYLE_BLACK
oBrw:bClrStd := { || If( oBrw:KeyNo() % 2 == 0, ;
{ If( ( oBrw:cAlias )->( Deleted() ), 255, aVal[103] ), aVal[102] }, ;
{ If( ( oBrw:cAlias )->( Deleted() ), 255, aVal[101] ), aVal[100] } ) }
oBrw:bClrSel := ;
oBrw:bClrSelFocus := { || { If( ( oBrw:cAlias )->( Deleted() ), 255, aVal[105] ), aVal[104] } }
oBrw:nRecSelColor := aVal[107] // selector-col background
oBrw:lHScroll := .T.
oBrw:lVScroll := .T.
oBrw:lFooter := .T.
oBrw:nRowHeight := 25
oBrw:SetFont( oFontSys )

oBrw:Refresh()

RETURN NIL

----------------------

regards
Uwe :?:
Last edited by ukoenig on Thu Apr 28, 2016 9:51 am, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: XBrowse 16.04 : RecordSelector

Postby nageswaragunupudi » Thu Apr 28, 2016 9:41 am

Mr Uwe

Thanks for pointing out.
We shall take care of it before release.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: XBrowse 16.04 : RecordSelector

Postby ukoenig » Thu Apr 28, 2016 12:21 pm

Mr. Rao,

just a idea.
I don't know if it is possible somthing like

oBrw1:nRecSelColor := { IIF( ( oBrw1:cAlias )->( Deleted() ), 255, aVal[103] ) }
No need to show something in a extra column

like a condition can be defined in
oBrw:aCols[ 2 ]:bClrStd := {|| { aVal[101], aVal[100] } }

Image

best regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: XBrowse 16.04 : RecordSelector

Postby nageswaragunupudi » Thu Apr 28, 2016 12:27 pm

In other words, you are suggesting a codeblock for recordselector color also similar to bClrStd for a cell.
Nice suggestion, we shall look into this.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10620
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 86 guests