• 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
How do I set up image in segmented controller?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I set up image in segmented controller?


  • Subject: How do I set up image in segmented controller?
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 11 Aug 2011 00:18:25 +1000

G'day Scripters

Shane's new eBook is great, I've set up my pop up menus using segmented controllers in Panels using it. But, I can't find information that a nooby can understand on setting up images in the segments. I'd like to use the greenCircle and redCircle from Shane's examples, but they're not working (I was hoping, but…).

There's nothing in Googling unfortunately.

The code I've started with to try it is

Any advice appreciated.

    on setAllTheDays_(sender)
        if sender = setDaysFinished then setTheDaysWindow's orderOut_(me)
         if sender = setEveryDay then setEveryDay's setImage_forSegmentAtIndex_(greenCircle,0)
         if sender = setSunday then setSunday's setImage_forSegmentAtIndex_(greenCircle,0)
        if sender = setMonday then setMonday's setImage_forSegmentAtIndex_(greenCircle,0)
        if sender = setTuesday then setTuesday's setImage_forSegmentAtIndex_(greenCircle,0)
        if sender = setWednesday then sender's setImage_forSegmentAtIndex_(greenCircle,0)
        if sender = setThursday then sender's setImage_forSegmentAtIndex_(greenCircle,0)
        if sender = setFriday then sender's setImage_forSegmentAtIndex_(greenCircle,0)
        if sender = setSaturday then sender's setImage_forSegmentAtIndex_(greenCircle,0)

        

    end setAllTheDays

Regards

Santa
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: What can I use for dynamic menu please?
  • Next by Date: Re: What can I use for dynamic menu please?
  • Previous by thread: Re: What can I use for dynamic menu please?
  • Next by thread: Re: How do I set up image in segmented controller?
  • Index(es):
    • Date
    • Thread