User Tag List

Results 1 to 5 of 5

Thread: Detecting Closing of File Object Selector

  1. #1
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Detecting Closing of File Object Selector

    Is there a way to detect the closing of the file object load selector closing?

    I am trying to copy file names into edit boxes when they are selected from the file load file selector. Everything works fine unless the user opens the file load selector and just closes it. I am checking for the file by looking for readable file name selected. But if the load selector is just closed, it places nothing in the edit box and does not turn off. I need a way to see that the selector is closed.

    Any help appreciated.
    Steve

  2. #2
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Detecting Closing of File Object Selector

    When the selector is open, your application is stopped. The best way to handle the file selector of the file object is to put its actions in a group, and then to open the selector just activate the group :

    Group XXX

    - Always / Open Selector

    - Do what you want here

    - Always / Deactivate Group XXX

    You can test if the user has clicked the Open button or the Cancel button by testing if the returned pathname is empty or not.

  3. #3
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detecting Closing of File Object Selector

    Instead of using groups, I use fastloops.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jul 2006
    Location
    USA
    Posts
    658
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detecting Closing of File Object Selector

    Ever since I've found the Common Dialog Object to be inconsistant, I've relied on Yves' way of using the File object.

    Make sure the group is disabled in your event editor.

  5. #5
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Detecting Closing of File Object Selector

    Thanks, Yves. That worked perfectly.
    Steve

Similar Threads

  1. Array object file selector
    By cimics in forum Android Export Module Version 2.0
    Replies: 0
    Last Post: 13th April 2013, 04:48 AM
  2. File object - file selector saving issues
    By Gary_Molton in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th November 2006, 08:25 PM
  3. File selector styles? (file object)
    By LazyCoder in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 28th October 2006, 09:29 PM
  4. File Object Selector?
    By Rushino in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 27th October 2006, 04:33 AM
  5. File Object Selector Bug?
    By JSJ in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th July 2006, 02:49 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
  •