Page 1 of 1

Dialog not coming off of windows menu

Posted: Mon Oct 08, 2012 3:02 pm
by Cliff Wiernik
I have a dialog that works like this that is starting in a thread from the main menu

dcsays and dcsets

DCREAD GUI EXIT SAVE EVAL {|x| oDialog := x}

lStatus := DC_ReadGuiEventLoop(Getlist)
d_oDialog:destroy()

However, the dialog name continues to appear in the windows menu. It is not accessible, but is still checked. How do I get it to be removed from the windows menu on the main menu.

Cliff.

Re: Dialog not coming off of windows menu

Posted: Mon Oct 08, 2012 4:16 pm
by rdonnay
Try this:

Code: Select all

DC_WinMenu():delItem(oDialog)

Re: Dialog not coming off of windows menu

Posted: Mon Oct 08, 2012 5:19 pm
by Cliff Wiernik
Thanks Roger.

Took care of it. Doing this manually must not update the Dc_Winmenu()