Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160

    Detect Kiosk Mode

    Is there a way to detect if an application is running in Kiosk mode? I have run into a problem where if you are running in kiosk mode and you get the coordinate information for an object on the page and then try to use those coordinates to open a popup menu, the popup menu is then placed on the page and not over the object where you clicked. This is of course when dealing with a project that does not fit the size of the screen.

    I figure if I have to I can set a variable that states if the app is running in Kiosk mode and if it is, I can then adjust the coordinates accordingly for the popup to appear where i want it to appear, or even use Worms Mouse.dll to base the coordinates on the mouse position instead of the screen button coordinates.

    Tigg
    Attached Images
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  2. #2
    Join Date
    Jul 2002
    Location
    USA
    Posts
    3,959
    I had the same issue with SetMask. I ended up having to put the offset in manually because I couldn't come up with a bullet proof way of detecting KIOSK over Flat windows. I could narrow it down to those 2 types, but from there I couldn't ever distinguish.

  3. #3
    Join Date
    Aug 2005
    Posts
    17
    well, since im not sure about what youre doing, im going to assume some things...1st assumption is that you are using the "detect screen size" functions from the forum here...second that the popup is an object that you can use SetPos and SetSize on. If neither of these are correct, then disregard what I post...

    I spent a lot of time to make my project open full screen for different screen res's and took portions of what I read in this forum and created what I believe is a final solution. Feel free to test, but this does away with having more than one project for different sizes, does not require i to be a web browser to adjust size, allows objects to get resized (using coordinates) with the page.

    --Page "On Preload"
    Code:
    display = System.GetDisplayInfo();
    Window.SetSize(Application.GetWndHandle(), display.Width, display.Height);
    Window.SetPos(Application.GetWndHandle(), 0, 0);
    Paragraph.SetSize("ApplicationText", 457, 32);
    Paragraph.SetPos("ApplicationText", 0, 0);
    --Page "On Show"
    Code:
    Window.SetSize(Application.GetWndHandle(), display.Width, display.Height);
    Paragraph.SetPos("ApplicationText", 0, 0);

  4. #4
    Join Date
    Aug 2005
    Posts
    17
    I guess I was wrong in my assumptions.

  5. #5
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160
    The popup is from www.icynorth.com and when you build the popup menu you have to specify the coordinates where you want the popup to appear. Normally I use the coordinates of the button pushed to make the popup appear just below the button. However when in Kiosk mode when you set the coordinates for the popup it sets it to the screen position and not the project position which maybe smaller than screen.

    What I have done is detect if the project res is larger than the original size. If this is the case then I do some quick math to adjust the coordinates so it appears in the correct location.

    Tigg
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

Similar Threads

  1. Running in Full Screen (Kiosk) Mode
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 09-26-2003, 10:51 AM
  2. INFO: Launching Internet Explorer in Kiosk Mode
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-10-2002, 10:07 AM
  3. INFO: Launching Internet Explorer in Kiosk Mode
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-10-2002, 10:06 AM
  4. INFO: Launching Internet Explorer in Kiosk Mode
    By Support in forum AutoPlay Menu Studio 3.0
    Replies: 0
    Last Post: 10-10-2002, 10:06 AM
  5. INFO: Launching Internet Explorer in Kiosk Mode
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-10-2002, 10:05 AM

Posting Permissions

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