Re: north - east - south - west selector using NSMatrix?
Re: north - east - south - west selector using NSMatrix?
- Subject: Re: north - east - south - west selector using NSMatrix?
- From: patrick machielse <email@hidden>
- Date: Wed, 30 Aug 2006 00:30:07 +0200
Op 29-aug-2006, om 23:54 heeft Ricky Sharp het volgende geschreven:
On Aug 29, 2006, at 4:19 PM, patrick machielse wrote:
I'm trying to implement a control area for selecting a direction
(north - east - south - west, or top - right - bottom - left).
Only one of these choices can be selected at one time.
[]
Since this type of control seems fairly common, I was wondering
what solutions other people are using, and if there is a better
way to do it than I'm using now (I suppose so!).
Started with a square push button and set it to have an "On/Off"
behavior. Dragged out a 3 x 3 matrix. Center and four corner
cells were set to be disabled and to not have a border. "North"
cell set to be selected. Matrix mode set to Radio.
Clicking in any of the "dead" cells does nothing. Clicking on the
others lets you select them and you can even drag-select amongst
the four choices.
Looks much better than my solution! Thanks!
The correct display seems to hinge on the fact that the 'hidden'
buttons must be left in 'momentary push in', and not set to on/off.
Also when the matrix x/y spacing has negative values, there are some
redrawing glitches (right edge of the 'west' button). But once you
know that, life is easy ;-)
patrick
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden