Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » LineEdit and menu
LineEdit and menu [message #18576] Fri, 10 October 2008 09:48 Go to next message
cocob is currently offline  cocob
Messages: 156
Registered: January 2008
Experienced Member
Is there a way to add new items in the Lineedit PopupMenu without modifying LineEdit code himself ?

Thanks for your help
cocob
Re: LineEdit and menu [message #18580 is a reply to message #18576] Fri, 10 October 2008 12:58 Go to previous messageGo to next message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
In Constructor:
    lineedit.WhenBar = THISBACK(OnLineEditBar);

Member function for callback:
void AWindow::OnLineEditBar(Bar &bar)
{
    // If we want to keep default menu
    lineedit.StdBar(bar);
    // Add new menus
    bar.Add("New menu option", THISBACK(OnNewMenu));
}
Re: LineEdit and menu [message #18587 is a reply to message #18576] Fri, 10 October 2008 15:06 Go to previous message
cocob is currently offline  cocob
Messages: 156
Registered: January 2008
Experienced Member
Thank you very much !
Previous Topic: LineEdit error [BUG]
Next Topic: Added word wrap to LineEdit
Goto Forum:
  


Current Time: Sat Oct 23 15:32:46 CEST 2021

Total time taken to generate the page: 0.01056 seconds