home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / vb_code2 / tabframe / tabdemo.frm (.txt) < prev    next >
Visual Basic Form  |  1994-05-20  |  32KB  |  595 lines

  1. frmTabDemo
  2. TabFrame Demo V1.4
  3. Form15
  4. cmdHelp
  5. GSTabFrame1
  6. GSTabFrame
  7.     E&xamples
  8. txtTabIndent
  9. txtTabIndent
  10. txtTabHeight
  11. txtTabHeight
  12. txtTabWidth
  13. txtTabWidth
  14. cboPictPos
  15. cboTextOrient
  16. picEx
  17. %    picExBtns
  18. cmdNewGroup
  19. Add New Group
  20. (    cmdNewTab
  21. Add New Tab
  22. cmdReset
  23. Reset
  24. GSTabFrame4
  25. GSTabFrame
  26. TF(0)
  27. wwwwwwwpwwp
  28. wwpww
  29. wpwwp
  30. wwpwwwwwwwp9
  31. cboStyle
  32. cboPosition
  33. Label32
  34.     TabIndent
  35. Label31
  36.     TabHeight
  37. Label30
  38. TabWidth
  39. Label29
  40. PicturePosition
  41. Label28
  42. TextOrientation
  43. Label25
  44. Style
  45. Label24
  46. Position
  47. GSTabFrame1
  48. GSTabFrame
  49.     &ToolTips
  50. MS Sans Serif
  51. picFlag
  52. Label27
  53. Move the mouse over a tab and pause - the Country name will appear next to the cursor in a popup window. This is an example of the ToolTip control working with the TabFrame control. For more information about the ToolTip control click on the ToolTip icon in the bottom corner of this tab.
  54. GSToolTip1
  55.     GSToolTip
  56. GSTabFrame5
  57. GSTabFrame
  58. United Kingdom
  59. GSTabFrame5
  60. GSTabFrame
  61. MS Sans Serif
  62. United Staes of America
  63. GSTabFrame5
  64. GSTabFrame
  65. MS Sans Serif
  66. Canada
  67. GSTabFrame5
  68. GSTabFrame
  69. MS Sans Serif
  70. Mexico
  71. """""
  72. """""
  73. """""
  74. """""
  75. """""
  76. """""
  77. """""
  78. """""
  79. """""
  80. """""
  81. """""
  82. """""
  83. """""
  84. """""
  85. """""
  86. """""
  87. """""
  88. """""
  89. GSTabFrame5
  90. GSTabFrame
  91. MS Sans Serif
  92. France
  93. GSTabFrame5
  94. GSTabFrame
  95. MS Sans Serif
  96. Germany
  97. GSTabFrame5
  98. GSTabFrame
  99. MS Sans Serif
  100. Italy
  101. """"/
  102. """"/
  103. """"/
  104. """"/
  105. """"/
  106. """"/
  107. """"/
  108. """"/
  109. """"/
  110. """"/
  111. """"/
  112. """"/
  113. """"/
  114. """"/
  115. """"/
  116. """"/
  117. """"/
  118. """"/
  119. GSTabFrame5
  120. GSTabFrame
  121. MS Sans Serif
  122. Norway
  123. GSTabFrame5
  124. GSTabFrame
  125. MS Sans Serif
  126. Sweden
  127. GSTabFrame5
  128. GSTabFrame
  129. MS Sans Serif
  130. Finland
  131. GSTabFrame5
  132. GSTabFrame
  133. MS Sans Serif
  134. Japan
  135. GSTabFrame5
  136. GSTabFrame
  137. MS Sans Serif
  138. Denmark
  139. Image1
  140. wwwwwwwwwwwx
  141. wwwwwwwwwwwx
  142. wwwwwx
  143. wwwwwwx
  144. wwwwwwx
  145. wwwwwwx
  146. wwwwwx
  147. wwwwwwx
  148. wwwwwwx
  149. wwwwwwwx
  150. wwwwwwwx
  151. wwwwwwwwx
  152. wwwwwwwwx
  153. wwwwwwwwwwwx
  154. wwwwwwwwwwwx
  155. GSTabFrame1
  156. GSTabFrame
  157. &Properties
  158. MS Sans Serif
  159. GSTabFrame2
  160. GSTabFrame
  161. Custom
  162. txtpropDesc
  163. txtPropDesc
  164. cboPropName
  165. Label1
  166. Description:
  167. Label1
  168.     Property:
  169. GSTabFrame2
  170. GSTabFrame
  171. Standard
  172. MS Sans Serif
  173. Label4
  174. TabStop
  175. Label5
  176. Several of these properties are synchronised across the TabFrame controls which make up a TabSet so that changing the property value for any one of the controls automatically changes the value for all the others.
  177. Label4
  178. FontStrikethru
  179. Label4
  180. FontSize
  181. Label4
  182. Width
  183. Label4
  184. Visible
  185. Label4
  186. Label4
  187. Label4
  188. TabIndex
  189. Label4
  190. Parent
  191. Label4
  192. MousePointer
  193. Label4
  194. Label4
  195. Index
  196. Label4
  197. Label4
  198. HelpContextID
  199. Label4
  200. Height
  201. Label4
  202.     ForeColor
  203. Label4
  204. FontUnderline
  205. Label4
  206. DragMode
  207. Label4
  208. DragIcon
  209. Label4
  210. FontName
  211. Label4
  212. FontItalic
  213. Label4
  214. FontBold
  215. Label4
  216. Enabled
  217. Label4
  218. ClipControls
  219. Label4
  220. Caption
  221. Label4
  222. BorderStyle
  223. Label4
  224.     BackColor
  225. Label3
  226. JThe following standard properties are supported by the TabFrame control :-
  227. GSTabFrame1
  228. GSTabFrame
  229. &Registration
  230. MS Sans Serif
  231. Label26
  232. JRegistered versions will be sent out by e-mail unless otherwise specified.
  233. Label17
  234. ENGLAND
  235. Label16
  236. Derbyshire DE6 1PR
  237. Label15
  238.     Ashbourne
  239. Label14
  240.     Hognaston
  241. Label13
  242. Fellsgarth House
  243. Label12
  244. GC Consulting Services Ltd
  245. Label11
  246. 22) By sending a cheque or money order for 
  247. 25 to :
  248. Label10
  249. \1) Through the SWREG forum on Compuserve. The fee is $39.95 and the registration ID is 2018.
  250. Label9
  251. bIf you find the TabFrame control useful you can receive a full version by registering as follows :
  252. Label8
  253. This demonstration includes a fully functional version of the TabFrame control which may be used in the Visual Basic development environment only. It cannot be used in conjunction with an EXE file produced from Visual Basic.
  254. GSTabFrame1
  255. GSTabFrame
  256. &Events
  257. MS Sans Serif
  258. GSTabFrame3
  259. GSTabFrame
  260. Custom
  261. cboEventName
  262. txtEventDesc
  263. txtEventDesc
  264. Label1
  265. Event:
  266. Label1
  267. Description:
  268. GSTabFrame3
  269. GSTabFrame
  270. Standard
  271. MS Sans Serif
  272. Label7
  273.     LostFocus
  274. Label7
  275. GotFocus
  276. Label7
  277.     MouseMove
  278. Label7
  279. MouseUp
  280. Label7
  281.     MouseDown
  282. Label7
  283. DragOver
  284. Label7
  285. DragDrop
  286. Label7
  287. DblClick
  288. Label7
  289. Click
  290. Label6
  291. FThe following standard events are supported by the TabFrame control :-
  292. GSTabFrame1
  293. GSTabFrame
  294. &General
  295. MS Sans Serif
  296. Label23
  297. _Switching between tabs in design mode is made simple through the use of the right mouse button.
  298. Label22
  299. If you have any comments or suggestions concerning this control then please contact Graham Cockell (Compuserve ID 100113, 2774) via e-mail or on the Compuserve MSBASIC forum.
  300. Label21
  301. This demonstration shows some of the capabilities of the TabFrame control including various display styles and the ability to nest one set of TabFrame controls within another - see the Property and Event tabs.
  302. Label20
  303. zThis product is distributed as shareware and registration details are provided in this demonstration and in the help file.
  304. Label19
  305. The TabFrame control allows you to quikly and easily build a tabbed dialog style user interface, as popularised in Microsoft Word V6.0, using Visual Basic. The TabFrame control handles all the details of which tab should be visible as well as providing a number of other useful features such as 3D effects for child controls.
  306. Label18
  307. LFor further details refer to the help file included with this demonstration.
  308. Label2
  309. +Click tab with right mouse button to select
  310. MS Sans Serif
  311. GSTabFrame_Activated$
  312. Index_
  313. GSTabFrame_Deactivated>
  314. Cancel
  315. Command1_Click
  316. cmdClose_Click
  317. @    Form_Load
  318. cboPropNameb
  319.     ListIndexu
  320. cboEventName
  321. Label4_Click.
  322. Label10_Click
  323. cmdHelp_Click
  324. Label2_Click
  325. WinHelp{
  326. hWnd%
  327. lpHelpFile
  328. wCommand
  329. dwData
  330. frmTabDemoH
  331.     sHelpFileV
  332. GSTabFrame1_Activated
  333. cboPropName_Change5
  334. cboPropName_Click,
  335. PropDesc
  336. Listw
  337. txtPropDesc
  338. display3
  339. About
  340. dialog<
  341. which
  342. identifies
  343. TabFrame
  344. version
  345. number
  346. This?
  347. property
  348. determines
  349. whether
  350. appear
  351. bottom
  352. controlJ
  353. cboEventName_Change
  354.     EventDesc;
  355. txtEventDescl
  356. cboEventName_Click
  357. HelpFilez
  358. cboPositionV
  359. cboStyle
  360. cboPosition_Change
  361. cboPosition_Click
  362. GSTabFrame4
  363. Position|
  364. cboStyle_Change
  365. Style
  366. cboStyle_Clickj
  367.     TotalTabs.
  368. TabGroup
  369. Groups
  370. Caption
  371. Command2_Clickh
  372. Command3_Clickr
  373. nIndexA
  374. cmdNewTab_ClickV
  375. cmdNewGroup_Click
  376. cmdReset_Click
  377. Active
  378. Label2
  379. GSToolTip1_GetToolTip
  380. FrmName$
  381. CtlName
  382. ToolTip
  383. Image1_ClickO
  384. frmToolTip^
  385. Screen
  386. Width
  387. Height!
  388. cboTextOrient
  389. TextOrientation.
  390. cboPos
  391. cboPictPos
  392. PicturePosition
  393. txtTabWidth
  394. TabWidth
  395. txtTabHeight
  396.     TabHeight
  397. cboTextOrient_Changee
  398. TextOrient
  399. cboPictPos_Change
  400. txtTabWidth_ChangeM
  401. TabWidthErr
  402. nWidth
  403. cboTextOrient_Click2
  404. cboPictPos_Clicky
  405. CentreButtons
  406.     picExBtnsi
  407. ClientLeft
  408. ClientWidth
  409.     ClientTop
  410. ClientHeight
  411. CentreExBtns
  412.     GSTabFrme
  413. GSTabFrame
  414. SetTabWidth
  415. txtTabWidth_LostFocus2
  416. txtTabWidth_KeyPress
  417. KeyAscii
  418. SetTabHeight
  419. nHeight
  420. TabHeightErrt
  421. txtTabHeight_ChangeL
  422. txtTabHeight_LostFocus
  423. txtTabHeight_KeyPress
  424. GSTabFrame1
  425. txtTabIndent_Change
  426. txtTabIndent_KeyPress
  427. SetTabIndent
  428. txtTabIndent_LostFocus
  429. TabIndentErr
  430. txtTabIndent
  431. nIndent
  432.     TabIndentR
  433. cboEventName_Click
  434. Activated
  435. This event occurs whenever a tab becomes active.
  436. Deactivated
  437. This event occurs before a tab is made inactive and a new tab is made active. The code may cancel the new tab activation if required.
  438. cboPictPos_Click
  439. cboPosition_Click
  440. cboPropName_Click
  441. About
  442. This property, which is only available at design time, can be used to display the About dialog which identifies the TabFrame version number.
  443. Active
  444. This property, which is only available at run time, determines if the tab is currently active.
  445. ActiveColor
  446. This property determines the background color of the active tab.
  447. AutoColor
  448. If this property is True then the TabFrame control will ensure that all tabs are using the same active and inactive colors.
  449. AutoFont
  450. If this property is True then the TabFrame control will ensure that all tabs are using the same font and that the caption of the active font will be shown bold.
  451. BufferDisplay
  452. If this property is True then the TabFrame control will buffer all display output to reduce flicker when selecting a new tab.
  453. Chamfer
  454. This property determines the size of the chamfer on the corner of the tabs.
  455. Child3D
  456. This property is used to determine which, if any, of the child controls on the TabFrame are given a 3D effect.
  457. ChildBevel
  458. This property determines the type of 3D effect (raised or inset) given to selected child controls on the TabFrame
  459. ChildBevelWidth
  460. This property determines the width of the bevel used to give selected child controls a 3D appearance.
  461. FocusTracking
  462. If this property is True then the TabFrame will rememeber which control has the focus from one activation to the next.
  463. Groups
  464. This property, which is only available at runtime, determines the number of TabGroups in the TabSet.
  465. InactiveColor
  466. This property determines the background color of the inactive tabs.
  467. Position
  468. This property determines whether the tab appear at the top, bottom, left or right of the TabFrame control.
  469. Stagger
  470. This property determines the offset between TabGroups.
  471. Style
  472. This property determines the display style of the TabFrame control. Options include 2D (flat) as well as 3D raised or inset.
  473. TabGroup
  474. This property determines which TabGroup the TabFrame belongs to.
  475. TabHeight
  476. This property determines the height of the tab. If set to zero then the TabFrame control will set the height automatically based on the font size.
  477. TabNumber
  478. This property determines the order, left-to-right, in which the tabs in a TabGroup are displayed.
  479. This property array, which is only available at runtime, determines the number of TabFramess in a TabGroup.
  480. TabWidth
  481. This property determines the width of the tab. If set to zero then the width will be set automatically so that all the tabs in a set of TabFrame controls fill the total width.
  482. TotalTabs
  483. This property, which is only available at runtime, determines the total number of TabFrames in the TabSet.
  484. Picture
  485. This property determines the picture (bitmap or icon) which will be displayed on the tab to the left of the caption.
  486. TextOrientation
  487. This property determines the orientation of the caption text on the tab.
  488. PicturePosition
  489. This property determines the position of the picture relative to the caption text.
  490. ClientLeft
  491. This property, which is not available at design time and is read-only at runtime, gives the position of the top left corner of the active tab client area - i.e. the area on which controls may be placed.
  492. ClientTop
  493. This property, which is not available at design time and is read-only at runtime, gives the position of the top left corner of the active tab client area - i.e. the area on which controls may be placed.
  494. ClientWidth
  495. This property, which is not available at design time and is read-only at runtime, gives the width of the active tab client area - i.e. the area on which controls may be placed.
  496. ClientHeight
  497. This property, which is not available at design time and is read-only at runtime, gives the height of the active tab client area - i.e. the area on which controls may be placed.
  498. FocusTab
  499. This property determines if the tab is given the focus when it is activated.
  500. AutoWidth
  501. If this property is True then the TabFrame control will ensure that all tabs are the same width.
  502. TabIndent
  503. This property determines the indent of the first tab from the edge of the TabSet. If the default TabWidth is used for one or more tabs in a group then the indent is also used for the last tab.
  504. cboStyle_Click
  505. cboTextOrient_Click
  506. CentreExBtns
  507. cmdHelp_Click
  508. cmdNewGroup_Click
  509. cmdNewTab_Click
  510. cmdReset_Click
  511.  remove all TabFrames except the first
  512.  reset TabFrame properties
  513.  initialise combo/text boxes
  514.  centre buttons on example formx
  515. Form_Load
  516.  place in centre of screen
  517.  change selection labeli
  518. Click tab with left mouse button to select
  519.  get help file namer
  520. TabFrame.Hlp
  521.  load property combo box
  522. About
  523. Active
  524. ActiveColor
  525. AutoColor
  526. AutoFont
  527. BufferDisplay
  528. Chamfer
  529. Child3D
  530. ChildBevel
  531. ChildBevelWidth
  532. FocusTracking
  533. Groups
  534. InactiveColor
  535. Position
  536. Stagger
  537. Style
  538. TabGroup
  539. TabHeight
  540. TabNumber
  541. TabWidth
  542. TotalTabs
  543. Picture
  544. TextOrientation
  545. PicturePosition
  546. ClientLeft
  547. ClientTop
  548. ClientWidth
  549. ClientHeight
  550. FocusTab
  551. AutoWidth
  552. TabIndent
  553.  load event combo box
  554. Activated
  555. Deactivated
  556.  load position combo box
  557. Bottom
  558. Right
  559. Right (Text out)
  560. Left (Top to Bottom)
  561.  load style combo boxb
  562. 3D Active Raised
  563. 3D Both Raised
  564. 3D Active Inset
  565. 3D Both Inset
  566.  load text orientation combo box
  567. Default
  568. Horizontal
  569. Vertical (Right)
  570. Vertical (Left)
  571.  load picture position combo box
  572. Default
  573. Left of Text
  574. Right of Text
  575. Above Text
  576. Below Text
  577.  initialise example
  578. GSToolTip1_GetToolTip
  579. Image1
  580. Click to show details
  581. of the ToolTip control
  582. Image1_Click
  583. SetTabHeight
  584. TabHeight must be numeric
  585. SetTabIndent
  586. TabIndent must be numeric
  587. SetTabWidth
  588. TabWidth must be numeric
  589. txtTabHeight_KeyPress
  590. txtTabHeight_LostFocus
  591. txtTabIndent_KeyPress
  592. txtTabIndent_LostFocus
  593. txtTabWidth_KeyPress
  594. txtTabWidth_LostFocus
  595.