Discussions related to Visual Prolog
daveplummermd
VIP Member
Posts: 81
Joined: 18 Jul 2006 17:18

Eliminate Taskmenu

Unread post 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
Dave Plummer
User avatar
Thomas Linder Puls
VIP Member
Posts: 1401
Joined: 28 Feb 2000 0:01

Re: Eliminate Taskmenu

Unread post 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.
Regards Thomas Linder Puls
PDC
daveplummermd
VIP Member
Posts: 81
Joined: 18 Jul 2006 17:18

Re: Eliminate Taskmenu

Unread post by daveplummermd »

Thanks!
worked great....
:
Dave Plummer
Post Reply