home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l408 / 2.img / EXAMPLES.EXE / EXAMPLES / BJ / BJFORM.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1992-10-30  |  17.6 KB  |  564 lines

  1. BJForm
  2. Las Vegas BlackJack
  3. System
  4. Form1
  5. Label1
  6. Dealer has
  7. ScoreBox
  8. DividerBar
  9. System
  10. BaseBetText
  11.     &Base Bet
  12. System
  13. BaseBetAmount
  14. System
  15. R    StakeText
  16. Stake
  17. System
  18. Amount
  19. System
  20. AdvanceText
  21. Markers
  22. System
  23. Amount
  24. System
  25. DeckButton
  26. &1 Deck
  27. System
  28. DeckButton
  29. &2 Deck
  30. System
  31. DeckButton
  32. &6 Deck
  33. System
  34. StandButton
  35. &Deal / &Stand
  36. System
  37. Z    HitButton
  38. System
  39. DoubleButton
  40. D&ouble Down
  41. System
  42. SplitButton
  43. S&plit
  44. System
  45. AdvanceButton
  46. Get &Marker
  47. System
  48. CardBox
  49. System
  50. CardBox
  51. System
  52. CardBox
  53. System
  54. CardBox
  55. System
  56. CardBox
  57. System
  58. HandIndicator
  59. """""""""""
  60. """""""""""
  61. """""""""""
  62. """""""""""
  63. """""""""""
  64. """""""""""
  65. """""""""""
  66. """""""""""
  67. """""""""""
  68. """""""""""
  69. """""""""""
  70. """""""
  71. """""""
  72. """""""
  73. """""""
  74. """""""
  75. """""""
  76. """""""
  77. """""""
  78. """""""""""
  79. """""""""""
  80. """""""""""
  81. """""""""""
  82. """""""""""
  83. """""""""""
  84. """""""""""
  85. """""""""""
  86. System
  87. CardBox
  88. System
  89. CardBox
  90. System
  91. CardBox
  92. System
  93. CardBox
  94. System
  95. Label2
  96. Player has
  97. ScoreBox
  98. CardBox
  99. System
  100. CardBox
  101. System
  102. CardBox
  103. System
  104. CardBox
  105. System
  106. CardBox
  107. System
  108. HandIndicator
  109. System
  110. CardBox
  111. System
  112. CardBox
  113. System
  114. CardBox
  115. System
  116. CardBox
  117. System
  118. PlayerbTextBox
  119. Player has
  120. ScoreBox
  121. CardBox
  122. System
  123. CardBox
  124. System
  125. CardBox
  126. System
  127. CardBox
  128. System
  129. CardBox
  130. System
  131. CardBox
  132. System
  133. CardBox
  134. System
  135. CardBox
  136. System
  137. CardBox
  138. System
  139. HandIndicator
  140. System
  141. MenuGame
  142. &Game
  143. MenuNew
  144. MenuSelect
  145. De&ck
  146. MenuExit
  147. E&xit
  148. MenuHelp
  149. &Help
  150. MenuInstructions
  151. &Instructions
  152.     MenuAbout
  153. &About
  154. Form_ClickO
  155. Text1
  156. Text1_Change
  157. BaseBetAmount
  158. Label1*
  159. Markers
  160. MarkerText
  161. BaseBetText
  162. AdvanceAmount
  163. Option1
  164. Option2
  165. Option3X
  166. Form1
  167. AdvanceText
  168.     StakeText_
  169. StakeAmountL
  170. Label2
  171. Command1p
  172. Command2
  173. Command3
  174. Command4
  175. Command5
  176. Label3v
  177. Frame1
  178. Game@
  179. Help\
  180. Help_Click2
  181. MenuNew
  182. Game_Click
  183. MenuDeck
  184. MenuHelp
  185. MenuGame
  186. MenuSelect
  187. MenuInstructions9
  188.     MenuValue
  189.     MenuAbout
  190. MenuExit    
  191. Command1_Click
  192. @    Form_Load@
  193. Stakef
  194. AdvanceT
  195. doubledownokp
  196. doubledown;
  197. Busted
  198. PlayerDone
  199. PLAYER#
  200. Picture1
  201. Picture27
  202. Picture3
  203. Picture4
  204. Picture5c
  205. Picture6
  206. Picture7#
  207. CardBoxR
  208. Label4J
  209. Label5/
  210. Label6`
  211. ScoreBox
  212. HandIndicator)
  213. Amoutn
  214. Amount
  215. StandButton
  216.     HitButtonH
  217. DoubleButtonV
  218. SplitButton
  219. AdvanceButton,
  220. PlayerBTextBox
  221. Form_LinkClose
  222. Form_LinkError
  223. LinkErr"
  224. Form_LinkExecute
  225. CmdStru
  226. Cancelt
  227. Form_LinkOpen
  228. xstep0
  229. ystep
  230. DividerBar
  231. BjForm
  232. Height
  233. BaseBetAmount_Change
  234. Amount_Click
  235. Index
  236. Option1_Click
  237. SINGLEDECKBUTTONS
  238. DOUBLEDECKBUTTONY
  239. SIXDECKBUTTON
  240. SingleDeckButton_ClickJ
  241. DoubleDeckButton_Clickr
  242. SixDeckButton_Click]
  243. StandButton_Click:
  244. HitButton_Clicke    @
  245. DoubleButton_Clickg
  246. SplitButton_Click
  247. AdvanceButton_Click
  248. MenuInstructions_ClickE
  249. IDM_INSTRUCTIONSf
  250. ShowStakeAmount
  251. MessageBox
  252. MB_TASKMODAL
  253. MB_ICONINFORMATIONB
  254. MB_OKy
  255. LocalSetFocus
  256. IDM_NEW
  257. DEALER
  258. PLAYERB@
  259. Decks
  260.     WhichDeckw
  261. ShowBetAmount
  262. ShowAdvanceAmount
  263. Shuffle!    
  264. SetUpForDeal
  265. break
  266. IDM_EXITg
  267. DestroyWindow
  268. IDM_DECK
  269. lpSelectDeck
  270. MakeProcInstancet
  271. SelectDeck
  272. hInstr
  273.     DialogBox4
  274. current
  275. instance
  276. resourceN
  277. parent
  278. handle
  279. address
  280. FreeProcInstance8
  281. lpProc5    
  282.     IDM_ABOUT
  283. About
  284. GetWindowText,
  285. GetDlgItem
  286. atoiR    
  287. MB_ICONEXCLAMATION
  288. myDlgP
  289. ScoreBox_Click
  290. PlayerbTextBox_Click
  291. DeckButton
  292. DeckButton_Click^
  293. True5
  294. stand^
  295. Disable
  296. HandInPlay
  297. adjust{    
  298.     ShowValue
  299. AnalyzeHand
  300. Split
  301. ShowHandIndicator'
  302. Enable/    
  303.     tempshort%
  304. PlayerHasBj
  305.     Insurance(    
  306.     calculate
  307. Totalq    
  308.     HandValue
  309. hasE    
  310. ace<    
  311. wants,
  312.     CardValueG
  313. MB_ICONQUESTION
  314. MB_YESNO
  315. switch
  316. IDYES
  317. YouLoseInsurance4
  318. DrawCard
  319. YouWinK
  320. YouPush
  321. YouLose=
  322. YouWinBJ
  323. HowManyCards
  324.     EqualTestD
  325.     OKToSplit
  326. more<
  327. thanv
  328. temphDC{
  329. GetDC
  330. MainWindow
  331. oldback
  332.     SetBkMode
  333. TRANSPARENT
  334. ShowHand2Text^
  335.     ReleaseDC
  336. Hands
  337. MIRAGEHOTEL
  338. BLUESQUARE
  339.     REDSQUARE
  340. BLUEDIAMOND
  341. REDDIAMOND
  342. NewDeck
  343. wParam(
  344. MenuNew_Click
  345. MenuSelect_Clickk
  346. Textv
  347. BaseBetAmount_GotFocus
  348. StandButton_GotFocus
  349. BaseBetAmount_KeyPressT
  350. KeyAscii
  351. DeckButton_KeyPress
  352. PLAYERtempshort
  353. PLAYERBtempshort
  354. ActivePlayer.
  355. CRLF`
  356. StakeText_Clickr
  357. MsgBoxNULL*
  358. EnabledI
  359. False
  360. MsgBoxtemp
  361.     MSGBOXYESW
  362. HandIndicator_Click
  363. CaptionN
  364. Value
  365. DividerBar_Click
  366. Visible
  367.     BitmapDir^
  368. HORIZONTALSEPARATION
  369. Width
  370. BorderStylei
  371. CardColumn
  372. MasterCardColumn%
  373. debugprint
  374. MenuExit_Click
  375. MirageDeck
  376. BlueSq
  377. RedSq
  378. RedDi
  379. BlueDiP
  380. Option4
  381. Option5
  382. SelectOk
  383. SelectCancel
  384.     AboutForm
  385.     WhichCard=
  386. BmpDir
  387. MenuGame_Click
  388.     BackColor
  389. NewDecks
  390. tbetD
  391. tstake
  392. tadvance
  393. tdecksn
  394. twhichdeck.
  395. tShowBetAmount
  396. tShowAdvanceAmount
  397. tShufflea
  398. tSetUpForDeal)
  399. tLocalSetFocus
  400. SelectForm
  401. DeckNum
  402. DeckNum_Click8
  403. MenuAbout_Clickb
  404. AboutForm_GotFocus4
  405. ActiveForm
  406. BaseBetAmount_DragDrop
  407. Form_KeyPressH
  408. BaseBetAmount_KeyDown
  409. KeyCode"
  410. Shift
  411. Picture
  412. Form_Unload
  413. Loadingj
  414. LoadBmps 
  415. BaseBetText_Click
  416. Form_KeyDown
  417. Form_LostFocusf
  418. Form_MouseDownH
  419. ButtonO
  420. Form_MouseMove3
  421. AdvanceButton_KeyDown
  422. KeyDown
  423. AdvanceText_Click
  424. CardBox_Click
  425. DeckButton_KeyDown
  426. DividerBar_KeyDown
  427. DoubleButton_KeyDown
  428. HandIndicator_KeyDown
  429. HitButton_KeyDown
  430. Label1_ClickX
  431. SplitButton_KeyDown
  432. StandButton_KeyDown
  433. SetFocusStandButton
  434. AutoRedraww
  435. FullDeck
  436. Form_DblClick
  437. WhichBox
  438. Difference
  439. FirstX
  440. SelDeck
  441. Form_Resizet
  442. MinWidth=
  443.     MinHeight
  444. ScaleWidth
  445. ScaleHeight
  446. DBWidth
  447. DBHeight}
  448. BJWidth
  449. BJHeight
  450. DBLeft
  451. DBTop
  452. WinHelp
  453.     HELP_QUIT
  454. CreateHelpFileNamee
  455. HelpFileName
  456. MenuHelp_Click
  457. HELP_INDEX
  458. byval0
  459. BaseBetAmount_LostFocus
  460.     MhExePath
  461. HELPKEYCODE
  462. HTemp
  463.     MhExeName
  464. FDeck
  465. MhTrue
  466. MhFalse
  467. StandButton_Click
  468.  deal or stand - if deal, disable bet box 
  469.  Then he wants to stand
  470.  If the player has only two cards, and the stake
  471.  is greater than or equal to two betsd
  472.  He wants a deal - check bet amount
  473. You must bet something or I can't deal!"
  474. Bad Bet"
  475. You can't bet what you don't have!
  476. Hint - Get a marker.
  477. Dealer Cannot Extend Credit!
  478. You don't have a stake."
  479. Please get a marker at the cage.
  480. You Are Broke"
  481.  Bet amount is OK. Go ahead and deal
  482.  calculate dealer's hand
  483.  If dealer has ace up, ask if player wants insurance
  484. Do you want insurance?
  485. Dealer has an Ace Showing!
  486.  If he said yes to insurance, and the dealer
  487.  has Blackjack, the hand is over
  488.  If either the dealer or the player has BJ,r
  489.  Show the dealer's hidden card
  490.  If both have BJ
  491.  If only dealer has BJ
  492.  If Player has BJ, but not DealerR
  493.  If the player has only two cards, and the stake
  494.  is greater than or equal to two betsd
  495.  Check if it's OK to split the cards
  496. HitButton_Click
  497.  If it's OK to hit
  498.  If you're not done playing the hand
  499.  If you're busted, or have 21,
  500.  If it's a split hand 
  501.  If you were playing the 2nd handa
  502.  You're done
  503.  Play the second handh
  504. DoubleButton_Click
  505.  see if two bets are more than stake w
  506.  If doubling bet would end up betting more thano
  507.  stake, adjust the bet
  508.  If the player has only two cards, and the stake
  509.  is greater than or equal to two betsd
  510. SplitButton_Click
  511. Player has
  512.  if split aces, then you're done
  513. AdvanceButton_Click
  514. MenuInstructions_Click
  515. DeckButton_Click
  516. The cards have been shuffled!"
  517. New Dealer!"
  518. BaseBetAmount_KeyPress
  519.  Restrict input to numbers
  520. MenuExit_Click
  521. MenuNew_Click
  522. MenuSelect_Click
  523. MenuAbout_Click
  524. AdvanceButton_KeyDown
  525.  Process in SUBS.BAS KeyDown
  526. DeckButton_KeyDown
  527.  Process in SUBS.BAS KeyDown
  528. DividerBar_KeyDown
  529.  Process in SUBS.BAS KeyDown
  530. DoubleButton_KeyDown
  531.  Process in SUBS.BAS KeyDown
  532. HandIndicator_KeyDown
  533.  Process in SUBS.BAS KeyDown
  534. HitButton_KeyDown
  535.  Process in SUBS.BAS KeyDown
  536. SplitButton_KeyDown
  537.  Process in SUBS.BAS KeyDown
  538. StandButton_KeyDown
  539.  Process in SUBS.BAS KeyDown
  540. Form_Load
  541.  Save original values for form in case it's resizedm
  542. VB.EXE
  543. \bj.hlp"
  544.  Startup values
  545.  Set properties for cardboxes > 5 for each hand.
  546.  Difference is x coordinate, or width of card + spacer
  547.  If we have > 5 cards for a hand, first we overlap
  548.  the first 5 cards, then we start overlapping with 6
  549.  Where card 6 goes
  550.  Assign CardColumn array and
  551.  keep track of original .LEFT properties for later restoration,
  552.  in case a player has > 5 cards.
  553.  Make unused carboxes visibleb
  554.  Make hand indicator arrow boxes invisible
  555.  Don't show split hand "Player"
  556. Form_Resize
  557. BaseBetAmount_LostFocus
  558. Convert to string first to ensure we won't get an 
  559.  overflow.
  560.  If not valid bet
  561. You must bet from $1 to $9999, but not more than your stake"
  562. BadBet!"
  563. BaseBetAmount_KeyDown
  564.