Page 1 of 1

Eliminate Taskmenu

Posted: 6 Aug 2023 22:01
by daveplummermd
Is there a way to eliminate the TaskMenu? I have tried a few options including:

1. Deleting the "menuset" from "generatedInitialize" from the takwindow.pro. This compiles but error is thrown at runtime.

2. changing the "generatedInitialize" menuset item to "nomenu". This compiles but error is thrown at runtime.

3. I have eliminated all meu items, but when compiled and run there remains TaskMenu item "Windows"

Any advice??
Thanks in advance
Dave

Re: Eliminate Taskmenu

Posted: 7 Aug 2023 11:44
by Thomas Linder Puls
There is no apparent vpi way to deal with this. But you can do is more natively (the last line):

Code: Select all

predicates     onShow : window::showListener. clauses     onShow(_, _CreationData) :-         _MessageForm = messageForm::display(This),         _ = gui_native::setMenu(vpiWindow, nullHandle).
I should add that I have not investigated whether this has some drawbacks. The vpi code is quite insisting that the application must have a menu.

Re: Eliminate Taskmenu

Posted: 7 Aug 2023 15:25
by daveplummermd
Thanks!
worked great....
: