mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +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
ad7b88ad21
commit
867c0523e0
1 changed files with 8 additions and 4 deletions
|
@ -275,32 +275,36 @@ static NSColor *scrollBarColor = nil;
|
|||
return;
|
||||
|
||||
upCell = [NSButtonCell new];
|
||||
[upCell setHighlightsBy: NSChangeBackgroundCellMask];
|
||||
[upCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask];
|
||||
[upCell setImage: [NSImage imageNamed: @"common_ArrowUp"]];
|
||||
[upCell setAlternateImage: [NSImage imageNamed: @"common_ArrowUpH"]];
|
||||
[upCell setImagePosition: NSImageOnly];
|
||||
[upCell setContinuous: YES];
|
||||
[upCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
||||
[upCell setPeriodicDelay: 0.3 interval: 0.03];
|
||||
|
||||
downCell = [NSButtonCell new];
|
||||
[downCell setHighlightsBy: NSChangeBackgroundCellMask];
|
||||
[downCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask];
|
||||
[downCell setImage: [NSImage imageNamed: @"common_ArrowDown"]];
|
||||
[downCell setAlternateImage: [NSImage imageNamed: @"common_ArrowDownH"]];
|
||||
[downCell setImagePosition: NSImageOnly];
|
||||
[downCell setContinuous: YES];
|
||||
[downCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
||||
[downCell setPeriodicDelay: 0.3 interval: 0.03];
|
||||
|
||||
leftCell = [NSButtonCell new];
|
||||
[leftCell setHighlightsBy: NSChangeBackgroundCellMask];
|
||||
[leftCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask];
|
||||
[leftCell setImage: [NSImage imageNamed: @"common_ArrowLeft"]];
|
||||
[leftCell setAlternateImage: [NSImage imageNamed: @"common_ArrowLeftH"]];
|
||||
[leftCell setImagePosition: NSImageOnly];
|
||||
[leftCell setContinuous: YES];
|
||||
[leftCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
||||
[leftCell setPeriodicDelay: 0.3 interval: 0.03];
|
||||
|
||||
rightCell = [NSButtonCell new];
|
||||
[rightCell setHighlightsBy: NSChangeBackgroundCellMask];
|
||||
[rightCell setHighlightsBy: NSChangeBackgroundCellMask | NSContentsCellMask];
|
||||
[rightCell setImage: [NSImage imageNamed: @"common_ArrowRight"]];
|
||||
[rightCell setAlternateImage: [NSImage imageNamed: @"common_ArrowRightH"]];
|
||||
[rightCell setImagePosition: NSImageOnly];
|
||||
[rightCell setContinuous: YES];
|
||||
[rightCell sendActionOn: (NSLeftMouseDownMask | NSPeriodicMask)];
|
||||
|
|
Loading…
Reference in a new issue