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 » Look and Chameleon Technology » Set fields side to other fields and fields width to text width
Set fields side to other fields and fields width to text width [message #45511] Thu, 26 November 2015 12:30 Go to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
For sure this has been posted before.

When doing international applications it is not easy to set the "static fields" (Label, ...) to a right width because the same sentence have different length in different languages. A possible way to solve this would be to set the field width automatically to the text width.

As this feature would produce that these label fields could overlap adjacent input fields, a solution could be to let fields sides to be set not only linked to window border, but linked to field side.

In the picture there is the same text in two languages. The same sentence in other languages could be even longer. In "Proposed", input fields adapt to static field widths.

index.php?t=getfile&id=4878&private=0

What do you think about it?
  • Attachment: capt.JPG
    (Size: 22.98KB, Downloaded 446 times)


Best regards
Iñaki
Re: Set fields side to other fields and fields width to text width [message #45518 is a reply to message #45511] Fri, 27 November 2015 00:01 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

I propose to use virtual Layout();

Then you can set sizes as you wishes, based on wide diapason of reasons. Smile


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: Set fields side to other fields and fields width to text width [message #45522 is a reply to message #45518] Fri, 27 November 2015 09:18 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
Oh yes, that is possible.

However I thought in something more standard, even integrated into .lay Smile


Best regards
Iñaki
Re: Set fields side to other fields and fields width to text width [message #45523 is a reply to message #45522] Fri, 27 November 2015 09:27 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
koldo wrote on Fri, 27 November 2015 09:18
Oh yes, that is possible.

However I thought in something more standard, even integrated into .lay Smile


First of all, 'actual' is OK for me...

Anyway, possible suggestion how to achieve proposed: Perhaps we could have something like "WithLabel" template (similar to WithDropChoice), then layout issue would be resolved in CtrlLib...
Re: Set fields side to other fields and fields width to text width [message #45524 is a reply to message #45523] Fri, 27 November 2015 09:43 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, in fact, now thinking about it, it would be even possible just as flag of "Label".
Re: Set fields side to other fields and fields width to text width [message #45529 is a reply to message #45524] Fri, 27 November 2015 12:48 Go to previous messageGo to next message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
This could affect static controls like Label and LabelBox.

In addition input controls like EditString have to be aware of it (resizing them) as if not the Label could overlap them.

index.php?t=getfile&id=4884&private=0
  • Attachment: capt.JPG
    (Size: 15.30KB, Downloaded 419 times)


Best regards
Iñaki

[Updated on: Fri, 27 November 2015 12:50]

Report message to a moderator

Re: Set fields side to other fields and fields width to text width [message #45533 is a reply to message #45529] Fri, 27 November 2015 16:30 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
No, I think Label could resize itself and the next widget after it... Smile
Re: Set fields side to other fields and fields width to text width [message #45538 is a reply to message #45533] Fri, 27 November 2015 22:28 Go to previous message
koldo is currently offline  koldo
Messages: 3355
Registered: August 2008
Senior Veteran
"The order of the factors does not change the product" Smile

Best regards
Iñaki
Previous Topic: A little theming
Next Topic: how to chameleon the option ctrl?
Goto Forum:
  


Current Time: Thu Mar 28 20:41:10 CET 2024

Total time taken to generate the page: 0.01755 seconds