Show a window from a modal dialog

  1. ‹ Older
  2. 6 months ago

    Massimo V

    14 Mar 2019 Pre-Release Testers, Xojo Pro Europe (Germany, Würzburg)

    @Isaac R I'm attaching my project at this point since it might help with the frame type issues

    Thanks Isaac, I will check it.

  3. Michel B

    14 Mar 2019 Pre-Release Testers, Xojo Pro RubberViews.com

    @Massimo V Example: the dialog has some custom controls on it where the user has to make a choice before initiating some other action. Like a date field accepting a date and optionally with a button to open a date picker as a popup small window. This date picker field is a reusable container control.
    Of course can't close the dialog because this is where the user make a choice.

    I see a solution in plain Xojo that should work Xplat :

    Instead of using a dialog, use a false modal :

    Grab the screen content, then pop a window, maximize it and use the grabbed picture of the screen.

    Then display a regular window instead of the dialog. Since the maximized window will prevent clicking underneath, the regular window is the only place where click has effect. So it behaves like a modal.

    From that regular window, you can show any window or dialog you want.

    When closing the false modal, close the maximized false screen background.

  4. Massimo V

    15 Mar 2019 Pre-Release Testers, Xojo Pro Europe (Germany, Würzburg)

    @Michel B I see a solution in plain Xojo that should work Xplat :

    Instead of using a dialog, use a false modal :

    Grab the screen content, then pop a window, maximize it and use the grabbed picture of the screen.

    Then display a regular window instead of the dialog. Since the maximized window will prevent clicking underneath, the regular window is the only place where click has effect. So it behaves like a modal.

    From that regular window, you can show any window or dialog you want.

    When closing the false modal, close the maximized false screen background.

    Are you serious? :D

  5. Michel B

    15 Mar 2019 Pre-Release Testers, Xojo Pro RubberViews.com
    Edited 6 months ago

    I know. You have a talent for sarcasm.

    Sorry for trying to help.

    Note for oneself : Ignore Massimo Valle. Not worth it.

  6. Massimo V

    16 Mar 2019 Pre-Release Testers, Xojo Pro Europe (Germany, Würzburg)

    @Michel B I know. You have a talent for sarcasm.

    Sorry for trying to help.

    Note for oneself : Ignore Massimo Valle. Not worth it.

    Michel, frankly I thought you were kidding with your suggestion.
    Thank you for your contribute, anyway.

  7. Julian S

    20 Mar 2019 Pre-Release Testers, Xojo Pro UK

    I slept on this and thought about it again, seems like its a bug as it works in Visual Studio so I made a Feedback Case #55262

  8. Massimo V

    20 Mar 2019 Pre-Release Testers, Xojo Pro Europe (Germany, Würzburg)

    Thank you Julian, let's see how Xojo react to this.

or Sign Up to reply!