mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 21:31:56 +00:00
Use added highlighted images of buttons
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19691 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
225002c94c
commit
84021cb0c7
1 changed files with 8 additions and 4 deletions
|
@ -275,32 +275,36 @@ static NSColor *scrollBarColor = nil;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
upCell = [NSButtonCell new];
|
upCell = [NSButtonCell new];
|
||||||
[upCell setHighlightsBy: NSChangeBackgroundCellMask];
|
[upCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask];
|
||||||
[upCell setImage: [NSImage imageNamed: @"common_ArrowUp"]];
|
[upCell setImage: [NSImage imageNamed: @"common_ArrowUp"]];
|
||||||
|
[upCell setAlternateImage: [NSImage imageNamed: @"common_ArrowUpH"]];
|
||||||
[upCell setImagePosition: NSImageOnly];
|
[upCell setImagePosition: NSImageOnly];
|
||||||
[upCell setContinuous: YES];
|
[upCell setContinuous: YES];
|
||||||
[upCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
[upCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
||||||
[upCell setPeriodicDelay: 0.3 interval: 0.03];
|
[upCell setPeriodicDelay: 0.3 interval: 0.03];
|
||||||
|
|
||||||
downCell = [NSButtonCell new];
|
downCell = [NSButtonCell new];
|
||||||
[downCell setHighlightsBy: NSChangeBackgroundCellMask];
|
[downCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask];
|
||||||
[downCell setImage: [NSImage imageNamed: @"common_ArrowDown"]];
|
[downCell setImage: [NSImage imageNamed: @"common_ArrowDown"]];
|
||||||
|
[downCell setAlternateImage: [NSImage imageNamed: @"common_ArrowDownH"]];
|
||||||
[downCell setImagePosition: NSImageOnly];
|
[downCell setImagePosition: NSImageOnly];
|
||||||
[downCell setContinuous: YES];
|
[downCell setContinuous: YES];
|
||||||
[downCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
[downCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
||||||
[downCell setPeriodicDelay: 0.3 interval: 0.03];
|
[downCell setPeriodicDelay: 0.3 interval: 0.03];
|
||||||
|
|
||||||
leftCell = [NSButtonCell new];
|
leftCell = [NSButtonCell new];
|
||||||
[leftCell setHighlightsBy: NSChangeBackgroundCellMask];
|
[leftCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask];
|
||||||
[leftCell setImage: [NSImage imageNamed: @"common_ArrowLeft"]];
|
[leftCell setImage: [NSImage imageNamed: @"common_ArrowLeft"]];
|
||||||
|
[leftCell setAlternateImage: [NSImage imageNamed: @"common_ArrowLeftH"]];
|
||||||
[leftCell setImagePosition: NSImageOnly];
|
[leftCell setImagePosition: NSImageOnly];
|
||||||
[leftCell setContinuous: YES];
|
[leftCell setContinuous: YES];
|
||||||
[leftCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
[leftCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
||||||
[leftCell setPeriodicDelay: 0.3 interval: 0.03];
|
[leftCell setPeriodicDelay: 0.3 interval: 0.03];
|
||||||
|
|
||||||
rightCell = [NSButtonCell new];
|
rightCell = [NSButtonCell new];
|
||||||
[rightCell setHighlightsBy: NSChangeBackgroundCellMask];
|
[rightCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask];
|
||||||
[rightCell setImage: [NSImage imageNamed: @"common_ArrowRight"]];
|
[rightCell setImage: [NSImage imageNamed: @"common_ArrowRight"]];
|
||||||
|
[rightCell setAlternateImage: [NSImage imageNamed: @"common_ArrowRightH"]];
|
||||||
[rightCell setImagePosition: NSImageOnly];
|
[rightCell setImagePosition: NSImageOnly];
|
||||||
[rightCell setContinuous: YES];
|
[rightCell setContinuous: YES];
|
||||||
[rightCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
[rightCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue