FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse editing color
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
xBrowse editing color
Posted: Mon Apr 08, 2013 10:42 PM
Dear Mr. Rao,
is it possible to color the columns when we use inline editing like shown in 2).
Thanks in advance
Otto
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse editing color
Posted: Mon Apr 08, 2013 11:18 PM

Dear Mr. Rao,
is it possible to change the font for the column which is edited.
Thanks in advance
Otto

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse editing color
Posted: Tue Apr 09, 2013 04:07 AM

You may use
oCol:bClrEdit and
oCol:oEditFont

Regards



G. N. Rao.

Hyderabad, India
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse editing color
Posted: Tue Apr 09, 2013 06:19 AM

Dear mr. Rao,
Thank you. This is working fine.
Is it also possible to set the color of the get field inside the column.
Thanks in advance
Otto

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse editing color
Posted: Tue Apr 09, 2013 07:24 AM
Is it also possible to set the color of the get field inside the column.

That's what oCol:bClrEdit does.
Or did I not understand your requirement?
Regards



G. N. Rao.

Hyderabad, India
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse editing color
Posted: Tue Apr 09, 2013 08:02 AM
Dear Mr. Rao,
I mean the color of the get inside the column which is edited.
I attach a picture.
Best regards,
Otto
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: xBrowse editing color
Posted: Tue Apr 09, 2013 12:51 PM
Otto,

I'm looking for the same solution.
The columns with getfields are shown with a extra color
I still added 2 row-group-colors

like You are using :

Handy = Color1
Festnetz = Color2
Festnetz = Color2
Email = Color1
Emaii = Color1

I show the same structure-logic with images :
The get-field ZOOM is used for fineadjustment and can be selected as well from a TSelector





Code (fw): Select all Collapse
oCol := oBrw:AddCol()
oCol:cHeader  := "Zoom"
oCol:nWidth   :=  38
oCol:cEditPicture := '9.9'
oCol:bEditValue := { || _FIELD->ZOOM }
oCol:nDataStyle := oCol:DefStyle( AL_RIGHT, .T.)
oCol:nEditType  := EDIT_GET
oCol:bOnPostEdit := {|o, v| ( NET_RLOCK( 5, 5 ), ;
        _FIELD->ZOOM := v, DBUNLOCK() ), ;
        DBCOMMIT(), NET_ULOCK(), ;
        oBrw:Refresh(), oBrw:SetFocus() }
oCol:bClrstd := {|| { 16777215, 8421376 } }  // White / Green   14248960 = blue
oCol:bClrEdit := {|| { 0, 255 } } 
oCol:oEditFont := oFont3


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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse editing color
Posted: Tue Apr 09, 2013 01:59 PM

Initially the entire get text is selected. What is seen is the select color of Get.
Once the user starts typing ( or in Fast Edit, the get is invoked by typing a character ) it is the specified get color you see

Regards



G. N. Rao.

Hyderabad, India
Posts: 6983
Joined: Fri Oct 07, 2005 07:07 PM
Re: xBrowse editing color
Posted: Tue Apr 09, 2013 08:24 PM

Hello Uwe,
in my case if I change method edit and assign cPic := "@K" and comment
// ::oEditGet:SelectAll()
I get the behaviour I want.
Best regards,
Otto

Continue the discussion