Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 8 of 8
  1. #1
    Join Date
    Feb 2007
    Posts
    21

    toggle visibility of objects - how???

    hi,

    got a general problem, i couldnt clear by myself...

    often i wanna make an image, which works as a switch for visibility -
    but dont know how....

    for example:

    -image "X" should get visible, if i enter hotspot "A"
    -image "X" should get invisible, if i leave hotspot "A"
    -image "X" should stay visible, when i click hotspot "A"
    -image "X" should get invisible again, when i click hotspot "A" again (was already clicked 1 time) ...
    ...and so on....

    hope i explained good enough to follow,
    cause my english istn the best

    i would be very happy, if anybody can tell me how to do it.

    thx
    just4fun2k7
    Last edited by just4fun2k7; 02-22-2007 at 01:50 AM.

  2. #2
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    First thing is that you can do all of this with the image object alone (no hotspot object should be needed).

    Put this code in the "On Show" event for your page:
    Code:
    -- Setup a variable with the name of the image object
    str_ImageName = "Image1";
    
    -- Ensure that the image is invisible 
    Image.SetVisible(str_ImageName, false);
    
    -- Setup a boolean that help us control the result of clicks on the image
    bln_StickyVisible = false;
    Put this code in the "On Enter" event for your image object
    Code:
    -- check to see if the image is invisible and if so, make visible
    if not Image.IsVisible(str_ImageName) then
    Image.SetVisible(str_ImageName, true);
    end
    Put this code in the "On Leave" event for your image object
    Code:
    -- Check to see if the image has been clicked to stay visible and
    -- if not make invisible
    if not bln_StickyVisible then
    Image.SetVisible(str_ImageName, false);
    end
    Put this code in the "On Click" event for your image object
    Code:
    -- Toggle to the StickyVisible boolean
    if bln_StickyVisible then
    bln_StickyVisible = false;
    else
    bln_StickyVisible = true;
    end
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  3. #3
    Join Date
    Aug 2004
    Location
    Somewhere in Texas, USA
    Posts
    417
    And yet another way.
    Attached Files

  4. #4
    Join Date
    Feb 2007
    Posts
    21
    hey

    thanx for the support! ill have a look on your suggestions...

    another small question from me, i cant handle now:

    how can i make it, that just 1 specific page of my project is
    "always on top"?

    thx a lot again!

    just4fun2k7

  5. #5
    Join Date
    Oct 2005
    Location
    MI
    Posts
    524
    Not sure I understand the question... If you never jump to another page, then the one you start with will always be on top.

    ... but if you only ever want 1 page to be on top, why would you have other pages?
    Yeah right. Who's the only one here who knows the illegal ninja moves from the government?

    ()))))))))o)))))))==============================================

  6. #6
    Join Date
    Feb 2007
    Posts
    21
    here's the reason for my wish:

    on some pages of my projekt different applications (exe) can be started...
    ...and some of them are fullscreen.

    and to be able to see one specific page of the projekt then,
    ill need to do that.

    would be great, if its possible anyway.

    thx for the great help & support!

    greetz
    just4fun2k7

  7. #7
    Join Date
    May 2006
    Posts
    5,380
    easy,

    in the page you want to be ontop, put this in the page onshow event

    Window.SetOrder(Application.GetWndHandle(), HWND_TOPMOST);
    and in every other page put,

    Window.SetOrder(Application.GetWndHandle(), HWND_NOTOPMOST);
    Open your eyes to Narcissism, Don't let her destroy your life!!

  8. #8
    Join Date
    Feb 2007
    Posts
    21
    thanx, ill try all the tips.

Similar Threads

  1. Example: XP ExlorerBar and Grouping Objects
    By Worm in forum AutoPlay Media Studio 5.0 Examples
    Replies: 20
    Last Post: 06-05-2007, 01:56 AM
  2. Function: Show/Hide All Objects of a Specific Type
    By Brett in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 05-10-2004, 02:29 PM
  3. Applying Changes to Multiple Objects
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 03:07 PM
  4. Pinning Objects
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 01:04 PM

Posting Permissions

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