Search found 46 matches

by wxBen
Fri Sep 21, 2018 7:53 pm
Forum: C++ Development
Topic: Hybrid button on ribbon bar always getting cut off
Replies: 5
Views: 659

Re: Hybrid button on ribbon bar always getting cut off

I have been debugging it and here is what I found. In src\ribbon\buttonbar.cpp, note that method AddButton calls InsertButton which does this: m_layouts_valid = false; Good good. But in panel.cpp method wxRibbonPanel::Realize note how m_smallest_unminimised_size gets set via a call to m_art: minimum...
by wxBen
Thu Sep 20, 2018 6:03 pm
Forum: C++ Development
Topic: Hybrid button on ribbon bar always getting cut off
Replies: 5
Views: 659

Re: Hybrid button on ribbon bar always getting cut off

We have been able to reproduce it locally, so I can debug it. Our application is an enormous application, which uses some wxWidget UI components. It is not DPI aware, I am barely DPI aware. But thanks, doublemax, I shall investigate. Since I shall have to fix this, I shall debug this and post here w...
by wxBen
Thu Sep 20, 2018 5:08 pm
Forum: C++ Development
Topic: Hybrid button on ribbon bar always getting cut off
Replies: 5
Views: 659

Hybrid button on ribbon bar always getting cut off

Our application uses the wxWidgst ribbon bar, wxWidets 3.0.2.7. Some clients, and we have never seen this ourselves, experience a problem that button bar buttons of the type wxRIBBON_BUTTON_HYBRID get cut off, as shown by the attached screen. The top button should read "Re-solve" and then have a dro...
by wxBen
Wed Oct 29, 2014 8:58 pm
Forum: The Code Dump
Topic: Icon to data URI
Replies: 0
Views: 1489

Icon to data URI

Suppose you are on Windows and you have an HICON and you need to generate HTML with the image embedded inside the HTML, that is, you need to convert it to something of the form: <img src="data:image/png;base64, iVBORw bla bla"/> How can you do it, especially if the icon could be anything, you need t...
by wxBen
Wed Jan 02, 2013 9:47 pm
Forum: Open Discussion
Topic: Ribbon bar patent
Replies: 0
Views: 3223

Ribbon bar patent

Hi, Just curious: I realize this has come up before, but does anyone know definitively whether Microsoft patented the ribbon bar UI and whether that impacts the wxWidgets ribbon bar? There are some references that they were trying to patent it, but that you can use it unless you compete with Office,...
by wxBen
Thu Dec 13, 2012 8:10 pm
Forum: C++ Development
Topic: constant global strings
Replies: 16
Views: 5876

Re: constant global strings

I have a little bit of experience with this, and here are a few thoughts, also expressed above: If you use ANSI strings (non UNICODE) and you make use of extended characters (ASCII codes above 127), then those extended ASCII characters will definitely NOT display correctly on all machines. Windows f...
by wxBen
Fri Nov 30, 2012 8:51 pm
Forum: C++ Development
Topic: How to Clear TextCtrl on Click?
Replies: 32
Views: 10132

Re: How to Clear TextCtrl on Click?

You can still get Visual Studio 2003 from MSDN, if you have access to that. The regular downloads site only lists the 2008, 2010 and 2012 versions. Alternatively, you can also look into Dev C++ and CodeBlocks on sourceforge. I believe both support wxWidgets and if you Google it you can find multiple...
by wxBen
Fri Nov 30, 2012 8:35 pm
Forum: C++ Development
Topic: How to get size of wx wxHtmlWindow
Replies: 3
Views: 1460

Re: How to get size of wx wxHtmlWindow

I just faced a very similar problem. I am using an instance wxHtmlWindow to show a super tool tip (like Excel), and I want no scroll bars and for it to be just large enough to display the contents. There is no predetermined way of doing that :? , but this is how I got the result I wanted :idea: . Wo...
by wxBen
Tue Oct 16, 2012 9:52 pm
Forum: C++ Development
Topic: transparency issue..
Replies: 5
Views: 2313

Re: transparency issue..

The classes in they link you show currently still need to be used on the latest svn version of the code. This is something being worked on.
by wxBen
Fri Oct 05, 2012 9:17 pm
Forum: C++ Development
Topic: transparency issue..
Replies: 5
Views: 2313

Re: transparency issue..

Please note that some of the fixes needed here have gone into the latest SVN versions of the wxWidgts code. You can look at the trac item in question for the latest update on this: http://trac.wxwidgets.org/ticket/14492 Also, see this discussion item: http://forums.wxwidgets.org/viewtopic.php?f=1&t=...
by wxBen
Tue Oct 02, 2012 10:19 pm
Forum: C++ Development
Topic: wxStaticText with transparent backgroun ??
Replies: 5
Views: 2497

Re: wxStaticText with transparent background ??

Rather than one set of controversial changes (if you read the Trac item mentioned), a number of other smaller changes have been made that now allow you to more easily make transparent controls under MS Windows as shown below. However, please note that this currently only works on the latest SVN vers...
by wxBen
Wed Aug 08, 2012 2:50 pm
Forum: C++ Development
Topic: Auto-hide feature for wxRibborBar ?
Replies: 3
Views: 1245

Re: Auto-hide feature for wxRibborBar ?

I have just implemented auto hiding of the ribbon bar panels in an application. Please note that the code below is an initial experiment and not intended to be complete or exemplary at all and it contains some MS Windows specific pieces (which could be replaced with wxTimer for example). But it seem...
by wxBen
Wed Aug 08, 2012 2:15 pm
Forum: General Development
Topic: wxwidgets isn't good as Qt
Replies: 5
Views: 4782

Re: wxwidgets isn't good as Qt

The more I used wxWidgets, the more I like it. =D>
by wxBen
Fri Jul 27, 2012 7:20 pm
Forum: C++ Development
Topic: How to Clear TextCtrl on Click?
Replies: 32
Views: 10132

Re: How to Clear TextCtrl on Click?

There is no Express 2003 free version of Visual Studio. You would have to buy it, and they will likely only sell you the current 2010 version. I personally prefer to 2010 version above the 2003 version.