xBrowse editing color

xBrowse editing color

Postby Otto » 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
Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6033
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse editing color

Postby Otto » 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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6033
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse editing color

Postby nageswaragunupudi » Tue Apr 09, 2013 4:07 am

You may use
oCol:bClrEdit and
oCol:oEditFont
Regards

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

Re: xBrowse editing color

Postby Otto » Tue Apr 09, 2013 6: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6033
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse editing color

Postby nageswaragunupudi » Tue Apr 09, 2013 7: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
User avatar
nageswaragunupudi
 
Posts: 10259
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse editing color

Postby Otto » Tue Apr 09, 2013 8: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
Image
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6033
Joined: Fri Oct 07, 2005 7:07 pm

Re: xBrowse editing color

Postby ukoenig » 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

Image

Image

Code: Select all  Expand view

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.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: xBrowse editing color

Postby nageswaragunupudi » Tue Apr 09, 2013 1: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
User avatar
nageswaragunupudi
 
Posts: 10259
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: xBrowse editing color

Postby Otto » Tue Apr 09, 2013 8: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
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6033
Joined: Fri Oct 07, 2005 7:07 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 12 guests