/packages/univint/src/HIComboBox.pas

https://github.com/slibre/freepascal · Pascal · 677 lines · 37 code · 55 blank · 585 comment · 0 complexity · 9bc25af7d891483626a049f81bd4a2fc MD5 · raw file

  1. {
  2. File: HIToolbox/HIComboBox.h
  3. Contains: Definition of the combo box view provided by HIToolbox.
  4. Version: HIToolbox-624~3
  5. Copyright: © 2006-2008 by Apple Computer, Inc., all rights reserved.
  6. Bugs?: For bug reports, consult the following page on
  7. the World Wide Web:
  8. http://www.freepascal.org/bugs.html
  9. }
  10. { Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2009 }
  11. { Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2012 }
  12. {
  13. Modified for use with Free Pascal
  14. Version 308
  15. Please report any bugs to <gpc@microbizz.nl>
  16. }
  17. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  18. {$mode macpas}
  19. {$packenum 1}
  20. {$macro on}
  21. {$inline on}
  22. {$calling mwpascal}
  23. unit HIComboBox;
  24. interface
  25. {$setc UNIVERSAL_INTERFACES_VERSION := $0400}
  26. {$setc GAP_INTERFACES_VERSION := $0308}
  27. {$ifc not defined USE_CFSTR_CONSTANT_MACROS}
  28. {$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
  29. {$endc}
  30. {$ifc defined CPUPOWERPC and defined CPUI386}
  31. {$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
  32. {$endc}
  33. {$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
  34. {$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
  35. {$endc}
  36. {$ifc not defined __ppc__ and defined CPUPOWERPC32}
  37. {$setc __ppc__ := 1}
  38. {$elsec}
  39. {$setc __ppc__ := 0}
  40. {$endc}
  41. {$ifc not defined __ppc64__ and defined CPUPOWERPC64}
  42. {$setc __ppc64__ := 1}
  43. {$elsec}
  44. {$setc __ppc64__ := 0}
  45. {$endc}
  46. {$ifc not defined __i386__ and defined CPUI386}
  47. {$setc __i386__ := 1}
  48. {$elsec}
  49. {$setc __i386__ := 0}
  50. {$endc}
  51. {$ifc not defined __x86_64__ and defined CPUX86_64}
  52. {$setc __x86_64__ := 1}
  53. {$elsec}
  54. {$setc __x86_64__ := 0}
  55. {$endc}
  56. {$ifc not defined __arm__ and defined CPUARM}
  57. {$setc __arm__ := 1}
  58. {$elsec}
  59. {$setc __arm__ := 0}
  60. {$endc}
  61. {$ifc defined cpu64}
  62. {$setc __LP64__ := 1}
  63. {$elsec}
  64. {$setc __LP64__ := 0}
  65. {$endc}
  66. {$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
  67. {$error Conflicting definitions for __ppc__ and __i386__}
  68. {$endc}
  69. {$ifc defined __ppc__ and __ppc__}
  70. {$setc TARGET_CPU_PPC := TRUE}
  71. {$setc TARGET_CPU_PPC64 := FALSE}
  72. {$setc TARGET_CPU_X86 := FALSE}
  73. {$setc TARGET_CPU_X86_64 := FALSE}
  74. {$setc TARGET_CPU_ARM := FALSE}
  75. {$setc TARGET_OS_MAC := TRUE}
  76. {$setc TARGET_OS_IPHONE := FALSE}
  77. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  78. {$setc TARGET_OS_EMBEDDED := FALSE}
  79. {$elifc defined __ppc64__ and __ppc64__}
  80. {$setc TARGET_CPU_PPC := FALSE}
  81. {$setc TARGET_CPU_PPC64 := TRUE}
  82. {$setc TARGET_CPU_X86 := FALSE}
  83. {$setc TARGET_CPU_X86_64 := FALSE}
  84. {$setc TARGET_CPU_ARM := FALSE}
  85. {$setc TARGET_OS_MAC := TRUE}
  86. {$setc TARGET_OS_IPHONE := FALSE}
  87. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  88. {$setc TARGET_OS_EMBEDDED := FALSE}
  89. {$elifc defined __i386__ and __i386__}
  90. {$setc TARGET_CPU_PPC := FALSE}
  91. {$setc TARGET_CPU_PPC64 := FALSE}
  92. {$setc TARGET_CPU_X86 := TRUE}
  93. {$setc TARGET_CPU_X86_64 := FALSE}
  94. {$setc TARGET_CPU_ARM := FALSE}
  95. {$ifc defined(iphonesim)}
  96. {$setc TARGET_OS_MAC := FALSE}
  97. {$setc TARGET_OS_IPHONE := TRUE}
  98. {$setc TARGET_IPHONE_SIMULATOR := TRUE}
  99. {$elsec}
  100. {$setc TARGET_OS_MAC := TRUE}
  101. {$setc TARGET_OS_IPHONE := FALSE}
  102. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  103. {$endc}
  104. {$setc TARGET_OS_EMBEDDED := FALSE}
  105. {$elifc defined __x86_64__ and __x86_64__}
  106. {$setc TARGET_CPU_PPC := FALSE}
  107. {$setc TARGET_CPU_PPC64 := FALSE}
  108. {$setc TARGET_CPU_X86 := FALSE}
  109. {$setc TARGET_CPU_X86_64 := TRUE}
  110. {$setc TARGET_CPU_ARM := FALSE}
  111. {$setc TARGET_OS_MAC := TRUE}
  112. {$setc TARGET_OS_IPHONE := FALSE}
  113. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  114. {$setc TARGET_OS_EMBEDDED := FALSE}
  115. {$elifc defined __arm__ and __arm__}
  116. {$setc TARGET_CPU_PPC := FALSE}
  117. {$setc TARGET_CPU_PPC64 := FALSE}
  118. {$setc TARGET_CPU_X86 := FALSE}
  119. {$setc TARGET_CPU_X86_64 := FALSE}
  120. {$setc TARGET_CPU_ARM := TRUE}
  121. { will require compiler define when/if other Apple devices with ARM cpus ship }
  122. {$setc TARGET_OS_MAC := FALSE}
  123. {$setc TARGET_OS_IPHONE := TRUE}
  124. {$setc TARGET_IPHONE_SIMULATOR := FALSE}
  125. {$setc TARGET_OS_EMBEDDED := TRUE}
  126. {$elsec}
  127. {$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
  128. {$endc}
  129. {$ifc defined __LP64__ and __LP64__ }
  130. {$setc TARGET_CPU_64 := TRUE}
  131. {$elsec}
  132. {$setc TARGET_CPU_64 := FALSE}
  133. {$endc}
  134. {$ifc defined FPC_BIG_ENDIAN}
  135. {$setc TARGET_RT_BIG_ENDIAN := TRUE}
  136. {$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
  137. {$elifc defined FPC_LITTLE_ENDIAN}
  138. {$setc TARGET_RT_BIG_ENDIAN := FALSE}
  139. {$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
  140. {$elsec}
  141. {$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
  142. {$endc}
  143. {$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
  144. {$setc CALL_NOT_IN_CARBON := FALSE}
  145. {$setc OLDROUTINENAMES := FALSE}
  146. {$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
  147. {$setc OPAQUE_UPP_TYPES := TRUE}
  148. {$setc OTCARBONAPPLICATION := TRUE}
  149. {$setc OTKERNEL := FALSE}
  150. {$setc PM_USE_SESSION_APIS := TRUE}
  151. {$setc TARGET_API_MAC_CARBON := TRUE}
  152. {$setc TARGET_API_MAC_OS8 := FALSE}
  153. {$setc TARGET_API_MAC_OSX := TRUE}
  154. {$setc TARGET_CARBON := TRUE}
  155. {$setc TARGET_CPU_68K := FALSE}
  156. {$setc TARGET_CPU_MIPS := FALSE}
  157. {$setc TARGET_CPU_SPARC := FALSE}
  158. {$setc TARGET_OS_UNIX := FALSE}
  159. {$setc TARGET_OS_WIN32 := FALSE}
  160. {$setc TARGET_RT_MAC_68881 := FALSE}
  161. {$setc TARGET_RT_MAC_CFM := FALSE}
  162. {$setc TARGET_RT_MAC_MACHO := TRUE}
  163. {$setc TYPED_FUNCTION_POINTERS := TRUE}
  164. {$setc TYPE_BOOL := FALSE}
  165. {$setc TYPE_EXTENDED := FALSE}
  166. {$setc TYPE_LONGLONG := TRUE}
  167. uses MacTypes,Appearance,CarbonEvents,Controls,CFBase,CFArray,HIGeometry,HIObject,HIView;
  168. {$endc} {not MACOSALLINCLUDE}
  169. {$ifc TARGET_OS_MAC}
  170. {$ALIGN POWER}
  171. {
  172. * HIComboBox.h
  173. *
  174. * Discussion:
  175. * API definitions for the combo box view.
  176. }
  177. {==============================================================================}
  178. { HIComboBox }
  179. { The combo box is a new view starting in Mac OS 10.2. It can be used in }
  180. { both the new compositing mode, as well as the traditional Control Manager }
  181. { mode. Like all new HIFoo views, this view is created invisible. You must }
  182. { show the view after creation if you want to, like, see it and stuff. }
  183. {==============================================================================}
  184. { The HIObject class ID for the HIComboBox class. }
  185. {$ifc USE_CFSTR_CONSTANT_MACROS}
  186. {$definec kHIComboBoxClassID CFSTRP('com.apple.HIComboBox')}
  187. {$endc}
  188. {
  189. kEventClassHIComboBox quick reference:
  190. kEventComboBoxListItemSelected = 1
  191. }
  192. const
  193. kEventClassHIComboBox = FourCharCode('hicb');
  194. const
  195. kEventParamComboBoxListSelectedItemIndex = FourCharCode('cbli');
  196. {
  197. * kEventClassHIComboBox / kEventComboBoxListItemSelected
  198. *
  199. * Summary:
  200. * Notification that an item in the ComboBox disclosure list has
  201. * been selected.
  202. *
  203. * Discussion:
  204. * This event is sent as a notification when an item in the ComboBox
  205. * disclosure list has been selected. This event is sent to all
  206. * handlers installed on the view. This does not imply that the
  207. * selection has been accepted; for that you will need to register
  208. * for the kEventClassTextField/kEventTextAccepted event; you can
  209. * register for that event in order to make live selections however.
  210. *
  211. * Mac OS X threading:
  212. * Not thread safe
  213. *
  214. * Parameters:
  215. *
  216. * --> kEventParamDirectObject (in, typeControlRef)
  217. * The ComboBox view that has sent the notification.
  218. *
  219. * --> kEventParamComboBoxListSelectedItemIndex (in, typeCFIndex)
  220. * The index of the combo box list item that has been selected.
  221. *
  222. * Availability:
  223. * Mac OS X: in version 10.4 and later in Carbon.framework
  224. * CarbonLib: not available
  225. }
  226. const
  227. kEventComboBoxListItemSelected = 1;
  228. {
  229. * Summary:
  230. * ComboBox attributes
  231. }
  232. const
  233. {
  234. * A constant with value zero; the lack of any attributes.
  235. }
  236. kHIComboBoxNoAttributes = 0;
  237. {
  238. * The view will attempt to auto complete the text the user is typing
  239. * with an item in the ComboBox list that is the closest appropriate
  240. * match.
  241. }
  242. kHIComboBoxAutoCompletionAttribute = 1 shl 0;
  243. {
  244. * The view will disclose the ComboBox list after the user enters
  245. * text.
  246. }
  247. kHIComboBoxAutoDisclosureAttribute = 1 shl 1;
  248. {
  249. * The items in the ComboBox list will be automatically sorted in
  250. * alphabetical order.
  251. }
  252. kHIComboBoxAutoSortAttribute = 1 shl 2;
  253. {
  254. * The ComboBox list will be automatically sized to fit the Human
  255. * Interface Guidelines.
  256. }
  257. kHIComboBoxAutoSizeListAttribute = 1 shl 3;
  258. {
  259. * The minimum set of ComboBox attributes commonly used.
  260. }
  261. kHIComboBoxStandardAttributes = kHIComboBoxAutoCompletionAttribute or kHIComboBoxAutoDisclosureAttribute or kHIComboBoxAutoSizeListAttribute;
  262. { ControlKind}
  263. const
  264. kControlKindHIComboBox = FourCharCode('cbbx');
  265. { ComboBox Part codes}
  266. const
  267. kHIComboBoxEditTextPart = 5;
  268. kHIComboBoxDisclosurePart = 28;
  269. {
  270. The ComboBox view supports these tags previously defined for the EditUnicodeText view.
  271. These tags are available through Get/SetControlData with a ControlPartCode of kHIComboBoxEditTextPart:
  272. kControlFontStyleTag
  273. kControlEditTextFixedTextTag
  274. kControlEditTextTextTag
  275. kControlEditTextKeyFilterTag
  276. kControlEditTextValidationProcTag
  277. kControlEditUnicodeTextPostUpdateProcTag
  278. kControlEditTextSelectionTag
  279. kControlEditTextKeyScriptBehaviorTag
  280. kControlEditTextCharCount
  281. kControlEditTextCFStringTag
  282. }
  283. {
  284. * Discussion:
  285. * ComboBox ControlData tags available with Mac OS X 10.2 and later.
  286. }
  287. const
  288. {
  289. * Extract the contents of the ComboBox list as a CFArray. The
  290. * CFArray will be retained: if you get the array, you own it and
  291. * will be required to release it; if you set it the toolbox makes a
  292. * copy of it and you are free to release your reference.
  293. }
  294. kHIComboBoxListTag = FourCharCode('cbls'); { CFArrayRef; bumps the refCount on get/retains on set}
  295. {
  296. * The width of the ComboBox list. This can be customized. This
  297. * disables the autosize attribute.
  298. }
  299. kHIComboBoxListPixelWidthTag = FourCharCode('cblw'); { UInt32 }
  300. {
  301. * The height of the ComboBox list. This can be customized. This
  302. * disables the autosize attribute.
  303. }
  304. kHIComboBoxListPixelHeightTag = FourCharCode('cblh'); { UInt32}
  305. {
  306. * The number of visible items in the list. This can be customized.
  307. * This disables the autosize attribute.
  308. }
  309. kHIComboBoxNumVisibleItemsTag = FourCharCode('cbni'); { UInt32}
  310. {$ifc not TARGET_CPU_64}
  311. {
  312. * HIComboBoxCreate()
  313. *
  314. * Summary:
  315. * Creates a combo box view. The new view is initially invisible.
  316. *
  317. * Mac OS X threading:
  318. * Not thread safe
  319. *
  320. * Parameters:
  321. *
  322. * boundsRect:
  323. * The bounding box of the view.
  324. *
  325. * text:
  326. * The default text in the editable portion of the view. Can be
  327. * NULL.
  328. *
  329. * style:
  330. * The font style of the both editable text and the text in the
  331. * disclosure list. Can be NULL.
  332. *
  333. * list:
  334. * The default values available in the disclosure list. Can be
  335. * NULL.
  336. *
  337. * inAttributes:
  338. * The default attributes of the combo box.
  339. *
  340. * outComboBox:
  341. * On exit, contains the new view.
  342. *
  343. * Availability:
  344. * Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
  345. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  346. * Non-Carbon CFM: not available
  347. }
  348. function HIComboBoxCreate( const (*var*) boundsRect: HIRect; text: CFStringRef { can be NULL }; {const} style: ControlFontStyleRecPtr { can be NULL }; list: CFArrayRef { can be NULL }; inAttributes: OptionBits; var outComboBox: HIViewRef ): OSStatus; external name '_HIComboBoxCreate';
  349. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  350. {
  351. * HIComboBoxGetItemCount()
  352. *
  353. * Summary:
  354. * Get the number of items in the combo box disclosure list.
  355. *
  356. * Mac OS X threading:
  357. * Not thread safe
  358. *
  359. * Parameters:
  360. *
  361. * inComboBox:
  362. * The combo box.
  363. *
  364. * Result:
  365. * The number of items in the combo box disclosure list.
  366. *
  367. * Availability:
  368. * Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
  369. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  370. * Non-Carbon CFM: not available
  371. }
  372. function HIComboBoxGetItemCount( inComboBox: HIViewRef ): ItemCount; external name '_HIComboBoxGetItemCount';
  373. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  374. {
  375. * HIComboBoxInsertTextItemAtIndex()
  376. *
  377. * Summary:
  378. * Inserts a CFString in the disclosure list
  379. *
  380. * Mac OS X threading:
  381. * Not thread safe
  382. *
  383. * Parameters:
  384. *
  385. * inComboBox:
  386. * The combo box whose disclosure list the text will be inserted
  387. * in.
  388. *
  389. * inIndex:
  390. * The index that the text should be inserted in. If the index
  391. * does not fall within the number of items in the combo box list,
  392. * it will be appended to the end of the list.
  393. *
  394. * inText:
  395. * The text item to be inserted in the combo box disclosure list.
  396. *
  397. * Result:
  398. * An operating system status code.
  399. *
  400. * Availability:
  401. * Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
  402. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  403. * Non-Carbon CFM: not available
  404. }
  405. function HIComboBoxInsertTextItemAtIndex( inComboBox: HIViewRef; inIndex: CFIndex; inText: CFStringRef ): OSStatus; external name '_HIComboBoxInsertTextItemAtIndex';
  406. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  407. {
  408. * HIComboBoxAppendTextItem()
  409. *
  410. * Summary:
  411. * Appends a text item to the combo box disclosure list.
  412. *
  413. * Mac OS X threading:
  414. * Not thread safe
  415. *
  416. * Parameters:
  417. *
  418. * inComboBox:
  419. * The combo box whose disclosure list the text will be appended
  420. * to.
  421. *
  422. * inText:
  423. * The text item to be appended to the combo box disclosure list.
  424. *
  425. * outIndex:
  426. * On exit, the index of the new item. Can be NULL if the caller
  427. * does not require this information.
  428. *
  429. * Result:
  430. * An operating system status code.
  431. *
  432. * Availability:
  433. * Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
  434. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  435. * Non-Carbon CFM: not available
  436. }
  437. function HIComboBoxAppendTextItem( inComboBox: HIViewRef; inText: CFStringRef; outIndex: CFIndexPtr { can be NULL } ): OSStatus; external name '_HIComboBoxAppendTextItem';
  438. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  439. {
  440. * HIComboBoxCopyTextItemAtIndex()
  441. *
  442. * Summary:
  443. * Copy the text from the combo box disclosure list
  444. *
  445. * Mac OS X threading:
  446. * Not thread safe
  447. *
  448. * Parameters:
  449. *
  450. * inComboBox:
  451. * The combo box that contains the text item you would like to
  452. * copy.
  453. *
  454. * inIndex:
  455. * The index of the text item. Will return paramErr if the index
  456. * is out of bounds of the combo box list.
  457. *
  458. * outString:
  459. * A copy of the string at the given index. Remember this is now
  460. * your copy that you will need to release.
  461. *
  462. * Result:
  463. * An operating system status code.
  464. *
  465. * Availability:
  466. * Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
  467. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  468. * Non-Carbon CFM: not available
  469. }
  470. function HIComboBoxCopyTextItemAtIndex( inComboBox: HIViewRef; inIndex: CFIndex; var outString: CFStringRef ): OSStatus; external name '_HIComboBoxCopyTextItemAtIndex';
  471. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  472. {
  473. * HIComboBoxRemoveItemAtIndex()
  474. *
  475. * Summary:
  476. * Remove an item from a combo box disclosure list.
  477. *
  478. * Mac OS X threading:
  479. * Not thread safe
  480. *
  481. * Parameters:
  482. *
  483. * inComboBox:
  484. * The combo box that contains the disclosure list that you would
  485. * like to remove an item from.
  486. *
  487. * inIndex:
  488. * The index of the item to remove.
  489. *
  490. * Result:
  491. * An operating system status code.
  492. *
  493. * Availability:
  494. * Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
  495. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  496. * Non-Carbon CFM: not available
  497. }
  498. function HIComboBoxRemoveItemAtIndex( inComboBox: HIViewRef; inIndex: CFIndex ): OSStatus; external name '_HIComboBoxRemoveItemAtIndex';
  499. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  500. {
  501. * HIComboBoxChangeAttributes()
  502. *
  503. * Summary:
  504. * Change the attributes of a combo box
  505. *
  506. * Mac OS X threading:
  507. * Not thread safe
  508. *
  509. * Parameters:
  510. *
  511. * inComboBox:
  512. * The combo box whose attributes you would like to change.
  513. *
  514. * inAttributesToSet:
  515. * The attributes to set.
  516. *
  517. * inAttributesToClear:
  518. * The attributes to clear.
  519. *
  520. * Result:
  521. * An operating system status code.
  522. *
  523. * Availability:
  524. * Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
  525. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  526. * Non-Carbon CFM: not available
  527. }
  528. function HIComboBoxChangeAttributes( inComboBox: HIViewRef; inAttributesToSet: OptionBits; inAttributesToClear: OptionBits ): OSStatus; external name '_HIComboBoxChangeAttributes';
  529. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  530. {
  531. * HIComboBoxGetAttributes()
  532. *
  533. * Summary:
  534. * Get the attributes of a combo box.
  535. *
  536. * Mac OS X threading:
  537. * Not thread safe
  538. *
  539. * Parameters:
  540. *
  541. * inComboBox:
  542. * The combo box whose attributes you would like to obtain.
  543. *
  544. * outAttributes:
  545. * The attributes of the combo box.
  546. *
  547. * Result:
  548. * An operating system status code.
  549. *
  550. * Availability:
  551. * Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
  552. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
  553. * Non-Carbon CFM: not available
  554. }
  555. function HIComboBoxGetAttributes( inComboBox: HIViewRef; var outAttributes: OptionBits ): OSStatus; external name '_HIComboBoxGetAttributes';
  556. (* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
  557. {
  558. * HIComboBoxIsListVisible()
  559. *
  560. * Summary:
  561. * Returns whether the combo box list is currently disclosed.
  562. *
  563. * Mac OS X threading:
  564. * Not thread safe
  565. *
  566. * Parameters:
  567. *
  568. * inComboBox:
  569. * The combo box whose list visibility you would like to obtain.
  570. *
  571. * Result:
  572. * A boolean value indicating whether the combo box list is
  573. * disclosed (true) or hidden (false).
  574. *
  575. * Availability:
  576. * Mac OS X: in version 10.4 and later in Carbon.framework [32-bit only]
  577. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  578. * Non-Carbon CFM: not available
  579. }
  580. function HIComboBoxIsListVisible( inComboBox: HIViewRef ): Boolean; external name '_HIComboBoxIsListVisible';
  581. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  582. {
  583. * HIComboBoxSetListVisible()
  584. *
  585. * Summary:
  586. * Hides or shows the combo box list.
  587. *
  588. * Mac OS X threading:
  589. * Not thread safe
  590. *
  591. * Parameters:
  592. *
  593. * inComboBox:
  594. * The combo box whose list will be hidden or shown.
  595. *
  596. * inVisible:
  597. * A boolean value indicating whether you wish to hide the list
  598. * (false) or show the list (true).
  599. *
  600. * Result:
  601. * An operating system result code.
  602. *
  603. * Availability:
  604. * Mac OS X: in version 10.4 and later in Carbon.framework [32-bit only]
  605. * CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
  606. * Non-Carbon CFM: not available
  607. }
  608. function HIComboBoxSetListVisible( inComboBox: HIViewRef; inVisible: Boolean ): OSStatus; external name '_HIComboBoxSetListVisible';
  609. (* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
  610. {$endc} {not TARGET_CPU_64}
  611. {$endc} {TARGET_OS_MAC}
  612. {$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
  613. end.
  614. {$endc} {not MACOSALLINCLUDE}