Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 28.09.04 07:30 
Hallo Leute,
weiss jemand wie ich einem selbst erstellten Stringgrid wärend der Laufzeit die Options zuweisen kann?
ich möchte nämlich "gocolmoving" auf true setzen.

mfg

moloch
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 28.09.04 07:46 
ausblenden Quelltext
1:
  Grid1.Options := Grid1.Options + [goColMoving];					
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 28.09.04 07:51 
danke schön,
das klappt
sag mal weisst du auch wie man einen zeilenumbruch sauber hinbekommt im stringgrid.das steht bestimmt schon irgendwo im forum aber die suche funktioniert nicht richtig.

mfg
moloch
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 28.09.04 08:01 
Habe ich bisher noch nicht gebraucht.
Aber versuche mal folgendes:
ausblenden Quelltext
1:
  grid1.cells[x,y] := 'erster teil des strings' + #13#10 + 'zweiter teil';					

x und y müssen durch deine eigenen Werte ersetzt werden. #13#10 entsprechen eine Carriage-Reurn und Line-Feed (als einem Zeilenumbruch), wie er früher mal definiert wurde.
Ist aber ungetestet.
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 28.09.04 08:19 
das klappt leider nicht.
da sieht man dann in der ansicht nur 2 Striche anstelle eines Zeilenumbruchs.

mfg
moloch
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 28.09.04 08:34 
Das habe ich befürchtet. Vielleicht weiß da noch jemand besser bescheid.
Eventuell kannst du ja auch nach einer anderen String-Grid-Komponente im Internet suchen. Das Problem hat bestimmt schon jemand gelöst.
grayfox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 800

win98, winXP
D4 Standard; D6 Personal
BeitragVerfasst: Di 28.09.04 08:39 
hallo moloch!

sieh dir dazu --> das an. damit sollte dein problem gelöst sein.

mfg, stefan
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 28.09.04 09:32 
ja das hab ich auch schon gefunden.es klappt auch.
mfg
moloch