Autor Beitrag
winx
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249



BeitragVerfasst: Di 19.07.05 15:50 
Hi,

hab ne VST mit 4 Columns. Nun möchte ich, das man mit den Richtungstasten durch die StringTree navigieren und beim Betätigen der Taste Enter, ne Eingabe beginnen kann.

Hat da jmd ein Beispiel, weiss gar nich, wo ich anfangen soll,

danke,
winx
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 19.07.05 16:27 
Hab ich gerade vor ein paar Tagen selber erst gerafft:

1. Navigieren: Geht von alleine ;-)

2. Geht auch automatisch ;-), durch nen "langsamen Doppelklick" oder F2. Wie mans mit Enter macht, weiss ich jetzt nicht genau. Böser Trick: Im OnKeyDown:
ausblenden Delphi-Quelltext
1:
2:
3:
case key of
    VK_Return: key := VK_F2;
end;

Hinweis: TreeOptions->MiscOptions->goEditable auf True setzen.
Soll nicht immer alles editierbar sein: Im Ereignis OnEditing Allowed auf True oder False setzen.

3. Daten hinter dem Tree nach Ende von Edit aktualisieren: Ereignis OnNewText.

_________________
We are, we were and will not be.
winx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249



BeitragVerfasst: Di 19.07.05 16:41 
Danke!!!

Und wie kann ich dann navigieren?

Hab das Problem dass ich, nachdem ich in einem Feld was geändert habe und ich zum nächsten will (VK_RIGHT) springt er mir IMMER in die erste Zeile , ganz komisch.

danke
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8548
Erhaltene Danke: 477

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Di 19.07.05 16:49 
Das navigieren geht ohne irgendein zutun. Das macht die komponente von ganz von alleine. Irgendwelche OnKeyDowns mit VK_Right sind da gar nicht nötig...

_________________
We are, we were and will not be.
winx Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 249



BeitragVerfasst: Mi 20.07.05 07:55 
ich kann nur nach oben und nach unten navigieren, das navigieren nach links oder rechts funktioniert nicht. Muß ich dazu noch was einstellen?