home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2003 February
/
Chip_2003-02_cd1.bin
/
zkuste
/
delphi
/
kompon
/
d3456
/
PICSHOW.ZIP
/
DBDemo
/
Main.dfm
/
Main.txt
Wrap
Text File
|
2002-09-26
|
7KB
|
342 lines
object MainForm: TMainForm
Left = 188
Top = 74
AutoScroll = False
Caption = 'TDBPicShow Demo'
ClientHeight = 473
ClientWidth = 511
Color = clBtnFace
Font.Charset = DEFAULT_CHARSET
Font.Color = clWindowText
Font.Height = -11
Font.Name = 'MS Sans Serif'
Font.Style = []
OldCreateOrder = True
Position = poScreenCenter
OnActivate = FormActivate
OnCreate = FormCreate
PixelsPerInch = 96
TextHeight = 13
object DBPicShow: TDBPicShow
Tag = 8
Left = 0
Top = 28
Width = 511
Height = 365
Hint = 'Double click here for the next image'
DataField = 'PicPicture'
DataSource = DataSource
Align = alClient
AutoSize = False
Center = True
Color = clGray
ParentColor = False
ParentShowHint = False
ShowHint = True
StretchFine = True
Style = 0
TabOrder = 4
OnComplete = DBPicShowComplete
OnCustomDraw = DBPicShowCustomDraw
OnDblClick = DBPicShowDblClick
OnProgress = DBPicShowProgress
OnAfterLoadPicture = DBPicShowAfterLoadPicture
OnBeforeLoadPicture = DBPicShowBeforeLoadPicture
end
object Panel1: TPanel
Left = 0
Top = 393
Width = 511
Height = 32
Align = alBottom
BorderStyle = bsSingle
Ctl3D = False
ParentCtl3D = False
ParentShowHint = False
ShowHint = True
TabOrder = 0
object Label1: TLabel
Left = 8
Top = 9
Width = 26
Height = 13
Caption = '&Style:'
FocusControl = Style
end
object Label2: TLabel
Left = 277
Top = 9
Width = 25
Height = 13
Caption = 'Ste&p:'
FocusControl = Step
end
object Bevel1: TBevel
Left = 269
Top = 2
Width = 2
Height = 26
end
object Bevel2: TBevel
Left = 424
Top = 2
Width = 2
Height = 26
end
object Label3: TLabel
Left = 349
Top = 9
Width = 30
Height = 13
Caption = '&Delay:'
FocusControl = Delay
end
object Step: TSpinEdit
Left = 306
Top = 4
Width = 37
Height = 22
Ctl3D = True
MaxLength = 3
MaxValue = 200
MinValue = 1
ParentCtl3D = False
TabOrder = 4
Value = 1
OnChange = StepChange
end
object Style: TSpinEdit
Left = 38
Top = 4
Width = 48
Height = 22
Ctl3D = True
MaxLength = 3
MaxValue = 0
MinValue = 0
ParentCtl3D = False
TabOrder = 0
Value = 0
OnChange = StyleChange
end
object Threaded: TCheckBox
Left = 435
Top = 7
Width = 66
Height = 17
Caption = '&Threaded'
TabOrder = 6
OnClick = ThreadedClick
end
object ManualStyle: TRadioButton
Left = 91
Top = 7
Width = 59
Height = 17
Hint =
'When manual is checked, use scroll bar below to animate the imag' +
'e'
Caption = 'Manual'
TabOrder = 1
OnClick = ManualStyleClick
end
object TurnStyle: TRadioButton
Left = 154
Top = 7
Width = 44
Height = 17
Caption = 'Turn'
Checked = True
TabOrder = 2
TabStop = True
OnClick = ManualStyleClick
end
object RandomStyle: TRadioButton
Left = 203
Top = 7
Width = 59
Height = 17
Caption = 'Random'
TabOrder = 3
OnClick = ManualStyleClick
end
object Delay: TSpinEdit
Left = 382
Top = 4
Width = 37
Height = 22
Ctl3D = True
MaxValue = 0
MinValue = 0
ParentCtl3D = False
TabOrder = 5
Value = 1
OnChange = DelayChange
end
end
object Panel2: TPanel
Left = 0
Top = 0
Width = 511
Height = 28
Align = alTop
Alignment = taLeftJustify
BorderStyle = bsSingle
Ctl3D = False
ParentCtl3D = False
TabOrder = 1
object LoadPicBtn: TSpeedButton
Left = 374
Top = 2
Width = 131
Height = 22
Caption = 'Load image from file...'
OnClick = LoadPicBtnClick
end
object FreeMemory: TPanel
Left = 1
Top = 1
Width = 125
Height = 24
Hint = 'Free Memory'
BevelOuter = bvLowered
Caption = 'Free Memory'
ParentShowHint = False
ShowHint = False
TabOrder = 0
end
object DBNavigator1: TDBNavigator
Left = 129
Top = 1
Width = 234
Height = 24
DataSource = DataSource
VisibleButtons = [nbFirst, nbPrior, nbNext, nbLast, nbInsert, nbDelete, nbEdit, nbPost, nbCancel]
Flat = True
TabOrder = 1
end
end
object Panel3: TPanel
Left = 0
Top = 457
Width = 511
Height = 16
Align = alBottom
BevelOuter = bvNone
TabOrder = 3
object ScrollBar: TScrollBar
Left = 0
Top = 0
Width = 511
Height = 16
Hint = 'Manual Progress Controller'
Align = alBottom
Enabled = False
LargeChange = 10
PageSize = 0
ParentShowHint = False
ShowHint = True
TabOrder = 0
OnChange = ScrollBarChange
end
end
object Panel4: TPanel
Left = 0
Top = 425
Width = 511
Height = 32
Align = alBottom
BorderStyle = bsSingle
Ctl3D = False
ParentCtl3D = False
ParentShowHint = False
ShowHint = True
TabOrder = 2
object Label4: TLabel
Left = 132
Top = 9
Width = 217
Height = 13
Caption = 'Show the next image after seconds'
FocusControl = ShowPause
end
object Bevel3: TBevel
Left = 362
Top = 2
Width = 2
Height = 26
end
object Auto: TCheckBox
Left = 6
Top = 7
Width = 115
Height = 17
Caption = 'Auto Change Image'
TabOrder = 0
OnClick = AutoClick
end
object ShowPause: TSpinEdit
Left = 261
Top = 4
Width = 42
Height = 22
Ctl3D = True
MaxLength = 3
MaxValue = 600
MinValue = 1
ParentCtl3D = False
TabOrder = 1
Value = 2
OnChange = ShowPauseChange
end
object ClearOldImage: TCheckBox
Left = 375
Top = 7
Width = 125
Height = 17
Caption = 'Clear Previous Image '
TabOrder = 2
end
end
object Timer: TTimer
Enabled = False
Interval = 2000
OnTimer = TimerTimer
Left = 16
Top = 56
end
object ADOConnection: TADOConnection
ConnectionString =
'Provider=Microsoft.Jet.OLEDB.4.0;Password="";User ID=Admin;Data ' +
'Source=PicDB.mdb;Mode=Share Deny None;Extended Properties="";Loc' +
'ale Identifier=1033;Jet OLEDB:System database="";Jet OLEDB:Regis' +
'try Path="";Jet OLEDB:Database Password="";Jet OLEDB:Engine Typ'
LoginPrompt = False
Provider = 'Microsoft.Jet.OLEDB.4.0'
Left = 16
Top = 88
end
object ADOTable: TADOTable
Connection = ADOConnection
CursorType = ctStatic
EnableBCD = False
TableName = 'PicTable'
Left = 44
Top = 88
end
object DataSource: TDataSource
DataSet = ADOTable
Left = 72
Top = 88
end
object OpenPictureDialog: TOpenPictureDialog
Filter =
'All supported images (*.bmp;*.jpeg;*.jpg)|*.bmp;*.jpeg;*.jpg|Win' +
'dows bitmaps (*.bmp)|*.bmp|JPEG images (*.jpeg)|*.jpeg|JPG image' +
's (*.jpg)|*.jpg'
Title = 'Load Picture'
Left = 44
Top = 56
end
end