• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: north - east - south - west selector using NSMatrix?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >north - east - south - west selector using NSMatrix? (From: patrick machielse <email@hidden>)
 >Re: north - east - south - west selector using NSMatrix? (From: Ricky Sharp <email@hidden>)

  • Prev by Date: Re: NSATSTypesetter garbled text when switching to next container
  • Next by Date: Re: Where did I just type that character?
  • Previous by thread: Re: north - east - south - west selector using NSMatrix?
  • Next by thread: GORM of GNUstep finally reads and writes nibs (was: Fwd: ANN: Gorm-1.1.0)
  • Index(es):
    • Date
    • Thread