Forums

Find answers, ask questions, and connect with our
community all around the world.

Home Forum Omnis General Forum Modal Dialog Window

  • Modal Dialog Window

    Posted by Gerardo on October 10, 2019 at 9:17 am

    I want to create a window that behaves like the OK message. When the window is open the calling code should pause until the child window is closed. What window properties and calling code are required to make this work?
    Thanks!

    Diego Mendoza Muñoz replied 4 years, 9 months ago 2 Members · 2 Replies
  • 2 Replies
  • Gerardo

    Member
    October 10, 2019 at 7:03 pm

    This is what I have calling the child window:

    ; Calling child window here – code execution should pause after calling:
    Do $clib.$windows.wOKMessage.$openmodal(‘*’,kWindowCenterRelative,$topwind) Returns rWin

    ; This and all lines below should not process until wOKMessage is closed.

    Not sure if this is possible in Omnis.

  • Diego Mendoza Muñoz

    Member
    October 27, 2019 at 6:50 pm

    I build a activity controller, that have a Class List “VC_WindowsStackActivity” in which columns have, windowsCallback, methodCallback, event, resultActivity and finish.
    For stop te executing i use the “EnterData until row.finish=kTrue”, in this case the object wait for the method $activityFinish(pResultRow,pActivityOK) this method set finish to kTrue and the code goes, the resultRow is the param for the callback, this make the app can register a queue of windows wait for user interactions.
    If you want to show the code please write me diego231192@gmail.com. i dont know how upload the lib.
    Sorry for my english im spanish speaker.

Log in to reply.