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 » RichText,QTF,RTF... » Editor Toolbar
Editor Toolbar [message #21847] Mon, 08 June 2009 11:08 Go to next message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
I have a many widgets on my layout and the Editor is on the bottom half of the window, however, the toolbar is on the upper half of the window. This is a pretty big disconnect between the widget and the toolbar that controls the widget.

Right now I do:

void MyApp::Setup()
{
    // other code
    toolbar.Set(THISBACK(MainBar));
    AddFrame(toolbar);
    // other code
}

void MyApp::MainBar(Bar &bar)
{
    editor.DefaultBar(bar);
}


Is there a way I can make this bar attach right above the editor instead of a main toolbar?

Jeremy
Re: Editor Toolbar [message #21866 is a reply to message #21847] Mon, 08 June 2009 18:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11994
Registered: November 2005
Ultimate Member
editor.AddFrame(toolbar);

More correct:

editor.InsertFrame(0, toolbar); // or 1, depends on layout

Mirek
Re: Editor Toolbar [message #21868 is a reply to message #21866] Mon, 08 June 2009 19:42 Go to previous message
jeremy_c is currently offline  jeremy_c
Messages: 175
Registered: August 2007
Location: Ohio, USA
Experienced Member
Oh, that was easy enough! I was thinking AddFrame was for a top window. As you can see, I'm new to U++ and still learning my way around. It seems pretty obvious now that I see the example and search it out.

Thanks!

Jeremy
Previous Topic: RichEdit and styles questions
Next Topic: Spelling Dictionary?
Goto Forum:
  


Current Time: Sun Aug 25 10:55:40 CEST 2019

Total time taken to generate the page: 0.00964 seconds