Implement support for wxGA_VERTICAL style in wxOSX.
Rotate the native control to make it look correct in vertical orientation. Closes #15682. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_3_0_BRANCH@76049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -641,6 +641,7 @@ wxOSX:
|
|||||||
|
|
||||||
- Fix incorrect joystick detection in configure (Lauri Nurmi).
|
- Fix incorrect joystick detection in configure (Lauri Nurmi).
|
||||||
- Fix crash in wxDataViewCtrl when cancelling choice selection (hartwigw).
|
- Fix crash in wxDataViewCtrl when cancelling choice selection (hartwigw).
|
||||||
|
- Implement support for wxGA_VERTICAL in wxGauge (themindiswatching).
|
||||||
- Add support for wxEVT_COMBOBOX_DROPDOWN and wxEVT_COMBOBOX_CLOSEUP
|
- Add support for wxEVT_COMBOBOX_DROPDOWN and wxEVT_COMBOBOX_CLOSEUP
|
||||||
events to wxOSX/Cocoa (Igor Korot).
|
events to wxOSX/Cocoa (Igor Korot).
|
||||||
|
|
||||||
|
@@ -113,7 +113,7 @@ wxWidgetImplType* wxWidgetImpl::CreateGauge( wxWindowMac* wxpeer,
|
|||||||
wxInt32 maximum,
|
wxInt32 maximum,
|
||||||
const wxPoint& pos,
|
const wxPoint& pos,
|
||||||
const wxSize& size,
|
const wxSize& size,
|
||||||
long WXUNUSED(style),
|
long style,
|
||||||
long WXUNUSED(extraStyle))
|
long WXUNUSED(extraStyle))
|
||||||
{
|
{
|
||||||
NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
|
NSRect r = wxOSXGetFrameForControl( wxpeer, pos , size ) ;
|
||||||
@@ -123,6 +123,10 @@ wxWidgetImplType* wxWidgetImpl::CreateGauge( wxWindowMac* wxpeer,
|
|||||||
[v setMaxValue: maximum];
|
[v setMaxValue: maximum];
|
||||||
[v setIndeterminate:FALSE];
|
[v setIndeterminate:FALSE];
|
||||||
[v setDoubleValue: (double) value];
|
[v setDoubleValue: (double) value];
|
||||||
|
if (style & wxGA_VERTICAL)
|
||||||
|
{
|
||||||
|
[v setBoundsRotation:-90.0];
|
||||||
|
}
|
||||||
wxWidgetCocoaImpl* c = new wxOSXGaugeCocoaImpl( wxpeer, v );
|
wxWidgetCocoaImpl* c = new wxOSXGaugeCocoaImpl( wxpeer, v );
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user