Hack: force a vertical scroller on wxListBox.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@51799 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
David Elliott
2008-02-14 22:54:20 +00:00
parent 339d6db705
commit 00a7dfee85

View File

@@ -23,12 +23,14 @@
#include "wx/cocoa/string.h"
#include "wx/cocoa/autorelease.h"
#include "wx/cocoa/ObjcRef.h"
#include "wx/cocoa/private/scrollview.h"
#include "wx/cocoa/NSTableDataSource.h"
#import <Foundation/NSArray.h>
#import <Foundation/NSEnumerator.h>
#import <AppKit/NSTableView.h>
#import <AppKit/NSTableColumn.h>
#import <AppKit/NSScrollView.h>
IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
BEGIN_EVENT_TABLE(wxListBox, wxListBoxBase)
@@ -116,6 +118,9 @@ The listbox contents are sorted in alphabetical order.
CocoaCreateNSScrollView();
SetInitialFrameRect(pos,size);
// Force showing of a vertical scrollbar
[m_wxCocoaScrollView->GetNSScrollView() setHasVerticalScroller:YES];
// Set up extended/multiple selection flags
if ((style & wxLB_EXTENDED) || (style & wxLB_MULTIPLE))
//diff is that mult requires shift down for multi selection