home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / VISUAL_B / CODIGO_2 / TOOL_TIP / TIPDEMO.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1994-04-22  |  25.7 KB  |  579 lines

  1. frmTipDemo
  2. ToolTip Demo V1.4
  3. Form15
  4. Picture1
  5. 6    lblStatus
  6. Ready
  7. Label7
  8. Status:
  9. Picture2
  10. GSToolTip1
  11.     GSToolTip
  12. MS Sans Serif
  13. cboFontFace
  14. Font Name:Select font name
  15. cboFontSize
  16. Font Size:Select font size
  17. Image1
  18. wwwwwwwwwwp
  19. wwwwwwwwwwp
  20. New:Create a new document
  21. Image1
  22. wwwwwwwwwwp
  23. wwwwwwwwwwp
  24. wwwwp
  25. wwwwp
  26. Open:Open an existing document
  27. Image1
  28. wwwwwwwwwwp
  29. wwwwwwwwwwp
  30. wwwwww
  31. Save:Save document to disk
  32. Image1
  33. wwwwwwwwwwp
  34. wwwwwwwwwwp
  35. "Cut:Cut selected text to clipboard
  36. Image1
  37. wwwwwwwwwwp
  38. wwwwwwwwwwp
  39. $Copy:Copy selected text to clipboard
  40. Image1
  41. wwwwwwwwwwp
  42. wwwwwwwwwwp
  43. ,Paste:Paste clipboard contents into document
  44. imgHelp
  45. wwwwwwwwwwp
  46. wwwwwwwwwwp
  47. Help:Open ToolTip help file
  48. GSTabFrame1
  49. GSTabFrame
  50. General
  51. GGeneral Information:Show general information about the ToolTip control.
  52. Label2
  53. This demonstration also includes the TabFrame control which allows you to implement tabbed dialog boxes in Visual Basic. A full demonstration of this control is available for download in the MSBASIC forum on Compuserve - see file TABFRAME.ZIP in library 17 (3rd Party Products).
  54. Label22
  55. 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.
  56. Label20
  57. This product is distributed as shareware and registration details are provided in this demonstration and in the help file - click the help button on the toolbar.
  58. Label19
  59. The ToolTip control allows you to quikly add MS style tool tips and a context sensitive status bar to your Visual Basic applications. In addition to supporting popup tool tip windows the control provides events for tracking mouse movements, menu selections and focus changes within your application. Examples of each of these functions can be viewed by selecting the appropriate tab by clicking it with the left mouse button.
  60. GSTabFrame1
  61. GSTabFrame
  62. Focus Tracking
  63. MS Sans Serif
  64. `Focus Tracking Details:Show details of focus tracking facilities provided by the ToolTip control
  65. Command2
  66. Command2
  67. ::Click to initiate Command1
  68. Check1
  69. Check1
  70. ::Click to select Check1
  71. Command1
  72. Command1
  73. ::Click to initiate Command2
  74. Text2
  75. Text2
  76. ::Enter text for Text2
  77. Text1
  78. Text1
  79. ::Enter text for Text1
  80. Frame5
  81. GotFocus Event
  82. lblGotFocusFrmName
  83. lblGotFocusCtlName
  84. Label18
  85. FrmName:
  86. Label18
  87. CtlName:
  88. Frame4
  89. LostFocus Event
  90. lblLostFocusCtlName
  91. lblLostFocusFrmName
  92. Label18
  93. FrmName:
  94. Label18
  95. CtlName:
  96. Label32
  97. The boxes below show the event parameters each time a GotFocus or LostFocus event is generated. Use the Tab key to move focus around the form and watch as they are updated.
  98. Label31
  99. The GotFocus and LostFocus events can be used to update a status bar, like the one at the bottom of this form, in order to provide the user with information about the function of the control which currently has the focus.
  100. Label30
  101. The ToolTip control tracks the control which has the input focus and generates GotFocus and LostFocus events. A single ToolTip control can provide focus tracking for all the forms in an application.
  102. GSTabFrame1
  103. GSTabFrame
  104. ToolTips
  105. MS Sans Serif
  106. SToolTip Details:Show details of tool tip facilities provided by the ToolTip control
  107. Image2
  108. wwwwwwwwwwwx
  109. wwwwwwwwwwwx
  110. wwwwwx
  111. wwwwwwx
  112. wwwwwwx
  113. wwwwwwx
  114. wwwwwx
  115. wwwwwwx
  116. wwwwwwx
  117. wwwwwwwx
  118. wwwwwwwx
  119. wwwwwwwwx
  120. wwwwwwwwx
  121. wwwwwwwwwwwx
  122. wwwwwwwwwwwx
  123. +ToolTip:Pause to show a multi-line tool tip
  124. Label36
  125. vMove the cursor over the ToolTip icon to the left to display a multi-line tool tip with a different background colour.
  126. Label35
  127. A single ToolTip control can provide tool tips for all the forms in an application. The tool tip text can be supplied in the GetToolTip event or taken from the Tag property of the control for which the tool tip is being shown. In many cases it will be convenient to use the GetToolTip event to extract a section of the Tag property  to be used as the tool tip - see the event procedures in this demonstartion for an example of how the Tag prpoerty can be used to supply tool tips, status bar text and focus change text.
  128. Label34
  129. Tool tips have been made popular by the latest releases of Microsoft Word and Excel and are rapidly becoming a standard part of many major Windows applications. Together with an intelligently updated status bar they help to make an application much easier to use.
  130. Label33
  131. uMove the cursor over the ToolTip icon to the left and pause for a short while. That small popup window is a tool tip.
  132. Image2
  133. wwwwwwwwwwwx
  134. wwwwwwwwwwwx
  135. wwwwwx
  136. wwwwwwx
  137. wwwwwwx
  138. wwwwwwx
  139. wwwwwx
  140. wwwwwwx
  141. wwwwwwx
  142. wwwwwwwx
  143. wwwwwwwx
  144. wwwwwwwwx
  145. wwwwwwwwx
  146. wwwwwwwwwwwx
  147. wwwwwwwwwwwx
  148.  ToolTip:Pause to show a tool tip
  149. GSTabFrame1
  150. GSTabFrame
  151. Mouse Tracking
  152. MS Sans Serif
  153. `Mouse Tracking Details:Show details of mouse tracking facilities provided by the ToolTip control
  154. Frame2
  155. MouseExit Event
  156. Label18
  157. CtlName:
  158. Label18
  159. FrmName:
  160. lblMouseExitFrmName
  161. lblMouseExitCtlName
  162. Frame1
  163. MouseEnter Event
  164. Label18
  165. CtlName:
  166. Label18
  167. FrmName:
  168. lblMouseEnterCtlName
  169. lblMouseEnterFrmName
  170. Label24
  171. The boxes below show the event parameters each time a MouseEnter or MouseExit event is generated. Move the mouse around the form and watch as they are updated. Notice that each of the tabs is recognised as a separate control - the ToolTip control works with the TabFrame control to provide this functionality.
  172. Label23
  173. The MouseEnter and MouseExit events can be used to update a status bar, like the one at the bottom of this form, in order to provide the user with information about the function of the control which the mouse is currently over.
  174. Label21
  175. The ToolTip control tracks movement of the mouse and generates MouseEnter and MouseExit events as the cursor moves into and out of each control. A single ToolTip control can provide mouse tracking for all the forms in an application.
  176. GSTabFrame1
  177. GSTabFrame
  178. Properties
  179. MS Sans Serif
  180. NToolTip Properties:Show details of properties supported by the ToolTip control
  181. GSTabFrame2
  182. GSTabFrame
  183. Custom
  184. txtpropDesc
  185. txtPropDesc
  186. cboPropName
  187. Label1
  188. Description:
  189. Label1
  190.     Property:
  191. GSTabFrame2
  192. GSTabFrame
  193. Standard
  194. MS Sans Serif
  195. Label4
  196. Label5
  197. The colour and font properties control the appearance of the tool tip popup window and the Enabled property can be used to prevent all events from being generated.
  198. Label4
  199. FontStrikethru
  200. Label4
  201. FontSize
  202. Label4
  203. Label4
  204. Label4
  205. Label4
  206. Index
  207. Label4
  208.     ForeColor
  209. Label4
  210. FontUnderline
  211. Label4
  212. FontName
  213. Label4
  214. FontItalic
  215. Label4
  216. FontBold
  217. Label4
  218. Enabled
  219. Label4
  220.     BackColor
  221. Label3
  222. IThe following standard properties are supported by the ToolTip control :-
  223. GSTabFrame1
  224. GSTabFrame
  225. Events
  226. MS Sans Serif
  227. FToolTip Events:Show details of events supported by the ToolTip control
  228. GSTabFrame3
  229. GSTabFrame
  230. Custom
  231. cboEventName
  232. txtEventDesc
  233. txtEventDesc
  234. Label1
  235. Event:
  236. Label1
  237. Description:
  238. GSTabFrame3
  239. GSTabFrame
  240. Standard
  241. MS Sans Serif
  242. Label6
  243. >There are no standard events supported by the ToolTip control.
  244. GSTabFrame1
  245. GSTabFrame
  246. Menu Tracking
  247. MS Sans Serif
  248. ^Menu Tracking Details:Show details of menu tracking facilities provided by the ToolTip control
  249. Frame3
  250. MenuSelect Event
  251. lblMenuCaption
  252. lblMenuName
  253. Label25
  254. MenuCaption:
  255. Label25
  256.     MenuName:
  257. Label29
  258. The box below ishows the event parameters each time a MenuSelect event is generated. Select the menus on this form and watch as they are updated. Notice that the system menu is recognised as well as the application menus.
  259. Label28
  260. The MenuSelect event can be used to update a status bar, like the one at the bottom of this form, in order to provide the user with information about the function of the currently selected menu item.
  261. Label27
  262. The ToolTip control tracks menu selections and generates a MenuSelect event for each item. Each ToolTip control can provide menu tracking for the form containing the control and, if it is an MDI form, for the menus on MDI child forms.
  263. GSTabFrame1
  264. GSTabFrame
  265. Registration
  266. MS Sans Serif
  267. MRegistration Information:Show details of how to register the ToolTip control.
  268. Label26
  269. JRegistered versions will be sent out by e-mail unless otherwise specified.
  270. Label17
  271. ENGLAND
  272. Label16
  273. Derbyshire DE6 1PR
  274. Label15
  275.     Ashbourne
  276. Label14
  277.     Hognaston
  278. Label13
  279. Fellsgarth House
  280. Label12
  281. GC Consulting Services Ltd
  282. Label11
  283. 22) By sending a cheque or money order for 
  284. 25 to :
  285. Label10
  286. \1) Through the SWREG forum on Compuserve. The fee is $29.95 and the registration ID is 2275.
  287. Label9
  288. If you find the ToolTip control useful you can receive the full version, which may be distributed with your applications, by registering as follows :
  289. Label8
  290. This demonstration includes a fully functional version of the ToolTip 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.
  291. mnuFile
  292. &File
  293. File operations
  294. mnuFNew
  295. Create new document
  296. mnuFOpen
  297. &Open...
  298. Open existing file
  299. mnuFSave
  300. &Save
  301.     Save file
  302. mnuFSaveAs
  303. Save &As...
  304. Save file with new filename
  305. mnuFSep1
  306. mnuFExit
  307. E&xit
  308. Exit demonstartion
  309. mnuEdit
  310. &Edit
  311. Clipboard operations
  312. mnuECut
  313. Cut selected text to clipboard
  314. mnuECopy
  315. &Copy
  316. Copy selected text to clipboard
  317. &    mnuEPaste
  318. &Paste
  319. Paste text from clipboard
  320. mnuEDelete
  321. &Delete
  322. Delete selected text
  323. mnuView
  324. &View
  325. Select new tab
  326. mnuVTab
  327. &General
  328. .Show general information about ToolTip control
  329. mnuVTab
  330. &Properties
  331. !Show details of ToolTip properies
  332. mnuVTab
  333. &Events
  334. Show details of ToolTip events
  335. mnuVTab
  336. &Registration
  337. #How to register the ToolTip control
  338. mnuVTab
  339.     &ToolTips
  340. !Description of tool tip operation
  341. mnuVTab
  342. &Mouse Tracking
  343. Description of mouse tracking
  344. mnuVTab
  345. Me&nu Tracking
  346. Description of menu tracking
  347. mnuVTab
  348. &Focus Tracking
  349. Description of focus tracking
  350. mnuHelp
  351. &Help
  352. Help system operations
  353. mnuHContents
  354.     &Contents
  355. )Display help contents for ToolTip control
  356. mnuHSep1
  357. 3    mnuHAbout
  358.     &About...
  359. Display About dialog
  360. GSTabFrame_Activated$
  361. Index_
  362. GSTabFrame_Deactivated>
  363. Cancel
  364. Command1_Click
  365. cmdClose_Click
  366.     Form_Load
  367. cboPropNameb
  368.     ListIndexu
  369. cboEventName
  370. Label4_Click.
  371. Label10_Click
  372. cmdHelp_Click
  373. Label2_Click
  374. WinHelp{
  375. hWnd%
  376. lpHelpFile
  377. wCommand
  378. dwData
  379. frmTabDemoH
  380.     sHelpFileV
  381. GSTabFrame1_Activated
  382. cboPropName_Change5
  383. cboPropName_Click,
  384. PropDesc
  385. Listw
  386. txtPropDesc
  387. display3
  388. About
  389. dialog
  390. which
  391. identifies
  392. TabFrame
  393. version
  394. number
  395. property
  396. determines
  397. whether
  398. appear
  399. bottom
  400. controlJ
  401. cboEventName_Change
  402.     EventDesc;
  403. txtEventDescl
  404. cboEventName_Click
  405. HelpFile
  406. cboPositionV
  407. cboStyle
  408. cboPosition_Change
  409. cboPosition_Click
  410. GSTabFrame4
  411. Position
  412. cboStyle_Change
  413. Style
  414. cboStyle_Click|
  415.     TotalTabs.
  416. TabGroup
  417. Groups
  418. Caption
  419. Command2_Clickh
  420. Command3_Clickr
  421. nIndexA
  422. cmdNewTab_ClickV
  423. cmdNewGroup_Click
  424. cmdReset_ClickB
  425. Active
  426. Label2
  427. Form1
  428. mnuVGeneral_Click6
  429. mnuVTab_Click
  430. GSTabFrame(
  431. GSTabFrame1a
  432. imgHelp_Click
  433. GSToolTip1_GetToolTipx
  434. FrmName
  435. CtlName
  436. ToolTipq
  437. Label7_ClickP
  438. GSToolTip1f
  439. ToolTips
  440. GSToolTips
  441. MouseTrackinga
  442. MenuTracking
  443. FocusTracking
  444. GSTabFrame1_Deactivated
  445. GSToolTip1_MouseEnterP
  446. TagText
  447. status
  448.     lblStatus
  449. lblMouseFrmName
  450. lblMouseEnterCtlName3
  451. lblMouseEnterFrmNamer
  452. GSToolTip1_MouseExitJ
  453. lblMouseExitFrmName
  454. lblMouseExitCtlName[
  455. thenlblStatus
  456. GSToolTip1_MenuSelect
  457. MenuName
  458. MenuCaption
  459. lblMenuName
  460. lblMenuCaption
  461. GSToolTip1_GotFocus
  462. lblGotFocusFrmName"
  463. lblGotFocusCtlName
  464. GSToolTip1_LostFocus9
  465. lblLostFocusFrmName
  466. lblLostFocusCtlName
  467. mnuVTab
  468. Checked
  469. mnuFExit_Click
  470.     BackColor
  471. mnuHContents_Click
  472. imgHelp
  473. Click
  474. Screen
  475. Width
  476. Height
  477. frmTipDemo
  478. ToolTipTextT
  479. cboEventName_Click
  480. GetToolTip
  481. This event is fired when a tool tip window is about to be displayed and allows the user to specify the tool tip text.
  482. MouseEnter
  483. This event is fired when the mouse enters a control. The Tag property of the control which the mouse is entering is passed as a parameter and may be used to determine the text to be displayed on a status bar.
  484. MouseExit
  485. This event is fired when the mouse leaves a control.
  486. MenuSelect
  487. This event is fired when a menu item is selected. The Tag property of the selected menu control is passed as a parameter and may be used to determine the text to be displayed on a status bar.
  488. GotFocus
  489. This event is fired when a control receives the input focus. The Tag property of the control receiving the focus is passed as a parameter and may be used to determine the text to be displayed on a status bar.
  490. LostFocus
  491. This event is fired when a control loses the input focus.
  492. cboPropName_Click
  493. About
  494. This property, which is only available at design time, can be used to display the About dialog which identifies the ToolTip version number.
  495. Scope
  496. This property determines which controls are monitored by the ToolTip control. If set to 0 (Application) the ToolTip control monitors controls on all forms except those which contain another ToolTip control. If set to 1 (Form) the ToolTip control only monitors controls on it's own form.
  497. ToolTips
  498. This property determines how tool tips are generated. If enabled the Tag property of the control for which the tool tip is being generated can be used as the default tool tip text.
  499. Delay1, Delay2
  500. These properties determine how long the mouse must remian over a control before the tool tip window appears. Delay1 controls the normal delay and Delay2 controls the delay immediately after a tool tip has been displayed. Keeping Delay2 short allows users to browse a toolbar without having to wait for each new tool tip to appear.
  501. AutoPosition
  502. This property controls the positioning of the tool tip window relative to the current cursor position. If set True the ToolTip control positions the tool tip window automatically according to the current cursor (e.g. arrow, I-beam). If False the user controls the position using the OffsetX and OffsetY properties.
  503. OffsetX, OffsetY
  504. These properties can be used to manually control the position of the tool tip window.
  505. Shadow
  506. This property controls the size of the shadow used to highlight the tool tip window.
  507. MouseTracking
  508. This property is used to enable/disable the MouseEnter and MouseExit events.
  509. MenuTracking
  510. This property is used to enable/disable the MenuSelect event.
  511. FocusTracking
  512. This property is used to enable/disable the GotFocus and LostFocus events.
  513. SubclassForm
  514. This property is used to enable/disable the subclassing of the form required to track menu activity. It is only required in special circumstances as discussed in the Help file.
  515. ToolTipText
  516. This property can be used to control the display of tool tip windows directlty.
  517. Form_Load
  518.  position in centre of screen
  519.  get help file namer
  520. ToolTip.Hlp
  521.  load property combo box
  522. About
  523. Scope
  524. ToolTips
  525. Delay1, Delay2
  526. AutoPosition
  527. OffsetX, OffsetY
  528. Shadow
  529. MenuTracking
  530. MouseTracking
  531. FocusTracking
  532. SubclassForm
  533. ToolTipText
  534.  load event combo box
  535. GetToolTip
  536. MouseEnter
  537. MouseExit
  538. MenuSelect
  539. GotFocus
  540. LostFocus
  541.  initialise tab and menu
  542. GSTabFrame1_Activated
  543. GSTabFrame1_Deactivated
  544. GSToolTip1_GetToolTip
  545. Image2(1)
  546. This is a multi-line tool tip.
  547. You can have as many lines
  548. as you like (within reason).
  549. GSToolTip1_GotFocus
  550.  show parameters
  551.  use Tag to get status bar text for control
  552.  strip tool tip text from start of Tag
  553.  strip status bar text from start of Tag
  554.  display focus text for this control
  555. GSToolTip1_LostFocus
  556.  show parameters
  557.  restore status bar
  558. Ready
  559. GSToolTip1_MenuSelect
  560.  show parameters
  561.  update status bar
  562. Ready
  563. System
  564. System menu: 
  565. GSToolTip1_MouseEnter
  566.  show parameters
  567.  use Tag to get status bar text for control
  568.  strip tool tip text from start of Tag
  569.  strip focus change text from end of Tag
  570.  display status bar text for this control
  571. GSToolTip1_MouseExit
  572.  show parameters
  573.  restore status bara
  574. Ready
  575. imgHelp_Click
  576. mnuFExit_Click
  577. mnuHContents_Click
  578. mnuVTab_Click
  579.