Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 16 to 25 of 25
  1. #16
    Join Date
    May 2006
    Posts
    5,380
    Hey Ulrich, im getting exactly the same as Dermot

    i selected full version from the install options and im running Win7 if that's any help
    Open your eyes to Narcissism, Don't let her destroy your life!!

  2. #17
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Sorry for that. I managed to pack the wrong version into the installer. The GDI+ 1.1 version was not the evaluation build, and it does not work without a license at all. I have updated the installer, and it should work now. (Eight versions of the same plugin can get confusing.)

    Ulrich
    Last edited by Ulrich; 07-09-2010 at 07:11 AM.

  3. #18
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Quote Originally Posted by Ulrich View Post
    Sorry for that. I managed to pack the wrong version into the installer. The GDI+ 1.1 version was not the evaluation build, and it does not work without a license at all. I have updated the installer, and it should work now. (Eight versions of the same plugin can get confusing.)

    Ulrich
    That did it. Working fine now, thanks.
    Dermot

    I am so out of here

  4. #19
    Join Date
    Apr 2004
    Location
    Vancouver, Canada
    Posts
    1,790
    Quote Originally Posted by Ulrich View Post
    Here is an example, assuming that you have three ImageEx objects on your page, named "Seconds", "Minutes" and "Hour", each with its own clock hand. One Label object is used to display the hour as text.

    On Show:
    Code:
    Page.StartTimer(1000,10);


    On Timer:
    Code:
    segs = System.GetTime(TIME_FMT_SEC);
    ImageEx.SetAngle("Seconds", 6*segs);
    mins = System.GetTime(TIME_FMT_MIN);
    ImageEx.SetAngle("Minutes", 6*mins);
    hours = System.GetTime(TIME_FMT_HOUR);
    Label.SetText("Clock", hours..":"..mins..":"..segs);
    if (String.ToNumber(hours) >= 12) then
    	hours = hours - 12;
    end
    ImageEx.SetAngle("Hour", 30*hours + 30*(mins/60));
    Quick and dirty example:


    Ulrich
    Thanks for the example, works like a charm.
    Dermot

    I am so out of here

  5. #20
    Join Date
    Dec 2001
    Location
    Northam, Western Australia
    Posts
    98
    Thanks Ulrich,

    The code for the clock is excellent, simpler and far better than what I've been using (sixty individual second hands, etc). Thanks for sharing. On that count along, the ImageEx plugin gives APMS a significant edge!

  6. #21
    Join Date
    Dec 2001
    Location
    Northam, Western Australia
    Posts
    98
    With the ImageEx plugin, is there a way to set the image's "Hit Test" to "Alpha" ?



    The clock was movable on screen before the ImageEx hands were introduced -- the ImageEx properties of which seems to now cover the entire clockface.

    Thanks in advance.

  7. #22
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Hello,

    at this moment, there is no alpha hit test for the object - the whole window of the plugin will trigger the mouse events. I am currently researching if it is possible.
    In the meantime, I would overlay an additional image on the composition, with an alpha value of 1, which makes it virtually impossible to see, yet it can be used for hit detection and triggering of the scripts.

    Ulrich

  8. #23
    Join Date
    May 2010
    Posts
    25
    i don't know how do you remove, the lines of my app , will be a bug? i have win7 ult, AMS 8.0.2.0


  9. #24
    Join Date
    Apr 2005
    Location
    São Paulo, Brazil
    Posts
    2,539
    Quote Originally Posted by McMan View Post
    i don't know how do you remove, the lines of my app , will be a bug?
    You remove the lines by purchasing the plugin. The lines are drawn on purpose. Check the documentation for details.

    Ulrich

  10. #25
    Join Date
    May 2010
    Location
    Chennai, India
    Posts
    10
    wonderful plugin Ulrich. Clock is a nice example.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts