home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Select: Games Special 11
/
CD_1.iso
/
wingames
/
amida
/
querynum.frm
< prev
next >
Wrap
Text File
|
1995-03-16
|
5KB
|
175 lines
VERSION 2.00
Begin Form QueryNum
BorderStyle = 3 'î┼ÆΦ(2ÅdÉⁿ)
Caption = "Amida - Setup"
ControlBox = 0 'False
FontBold = -1 'True
FontItalic = 0 'False
FontName = "System"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 2955
KeyPreview = -1 'True
Left = 1890
LinkTopic = "Form2"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2550
ScaleWidth = 3450
Top = 2970
Width = 3570
Begin CheckBox UnwillingPrize
Caption = "Don't want to win"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 252
Left = 840
TabIndex = 2
Top = 1320
Width = 2172
End
Begin CommandButton CancelCmd
Cancel = -1 'True
Caption = "&Cancel"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 492
Left = 1920
TabIndex = 4
Top = 1800
Width = 1212
End
Begin CommandButton OkCmd
Caption = "&OK"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 495
Left = 360
TabIndex = 3
Top = 1800
Width = 1215
End
Begin TextBox NPrizesTxt
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 324
Left = 1920
TabIndex = 1
Top = 720
Width = 612
End
Begin TextBox NLotsTxt
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 324
Left = 1920
TabIndex = 0
Top = 240
Width = 612
End
Begin Label Label2
Alignment = 2 'Æåë¢æ╡éª
Caption = "Number of wins"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 120
TabIndex = 6
Top = 735
Width = 1695
End
Begin Label Label1
Alignment = 2 'Æåë¢æ╡éª
Caption = "Number of lines"
FontBold = -1 'True
FontItalic = 0 'False
FontName = "Arial"
FontSize = 9.75
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 255
Left = 120
TabIndex = 5
Top = 270
Width = 1815
End
End
Dim Shared IsNotFIrst As Integer
Sub CancelCmd_Click ()
DoNew = 0
Amida.Enabled = True
Unload QueryNum
End Sub
Sub Form_Load ()
Caption = AppName$
If IsNotFIrst Then
NLotsTxt.Text = LTrim$(Str$(NumLots))
NPrizesTxt.Text = LTrim$(Str$(NumPrizes))
UnwillingPrize.Value = IsUnwillingPrize
End If
End Sub
Sub Form_Unload (Cancel As Integer)
OkCmd.Default = False
End Sub
Sub NLotsTxt_GotFocus ()
TextAllSelect NLotsTxt
End Sub
Sub NLotsTxt_KeyPress (KeyAscii As Integer)
If KeyAscii = 13 Then
NPrizesTxt.SetFocus
End If
End Sub
Sub nPrizesTxt_GotFocus ()
OkCmd.Default = True
TextAllSelect NPrizesTxt
End Sub
Sub OkCmd_Click ()
Dim NL, NP As Integer
NL = Val(NLotsTxt.Text)
NP = Val(NPrizesTxt.Text)
If NL < 2 Or NL > MaxLots Or NP < 1 Or NP >= NL Then
Beep
Exit Sub
End If
NumLots = NL
NumPrizes = NP
IsUnwillingPrize = UnwillingPrize.Value
DoNew = True
Amida.Enabled = True
IsNotFIrst = True
Unload QueryNum
End Sub