wxHyperLinkCtrl is cut off when the font is too large
wxHyperLinkCtrl is cut off when the font is too large
In wxWidgets 3.1.6. I created the wxHyperLinkCtrl with "wxDefaultSize".
Please post something straightfoward.
Please post something straightfoward.
Re: wxHyperLinkCtrl is cut off when the font is too large
This is far too little information.
Platform?
Hi DPI display? (If under Windows, is scaling > 100% ?)
What's the outer structure of the control? Are you using sizers? Is the outer frame even big enough to display the full text?
Platform?
Hi DPI display? (If under Windows, is scaling > 100% ?)
What's the outer structure of the control? Are you using sizers? Is the outer frame even big enough to display the full text?
Use the source, Luke!
Re: wxHyperLinkCtrl is cut off when the font is too large
Platform : Windows
Scaling : 125%
Im not using sizers.
Im using wxDefaultSize, so it should be big enough
Scaling : 125%
Im not using sizers.
Im using wxDefaultSize, so it should be big enough
Re: wxHyperLinkCtrl is cut off when the font is too large
Hmm , without using wxDefaultSize , the wxHyperTextCtrl seems to size properly.
That's weird , why doesn't wxDefaultSize just figure out the right size ??
That's weird , why doesn't wxDefaultSize just figure out the right size ??
Re: wxHyperLinkCtrl is cut off when the font is too large
Hi,
Because you are NOT using sizers?
We've already been thru this (I think). Start using sizers, which will help you avoid a lot of manual work or reinvent the wheel and do everything by hand.
But in that case - why even bother with wxWidgets?
Thank you.
Because you are NOT using sizers?
We've already been thru this (I think). Start using sizers, which will help you avoid a lot of manual work or reinvent the wheel and do everything by hand.
But in that case - why even bother with wxWidgets?
Thank you.
Last edited by ONEEYEMAN on Thu Jun 30, 2022 12:23 pm, edited 1 time in total.
Re: wxHyperLinkCtrl is cut off when the font is too large
I was using sizers before this, but my team/client couldn't live with the unfortunate changes that sizers had an effect on, so I ditched it.
Re: wxHyperLinkCtrl is cut off when the font is too large
Hi,
Could you please elaborate on those "changes"?
Also, if you client is willing to pay X amount of $$, they will definitely will be able to live with whatever changes you do...
Thank you.
Could you please elaborate on those "changes"?
Also, if you client is willing to pay X amount of $$, they will definitely will be able to live with whatever changes you do...
Thank you.
Re: wxHyperLinkCtrl is cut off when the font is too large
Can you check what happens with 100%? It's still possible that the size calculation of the control is wrong when using a different scaling.
Also please check what happens if you use wxGenericHyperLinkCtrl instead of wxHyperLinkCtrl. You need to include <wx/generic/hyperlink.h> in order to use it.
Use the source, Luke!
Re: wxHyperLinkCtrl is cut off when the font is too large
I already figured this out
Re: wxHyperLinkCtrl is cut off when the font is too large
Hi,
Can you post the solution?
It might be beneficial for other people...
Thank you.
Can you post the solution?
It might be beneficial for other people...
Thank you.