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 » Draw, Display, Images, Bitmaps, Icons » Icon at right side of the menuBar
Icon at right side of the menuBar [message #28699] Sun, 12 September 2010 21:45 Go to next message
mubeta is currently offline  mubeta
Messages: 62
Registered: October 2006
Member
Hi,
I want to add a frame to the right side of the menu bar of my application.
I try using Frame and ImageCtrl but the image background was black.
    ...
    MenuBar                     gMenuBar;
    //
    FrameRight<ImageCtrl>       gMric;
    //
    ...

App::App() {
  ...
  AddFrame(gMenuBar);
  AddFrame(TopSeparatorFrame());
  //
  gMenuBar.AddFrame(gMric);
  //gMric.Transparent(true);
  gMric.TransparentBackPaint();
  gMric.SetImage(GenIcons::Download_1_16_2D());
  ...



Please, any Idea for add an icons to the right side of the menu bar ??

Thanks.
Re: Icon at right side of the menuBar [message #28788 is a reply to message #28699] Thu, 16 September 2010 23:33 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12098
Registered: November 2005
Ultimate Member
Complete testcase would be helpful....
Re: Icon at right side of the menuBar [message #28810 is a reply to message #28788] Fri, 17 September 2010 17:54 Go to previous message
mubeta is currently offline  mubeta
Messages: 62
Registered: October 2006
Member
Solved! I saw how working the "display" object in the IDE menu bar, and I also understand that "Label" objects are able to show images, so I use this way.

Well, if one day U++ will come with complete documentations, it will be a good tool also for unexpert C++ developers.

Thanks.
Previous Topic: libjpeg-turbo
Next Topic: How to set the dpi (dots per inch) of an image
Goto Forum:
  


Current Time: Thu Nov 14 20:19:42 CET 2019

Total time taken to generate the page: 0.01642 seconds