Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi memo in Scrollbox nicht scrollen (https://www.delphipraxis.net/9258-memo-scrollbox-nicht-scrollen.html)

Micha 22. Sep 2003 09:33


memo in Scrollbox nicht scrollen
 
Ich habe ein Memo-Feld in einer Scrollbox.

Beim Herunterscrollen soll das Memo-Feld aber genau an dieser Position stehen bleiben und eben nicht mitgescrollt werden.

Gibt es eine Möglichkeit dies zu realisieren?

Mario 22. Sep 2003 14:00

Re: memo in Scrollbox nicht scrollen
 
Hallo,

Du musst das Memo doch nicht in der Scrollbox positionieren, sondern auf gleicher Ebene, wie die Scrollbox -> dann sollte es gehen. Hier eine Beispiel-DFM:
Delphi-Quellcode:
object Form1: TForm1
  Left = 227
  Top = 107
  Width = 783
  Height = 540
  Caption = 'Form1'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Shell Dlg 2'
  Font.Style = []
  OldCreateOrder = False
  PixelsPerInch = 96
  TextHeight = 13
  object ScrollBox1: TScrollBox
    Left = 69
    Top = 12
    Width = 349
    Height = 355
    TabOrder = 0
    object Panel1: TPanel
      Left = 90
      Top = 111
      Width = 185
      Height = 600
      Caption = 'Panel1'
      TabOrder = 0
    end
  end
  object Memo1: TMemo
    Left = 105
    Top = 54
    Width = 185
    Height = 89
    Lines.Strings = (
      'Memo1')
    TabOrder = 1
  end
end


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:38 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