mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-19 04:59:22 +00:00
Merge branch 'master' of github.mv.usa.alcatel.com:amercada/Cappuccino
This commit is contained in:
commit
072fac837c
1 file changed
+15
@@ -61,6 +61,13 @@
|
||||
|
||||
[[scrollView documentView] addSubview:innerScrollView];
|
||||
[[aWindow contentView] addSubview:scrollView];
|
||||
|
||||
var button = [CPButton buttonWithTitle:@"Change Scroller Mode"];
|
||||
[button setFrameOrigin:CPPointMake(10.0, 10.0)];
|
||||
[button setTarget:self];
|
||||
[button setAction:@selector(changeScrollerMode:)];
|
||||
|
||||
[[theWindow contentView] addSubview:button];
|
||||
}
|
||||
|
||||
- (void)scrollViewWillScroll:(CPScrollView)aScrollView
|
||||
@@ -89,4 +96,12 @@
|
||||
return scrollView;
|
||||
}
|
||||
|
||||
- (IBAction)changeScrollerMode:(id)aSender
|
||||
{
|
||||
if ([CPScrollView globalScrollerStyle] == CPScrollerStyleOverlay)
|
||||
[CPScrollView setGlobalScrollerStyle:CPScrollerStyleLegacy];
|
||||
else
|
||||
[CPScrollView setGlobalScrollerStyle:CPScrollerStyleOverlay];
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in new issue
Block a user