I want to be able to see the objects move as I move the dialog scroll bar similar to what happens when you scroll the list box in the script below.
I have discovered you can put objects in the list box and they will scroll. But they will not show up if they are below the displayed text.
Any thoughts?
Code: Select all
Dialog>Dialog1
object Dialog1: TForm
Left = 454
Top = 181
Width = 400
Height = 300
HelpContext = 5000
AutoScroll = True
BorderIcons = [biSystemMenu]
Caption = 'Parts Not Found'
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = True
Position = poScreenCenter
ShowHint = True
OnTaskBar = False
PixelsPerInch = 96
TextHeight = 13
object MSListBox1: tMSListBox
Left = 26
Top = 18
Width = 327
Height = 203
ItemHeight = 13
Items.Strings = (
'1'
'2'
'3'
'4'
'5'
'6'
'7'
'8'
'9'
'10'
'11'
'12'
'13'
'14'
'15'
'16'
'17'
'18'
'19'
'20'
'21'
'22'
'23'
'24'
'25')
TabOrder = 0
Text =
'1'#13#10'2'#13#10'3'#13#10'4'#13#10'5'#13#10'6'#13#10'7'#13#10'8'#13#10'9'#13#10'10'#13#10'11'#13#10'12'#13#10'13'#13#10'14'#13#10'15'#13#10'16'#13#10'17'#13#10'18'#13#10'1' +
'9'#13#10'20'#13#10'21'#13#10'22'#13#10'23'#13#10'24'#13#10'25'#13#10
SelectedIndex = -1
object MSButton1: tMSButton
Left = 121
Top = 74
Width = 75
Height = 25
Caption = 'MSButton1'
TabOrder = 9
end
end
object MSButton2: tMSButton
Left = 121
Top = 374
Width = 75
Height = 25
Caption = 'MSButton1'
TabOrder = 9
end
end
EndDialog>Dialog1
Show>Dialog1,