|
|
Home » Developing U++ » Mac OS » Unwanted search Ctrl in Help menu item
Unwanted search Ctrl in Help menu item [message #51439] |
Mon, 25 March 2019 21:48  |
 |
forlano
Messages: 1207 Registered: March 2006 Location: Italy
|
Senior Contributor |
|
|
Hello,
I am experiencing a weird behavior (under X11 mode). The menu has an additional Search ctrl that I haven't coded.
See picture:

This is the code
void VegaMain::VegaMainMenu(Bar& menu)
{
menu.Add(t_("File"), THISBACK(File) ).Key(K_CTRL_F);
menu.Add(t_("Standing"), THISBACK(Standing) ).Key(K_CTRL_X);
menu.Add(t_("Extras"), THISBACK(Extras) ).Key(K_CTRL_X);
menu.Add(t_("Rating Report"), THISBACK(ReportCB) ).Key(K_CTRL_R);
menu.Add(t_("Help"), THISBACK(Help) ).Key(K_CTRL_H);
}
//....
// and then
//....
void VegaMain::Help(Bar& bar)
{
bar.Add(t_("Content"), THISBACK(HelpContent));
bar.Separator();
#ifndef PLATFORM_LINUX
bar.Add(t_("Register ..."), THISBACK(HelpRegister));
bar.Add(t_("Registered to ..."), THISBACK(HelpRegistered));
bar.Separator();
#endif
bar.Add(t_("Check Update"), THISBACK(CheckUpdate));
bar.Separator();
bar.Add(t_("About"), THISBACK(HelpAbout));
}
Moreover all the items do not work, i.e. they do not perform any action.
The same code works OK under Windows and Linux.
Thanks,
Luigi
-
Attachment: pic1.png
(Size: 322.21KB, Downloaded 492 times)
|
|
|
|
|
|
|
Re: Unwanted search Ctrl in Help menu item [message #51457 is a reply to message #51455] |
Wed, 27 March 2019 03:51   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
mirek wrote on Tue, 26 March 2019 18:15
I have commited possible fix of the whole to the trunk.
It doesn't work in my case. I'm still getting the search bar.
My code (it looks fine to me):
void wnb3::SetMenuBar()
{
#ifdef PLATFORM_COCOA
SetMainMenu(THISBACK(main_menu));
menubar.Hide();
#else
menubar.Set(THISBACK(main_menu));
#endif
}
Full recompilation. TheIDE itself was compiled a moth ago.
Regards,
Novo
[Updated on: Wed, 27 March 2019 03:52] Report message to a moderator
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri Apr 25 12:42:37 CEST 2025
Total time taken to generate the page: 0.00600 seconds
|
|
|