Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My Highlighting Grid - cell behaviour
Message
De
27/06/2001 02:12:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
26/06/2001 06:25:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00523447
Message ID:
00523994
Vues:
15
This message has been marked as the solution to the initial question of the thread.
Hi Mark,
Cause is sparse. As far as I remember that class didn't touch sparse nor selectonentry.
When readonly execute :
* ie : when
* if this.Readonly
* 
with this && or something like thisform.HighLighted1
  .Setall('SelectOnEntry',.F.) && Why below
  .Setall('Sparse',.F.)
endwith 
* return dodefault()
Do not set selectonentry in textbox level. Grids have a hierarchy to propagate some of the properties to controls contained in column. Setting SelectOnEntry at column level is sufficient (unless you set bound = .F.). I didn't include 'Column' as last parameter just for I was lazy and VFP knows where to apply :)
Cetin

>Hello All
>
>I use a simple higlighting grid
>
>In its init method it has the following code.
>
>
>WITH this
>	IF !empty(.RecordSource)
>		.nCurRec = recno(this.RecordSource)
>		.SetAll("DynamicBackColor", "IIF(RecNo(This.RecordSource) = This.nCurRec," + ;
>			str(this.cCurRecBackColor)+","+str(this.BackColor)+")", "Column")
>		.SetAll("DynamicForeColor", "IIF(RecNo(This.RecordSource) = This.nCurRec," + ;
>			str(this.cCurRecForeColor)+","+str(this.ForeColor)+")", "Column")
>	ENDIF
>ENDWITH
>
>
>Apart from this init method there is almost no other code in the class.
>
>When the user enters a cell on this grid the entire row is highlighted apart from the active cell. This is my preferred behaviour when I want my users to edit the grid.
>
>However when this grid is read only I want the entire line to be highlighted including the active cell.
>
>Since I cant figure out why the above code does not highlight the active cell in the first place I am having trouble modifying the code so that it behaves the way I want.
>
>All the fields have their select on entry property set to false so I have ruled this out as the cause.
>
>
>to summarise
>
>1. when the grid is not readonly I want the whole row highlighted apart from the current active cell.
>
>
>2. When the grid is readonly I want the entire row highlighted including the active cell.
>
>
>Many Thanks
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform