home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Mother of All Windows Books
/
CD-MOM.iso
/
cd_mom
/
newsletr
/
vbz
/
vbz1-3
/
marq2.bas
< prev
next >
Wrap
BASIC Source File
|
1992-04-24
|
1KB
|
38 lines
DefInt A-Z
Global Const AppName$ = "Marq II"
Sub CleanUp ()
Unload frmsave
End Sub
Sub InitSave ()
frmsave.timSave.Interval = 100
frmsave.timSave.Enabled = True
frmsave.Show
frmsave!txtSaverText.Text = GetSSIniString("SaverText", "Screen Saver Wizard")
'Make the form font the same as the textbox
frmsave.FontName = frmsave!txtSaverText.FontName
frmsave.FontSize = frmsave!txtSaverText.FontSize
'See how wide an "M" would be on the form, and multiply
'that width by the number of chars in the textbox.
'That would be the absolute max width the textbox
'needs to be to show its text
twidth = Len(frmsave!txtSaverText.Text) * frmsave.TextWidth("M")
frmsave!txtSaverText.Width = twidth
End Sub
Sub TimerProc ()
timetogo = False
frmsave!txtSaverText.Left = frmsave!txtSaverText.Left + 50
If frmsave!txtSaverText.Left >= frmsave.ScaleWidth Then frmsave!txtSaverText.Left = -frmsave!txtSaverText.Width
End Sub