• 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
Is it possible to set style of Date Picker 'on the fly'?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Is it possible to set style of Date Picker 'on the fly'?


  • Subject: Is it possible to set style of Date Picker 'on the fly'?
  • From: Brian Christmas <email@hidden>
  • Date: Tue, 23 Aug 2011 21:37:48 +1000

G'day scripters

I'd like to be able to offer a choice of date pickers between 'graphical' and 'Textual with Stepper'. Is it possible to do this in the following routine, or should I use two different date pickers and adjust the dates between them.

 on theDateEntry_(sender)
         set test to theDateEntryType's state as integer
        if test = 1 then
             tell theStartDate to setFrame_({origin:{x:46, y:190}, |size|:{|width|:200, height:35}})
            set theStartDate's style to "Textual with Stepper"  
            theDateEntryType's setImage_(greenArrowUp)  
        else
            tell theStartDate to setFrame_({origin:{x:46, y:48}, |size|:{|width|:278, height:148}})
            set theStartDate's style to "Graphical"  
            theDateEntryType's setImage_(greenArrowDown)
        end if
     end theDateEntry_



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

  • Follow-Ups:
    • Re: Is it possible to set style of Date Picker 'on the fly'?
      • From: Shane Stanley <email@hidden>
  • Prev by Date: can't convert store AS date as text to Date format
  • Next by Date: Re: can't convert store AS date as text to Date format
  • Previous by thread: Re: can't convert store AS date as text to Date format
  • Next by thread: Re: Is it possible to set style of Date Picker 'on the fly'?
  • Index(es):
    • Date
    • Thread