AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

VST einzelne Zellen editieren

Ein Thema von Piro · begonnen am 13. Jul 2010 · letzter Beitrag vom 14. Jul 2010
Antwort Antwort
Benutzerbild von Piro
Piro

Registriert seit: 14. Jul 2003
Ort: Flintbek
810 Beiträge
 
Delphi XE2 Professional
 
#1

VST einzelne Zellen editieren

  Alt 13. Jul 2010, 23:19
Moin zusammen,

ich habe ein VST, welches 5 Zeilen und 6 Spalten hat. Ich möchte gerne das man in die irgendeine Zelle klicken und diese dann editieren kann.

Welche Option muss ich noch setzen bzw. wieder deaktivieren? Ich finde es einfach nicht.

Hier die Eigenschaften meines VST.
Delphi-Quellcode:
object vst_contact_contacts: TVirtualStringTree
      Left = 0
      Top = 0
      Width = 709
      Height = 161
      Cursor = crHandPoint
      Align = alClient
      BevelInner = bvNone
      BevelOuter = bvNone
      BorderStyle = bsNone
      ButtonFillMode = fmWindowColor
      CheckImageKind = ckXP
      Color = clWhite
      Colors.FocusedSelectionColor = clBlack
      Ctl3D = False
      DefaultNodeHeight = 25
      DrawSelectionMode = smBlendedRectangle
      Header.AutoSizeIndex = -1
      Header.Background = clWhite
      Header.Font.Charset = DEFAULT_CHARSET
      Header.Font.Color = clWindowText
      Header.Font.Height = -11
      Header.Font.Name = 'Tahoma'
      Header.Font.Style = [fsBold]
      Header.Height = 20
      Header.MainColumn = 1
      Header.Options = [hoColumnResize, hoDrag, hoOwnerDraw, hoShowImages, hoShowSortGlyphs, hoVisible]
      Header.Style = hsXPStyle
      Indent = 0
      LineStyle = lsSolid
      ParentCtl3D = False
      ParentShowHint = False
      RootNodeCount = 5
      ScrollBarOptions.ScrollBarStyle = sbmFlat
      ShowHint = True
      TabOrder = 0
      TreeOptions.AutoOptions = [toAutoDropExpand, toAutoScroll, toAutoScrollOnExpand, toAutoSort, toAutoTristateTracking, toAutoDeleteMovedNodes, toDisableAutoscrollOnFocus]
      TreeOptions.MiscOptions = [toEditable, toFullRepaintOnResize, toVariableNodeHeight]
      TreeOptions.PaintOptions = [toShowButtons, toShowDropmark, toShowHorzGridLines, toShowVertGridLines, toThemeAware, toUseBlendedImages, toUseBlendedSelection]
      ExplicitHeight = 171
      Columns = <
        item
          Position = 0
          Width = 120
          WideText = 'Name'
        end
        item
          Position = 1
          Width = 90
          WideText = 'Department'
        end
        item
          Position = 2
          Width = 120
          WideText = 'Phone'
        end
        item
          Position = 3
          Width = 120
          WideText = 'Mobile'
        end
        item
          Position = 4
          Width = 120
          WideText = 'Fax'
        end
        item
          Position = 5
          Width = 200
          WideText = 'Email'
        end>
      WideDefaultText = ''
    end
Vielen Dank im Voraus.

Sven
  Mit Zitat antworten Zitat
generic

Registriert seit: 24. Mär 2004
Ort: bei Hannover
2.415 Beiträge
 
Delphi XE5 Professional
 
#2

AW: VST einzelne Zellen editieren

  Alt 14. Jul 2010, 00:05
Das Edit musst du selbst programmieren.
Schau dir die VST Demos an, dort sind Beispiele dazu.
Der VST hat dazu spezielle Interfaces und Ereignisse für so etwas.
Coding BOTT - Video Tutorials rund um das Programmieren - https://www.youtube.com/@codingbott
  Mit Zitat antworten Zitat
Benutzerbild von Gausi
Gausi
Online

Registriert seit: 17. Jul 2005
847 Beiträge
 
Delphi 11 Alexandria
 
#3

AW: VST einzelne Zellen editieren

  Alt 14. Jul 2010, 06:29
Für das Selektieren einer einzelnen Zelle fehlt
TreeOptions.SelectionOptions = [toExtendedFocus]
The angels have the phone box.
  Mit Zitat antworten Zitat
Benutzerbild von Piro
Piro

Registriert seit: 14. Jul 2003
Ort: Flintbek
810 Beiträge
 
Delphi XE2 Professional
 
#4

AW: VST einzelne Zellen editieren

  Alt 14. Jul 2010, 15:46
Danke für die Antworten.

Sven
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:34 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz