Close API Fonts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • richard@cd107.com.au

    #1

    Close API Fonts

    Help with with the API - Calling Windows Choose Font Dialog

    Found on The Access Web



    The code was originally written by Terry Kreft,
    and modified by Stephen Lebans and many thanks to them

    Problem - If I don't close the font window and select another option
    button or try and close my program with the font window open the
    system locks up.

    I need some way of either forcing the user to close the font window
    before moving to another location or closing the API through code.

    Any ideas would be greatly appreciated.

  • Tom van Stiphout

    #2
    Re: Close API Fonts

    On 24 Apr 2007 02:57:40 -0700, richard@cd107.c om.au wrote:

    That article came with a downloadable sample. Run it. Observe no
    crash. Conclude the problem is with your code (probably immediately
    after the font selection - set a breakpoint and carefully step
    through).
    Or: Observe same crash. Conclude the problem is with your machine.

    -Tom.

    >Help with with the API - Calling Windows Choose Font Dialog
    >
    >Found on The Access Web
    >
    >http://www.mvps.org/access/api/api0061.htm
    >
    >The code was originally written by Terry Kreft,
    >and modified by Stephen Lebans and many thanks to them
    >
    >Problem - If I don't close the font window and select another option
    >button or try and close my program with the font window open the
    >system locks up.
    >
    >I need some way of either forcing the user to close the font window
    >before moving to another location or closing the API through code.
    >
    >Any ideas would be greatly appreciated.

    Comment

    • richard@cd107.com.au

      #3
      Re: Close API Fonts

      On Apr 25, 12:11 am, Tom van Stiphout <no.spam.tom7.. .@cox.netwrote:
      On 24 Apr 2007 02:57:40 -0700, rich...@cd107.c om.au wrote:
      >
      That article came with a downloadable sample. Run it. Observe no
      crash. Conclude the problem is with your code (probably immediately
      after the font selection - set a breakpoint and carefully step
      through).
      Or: Observe same crash. Conclude the problem is with your machine.
      >
      -Tom.
      >
      >
      >
      Help with with the API - Calling Windows Choose Font Dialog
      >
      Found on The Access Web
      >>
      The code was originally written by Terry Kreft,
      and modified by Stephen Lebans and many thanks to them
      >
      Problem - If I don't close the font window and select another option
      button or try and close my program with the font window open the
      system locks up.
      >
      I need some way of either forcing the user to close the font window
      before moving to another location or closing the API through code.
      >
      Any ideas would be greatly appreciated.- Hide quoted text -
      >
      - Show quoted text -
      The font window shuts properly in my code when closed by user
      properly. When user tries to close the program without shutting the
      font window or tries to access another option button the open font
      window is hidden. Without closing the font icon on the toolbar the
      system freezes. As the test program supplied on the database does not
      have other options you cannot see this but if you try and close
      without shutting the font window the computer seems to lock up on the
      test program



      Richard .

      Comment

      Working...