Callback: | AEFSetValueToCurrentTimeString |
Arguments: |
Gadget - Gadget whose value is to be modified strftime_cntrl_str - date/time format string |
|
|
Description: | For single-valued gadgets, sets value to formatted time string. For List gadgets, deletes existing entries and inserts formatted time string. This callback calls time() to get current time, then calls strftime() with the format-control-string specified by the caller. Resulting formatting time string must fit in 99 bytes. |
Example: |
Button { Name = SetGadgetValue; Title = "SetGadgetValue"; /* This button will Set the FinalValue gadget * with the current date in the format mm/dd/yy */ Commands = AEFSetValueToCurrentTimeString&/.../FinalValue ("%m/%d/%y"); } |