/*
    ####             #    #     # #
    #   #            #    #       #          The FreeWare C library for 
    #   #  ##   ###  #  # #     # ###             RISC OS machines
    #   # #  # #     # #  #     # #  #   ___________________________________
    #   # ####  ###  ##   #     # #  #                                      
    #   # #        # # #  #     # #  #    Please refer to the accompanying
    ####   ### ####  #  # ##### # ###    documentation for conditions of use
    ________________________________________________________________________

    File:    Dialog.ShowAt.c
    Author:  Copyright  1994 Peter Gaunt
    Version: 1.00 (12 Mar 1994)
    Purpose: Very high level window (dialogue) handling -
             Showing non-permanent (menu) dialogues
*/


#include "Desk.Wimp.h"
#include "Desk.WimpSWIs.h"

#include "Desk.Dialog.h"


/* Similar to Desk_Dialog_Show but opens dialogue at x/y */
extern void Desk_Dialog_ShowAt( dialog dbox, int x, int y )
{
  dbox->state.isstatic = Desk_bool_FALSE;
  Desk_Wimp_eCreateMenu( (Desk_menu_block *) dbox->window, x, y);
  dbox->state.stillopen = Desk_bool_TRUE;
}
