home *** CD-ROM | disk | FTP | other *** search
/ The Programmer Disk / The Programmer Disk (Microforum).iso / xpro / vb3 / pro6 / form1.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1993-11-13  |  13.2 KB  |  325 lines

  1. Form1
  2. Multi-Column Demo
  3. MS Sans Serif
  4. Form15
  5. MList4
  6. MListBox
  7. MList3
  8. MListBox
  9. MS Sans Serif
  10. MList2
  11. MListBox
  12. MS Sans Serif
  13. MList1
  14. MListBox
  15. Label4
  16. %Multi-Column Style Bitmapped List Box
  17. Label3
  18. Bitmapped List Box
  19. Image1
  20. Label2
  21. 2Normal List Box - Color, Font, Bitmaps, CheckBoxes
  22. Label1
  23. Multi-Select Sorted List Box
  24. mnuMultiSelect
  25. &Multi-Select
  26. mnuSelected
  27.     &Selected
  28. mnuMListCount
  29. &ListCount
  30. mnuSelCount
  31.     Sel&Count
  32. mnuMListIndex
  33. List&Index
  34. mnuRange
  35. Select/&Deselect Range
  36.         mnuNormal
  37. &Normal
  38. mnuText
  39. &Text
  40. mnuListCount
  41. &ListCount
  42. mnuListIndex
  43. List&Index
  44. mnuRegular
  45. &Regular
  46.     mnuBitmap
  47. &Bitmap
  48. mnuCheckBox
  49.     &CheckBox
  50. mnuCheckRange
  51. Check/&Uncheck Range
  52. mnuBitmapped
  53. &Bitmapped
  54. mnuLeft
  55. &Left
  56. mnuTop
  57. mnuRight
  58. &Right
  59.     mnuBottom
  60. &Bottom
  61. mnuMisc
  62. M&isc
  63. mnuItemData
  64.     &ItemData
  65. mnuTopIndex
  66.     &TopIndex
  67. mnuNewIndex
  68.     &NewIndex
  69. mnuList
  70. &List
  71. mnuActiveRegion
  72. &ActiveRegion
  73. mnuChecked
  74. Checked
  75. mnuCheckItem2
  76. Check Item 2
  77. mnuUncheckTwo
  78. Uncheck Item Two
  79. mnuTest
  80. Test Horz. Scroll Bar
  81. @    Form_Load
  82. MList1
  83. MList2
  84. MList2_Click
  85. Constant-
  86. DT_RIGHT&
  87. DT_VCENTERI
  88. DT_SINGLELINE
  89.     DrawFlagsr
  90. DrawRegions
  91. Flags
  92. Command1_ClickD
  93. Count
  94. Command4_Click2
  95. Command2_Click
  96. SelCount`
  97. Command3_Click
  98. aString
  99. Selectedz
  100. Command5_Click
  101. Command6_Click
  102. ItemData(
  103.     ListCount
  104. Command7_Click
  105. TopIndex&
  106. Command8_ClickW
  107. Interval
  108. ItemLength'
  109. mnuSelected_Click
  110. MList1_Click
  111. MList1_DblClick:
  112. mnuMSText_ClickK
  113. mnuText_Clickb
  114. mnuMListCount_Clickx
  115. mnuListCount_Click
  116. mnuSelCount_Click
  117. mnuItemData_Click
  118. mnuMListIndex_Click1
  119.     ListIndex
  120. mnuListIndex_Click
  121. mnuTopIndex_Click
  122. mnuNewIndex_Click
  123. NewIndex0
  124. mnuList_Click
  125. Listu
  126. mnuActiveRegion_Click
  127. TextRegion
  128. ListRegion
  129. ActiveRegion
  130. mnuChecked_Click;
  131. Checked
  132. mnuBitmap_Click
  133.     ImageType
  134. mnuCheckBox_Clicku
  135. mnuRegular_Click
  136. Picture1_Click
  137. ItemPicture
  138. Image1
  139. Picture
  140. MList2_DblClick
  141. DefPictureL
  142. ItemForeColor
  143. ItemBkColorC
  144.     BackColor)
  145.     ForeColor
  146. mnuCheckItem2_Click
  147. mnuUncheckTwo_Click
  148. MList3
  149. mnuLeft_Click
  150.     Alignment
  151. mnuTop_Click
  152. mnuRight_Click
  153. mnuBottom_Click
  154. MList49
  155. MList4_Click
  156. SendMessage
  157. wMsgq
  158. wParamb
  159. lParam
  160. LB_SETCOLUMNWIDTH
  161. SendMessaeg
  162. MList3_Click
  163. mnuRange_Click
  164. RangeBegin
  165. RangeEnd
  166. RangeSelected
  167. RangeStart
  168. mnuCheckRange_Click
  169. RangeChecked
  170. mnuTest_Click
  171. SetHzScrollN
  172. Command1_Click
  173. MList1 Count:
  174. Command2_Click
  175. MList1 SelCount: 
  176. Command4_Click
  177. MList2 Count: 
  178. Command5_Click
  179. MList2 Selected Text: 
  180. Command7_Click
  181. Command8_Click
  182. MList2.TopIndex = 
  183. Form_Load
  184.  Columns are separated by the Tab characterr
  185.  We could set the number of columns ourselves by setting MList1.DrawRegions = 
  186. Item1
  187. Information One
  188. Item2
  189. Information Two
  190. Item3
  191. Information Three
  192. Item4
  193. Information Four
  194. Item1
  195. Information One
  196. Item2
  197. Information Two
  198. Item3
  199. Information Three
  200. Item4
  201. Information Four
  202.  Print the default flags for item 1t
  203. Item1 DrawFlags: 
  204.  When you set or change DrawRegions, the default flags are DT_LEFT + DT_VCENTER + DT_SINGLELINE
  205.  You can set the flags to any legal value used by the Windows API call DrawText
  206.  Change the dollar column to be right justified insteada
  207. Item1
  208. Information One
  209. $45.00
  210. Item2
  211. Information Two
  212. $36.69
  213. Item3
  214. Information Three
  215. $2234.00
  216. Item4
  217. Information Four
  218. $4.00
  219. Item5
  220. Information Five
  221. $0.25
  222. Item1
  223. Information One
  224. $45.00
  225. Item2
  226. Information Two
  227. $36.69
  228. Item3
  229. Information Three
  230. $2234.00
  231. Item4
  232. Information Four
  233. $4.00
  234. Item5
  235. Information Five
  236. $0.25
  237. Item1
  238. Information One
  239. $45.00
  240. Item2
  241. Information Two
  242. $36.69
  243. Item3
  244. Information Three
  245. $2234.00
  246. Item4
  247. Information Four
  248. $4.00
  249. Item5
  250. Information Five
  251. $0.25
  252. MList2.ItemLength(3) = 1300G
  253.  Print the default flags for item 1
  254. Item3 DrawFlags: 
  255. ItemLength(2): 
  256. Bitmap string one
  257. Bitmap string two
  258. Bitmap string three
  259. Bitmap string four
  260. Bitmap string five
  261.  X = SendMessage(MList4.hWnd, LB_SETCOLUMNWIDTH, 100, 0)
  262. MList1_Click
  263.   MsgBox "Multi-Select List Box Click", 0, "MList1""
  264. MList1_DblClick
  265.   MsgBox "Multi-Select List Box Double Click", 0, "MList1"
  266. MList2_DblClick
  267. mnuActiveRegion_Click
  268. MList2.TextRegion = 
  269. MList2
  270. Replace
  271. MList2.ListRegion(3) = 
  272. MList2
  273. Replace
  274. mnuBitmap_Click
  275. mnuBottom_Click
  276. mnuCheckBox_Click
  277. mnuChecked_Click
  278. MList2.Checked(
  279. ) = Checked
  280. MList2.Checked(
  281. ) = Unchecked
  282. mnuCheckItem2_Click
  283. mnuCheckRange_Click
  284. mnuItemData_Click
  285. ItemData
  286. mnuLeft_Click
  287. mnuList_Click
  288. Replacement
  289. $100.00
  290. mnuListCount_Click
  291. MList2.ListCount = 
  292. MList2
  293. mnuListIndex_Click
  294. MList2.ListIndex = 
  295. MList2
  296. mnuMListCount_Click
  297. MList1.ListCount = 
  298. MList1
  299. mnuMListIndex_Click
  300. MList1.ListIndex = 
  301. MList1
  302. mnuMSText_Click
  303. Text-MList1
  304. mnuNewIndex_Click
  305. Item21
  306. Information TwoOne
  307. MList1.NewIndex = 
  308. MList1
  309. mnuRange_Click
  310. mnuRegular_Click
  311. mnuRight_Click
  312. mnuSelCount_Click
  313. MList1.SelCount = 
  314. MList1
  315. mnuSelected_Click
  316. False
  317. mnuTest_Click
  318. mnuText_Click
  319. MList2
  320. mnuTop_Click
  321. mnuTopIndex_Click
  322. MList2.TopIndex = 
  323. MList2
  324. mnuUncheckTwo_Click
  325.