|
|
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: 1202 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 434 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: 1371 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 Sep 20 05:06:45 CEST 2024
Total time taken to generate the page: 0.02577 seconds
|
|
|