Book a Demo

Author Topic: Help creating a date picker shapescript  (Read 3031 times)

Colin Richardson

  • EA User
  • **
  • Posts: 52
  • Karma: +0/-0
    • View Profile
Help creating a date picker shapescript
« on: January 23, 2012, 03:40:26 pm »
I've got an image of a little calendar and a down arrow that I want to always appear in the top right corner of a rectangle.

Just can't get the docking to the right.  Here's the script - any ideas?

(ignore the image parameters as that's just a rough placement for a screen I have)

shape main
{
      setfillcolor(250, 250, 250);
      rectangle(0,0,100,100);
      println("#name#");
      addsubshape("picker","NE");
      
      shape picker
      {
            scalable="false";
            layoutType="border";
            preferredwidth=40;
            image("Date picker", 170,1,210,26);      
      }
}