Autor Beitrag
hassedelphi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101

WIN XP
D7 Enterprise
BeitragVerfasst: Mi 13.08.03 19:59 
hi
weiß jmd, wie man beispielsweise NUR die 1 und 5 zeile im stringgrid fixed? :)

_________________
you're not be able to help, that you're an human
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Mi 13.08.03 21:08 
goEditing auf false setzen. Bei Options des Grid im OI.

_________________
Gruß
Hansa
lambruco
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 100

Win 2000/2000 Server/XP
D6 Prof.
BeitragVerfasst: Mi 13.08.03 22:13 
Wenn ich hassedelphi richtig verstanden habe, dann möchte er
folgendes:

Fix Fix Fix
Free Free Free
Free Free Free
Fix Fix Fix

Naja, sieht ein wenig arm aus, aber mit dem normalen StringGrid ist
das nicht möglich.
Aber es gibt bestimt eine freie Komponente, die das kann.
Einfach mal googeln

_________________
Wer Rechtschreibfehler findet, kann Sie behalten
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Do 14.08.03 02:17 
Wieso ? Mit dem normalen Stringgrid ist das schon möglich.

ausblenden Delphi-Quelltext
1:
2:
if row = bla then
   goEditing :=  true

_________________
Gruß
Hansa
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Do 14.08.03 03:57 
Das ist nicht das, was er meint. Kuck dir mal an, wie eien "fixed row" aussieht.
hassedelphi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101

WIN XP
D7 Enterprise
BeitragVerfasst: Do 14.08.03 09:21 
dann werd ich mal googeln! THX :D

_________________
you're not be able to help, that you're an human
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Do 14.08.03 10:40 
Mit goEditing := false kann ich verhindern, daß in eine Zelle etwas eingegeben wird. Google ist auch kein Allheilmittel. Geht es um die Farbgebung, dann suche mal lieber nach Canvas und Rect.

@Luckie: Warum sagst Du das nicht selber ?

Ansonsten mußt Du mal genauer sagen was Du willst.

_________________
Gruß
Hansa
Terra23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 872

Win 8
Delphi 7
BeitragVerfasst: Do 14.08.03 12:44 
@Hansa: Eine FixedRow bzw. FixedCol ist doch grau und etwas dicker (wirkt zumindest so).

Ich denke auch, Hassedelphi will bestimmte Zeilen so machen, wobei dein Vorschlag vielleicht aufs Selbe rauskommt, wenn er zusätzlich versucht, die Color der Zeilen auf grau zu setzen (wenn das geht). :-)

_________________
Hasta La Victoria Siempre
hansa
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3079
Erhaltene Danke: 9



BeitragVerfasst: Do 14.08.03 19:04 
Dann soll er eben die Zeilen anders färben. Zuerst muß allerdings geklärt werden was er überhaupt will. Die property "Canvas" gibt es jedenfalls im DBgrid.

_________________
Gruß
Hansa
hassedelphi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 101

WIN XP
D7 Enterprise
BeitragVerfasst: Fr 15.08.03 08:17 
hansa hat folgendes geschrieben:
Zuerst muß allerdings geklärt werden was er überhaupt will.


wie jeder weiß, kann man im oi die fixedrows/fixedecols eigenschaft vom stringgrid verändern. problem ist, dass er bei der eingabe von zb. dem wert 5 die ersten 5 zeilen/spalten fixed. ich wollte wissen, ob irgendjemand weiß, wie ich nur bestimmte zeilen/spalten fixen kann.
verstanden 8)

_________________
you're not be able to help, that you're an human