Click-through and drawing (in)active controls
Click-through and drawing (in)active controls
- Subject: Click-through and drawing (in)active controls
- From: Dan Bernstein <cocoa-dev%email@hidden>
- Date: Tue, 18 Feb 2003 15:50:11 +0200
Hi,
The Aqua HIG mention "click-through" behavior, but don't offer many
implementation clues. I hope you can help.
Say I want an NSSlider to have click( & drag)-through behavior.
Currently I accomplish this by subclassing NSSlider and overriding
shouldDelayWindowOrderingForEvent: to return YES. However, when the
window containing the slider is not the main window, the slider knob
looks inactive. The HIG seem to suggest that it should maintain the
active look. How can I accomplish this? This brings me to the second
question, which is:
When implementing a custom control or cell, how can my drawRect know
whether it should draw as active or an inactive?
Thanks in advance,
-- Dan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.