Set the number of visible items in a ComboBox

//This only works for a ComboBox not a PopupMenu. In the example below the number of visible items //is set to 2. The code is placed in the open event of the ComboBox Sub Open() declare sub setNumberOfVisibleItems lib "Cocoa" selector "setNumberOfVisibleItems:" ( handle as integer, value as Integer ) setNumberOfVisibleItems(me.Handle,2) End Sub

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.