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 » U++ Widgets - General questions or Mixed problems » ColumnList void SetFrame problem
ColumnList void SetFrame problem [message #61177] Fri, 29 November 2024 03:26 Go to next message
aa_dav is currently offline  aa_dav
Messages: 4
Registered: November 2024
Junior Member
I met it in UltimatePP-win-17045 distro.
Steps to recreate:
1. Create MyApps package Test01 (CtrlLib application with main window)
2. Put ColumnList in layout
3. Change it's SetFrame property from default to BlackFrame()
4. Compile
It will give error:

MyTest01.lay:2:59: error: member reference base type 'void' is not a structure or union
        ITEM(Upp::ColumnList, dv___0, SetFrame(Upp::BlackFrame()).LeftPosZ(96, 150).TopPosZ(68, 100))

AFAIU the reason is overloading of method Ctrl& SetFrame(...) in ColumntList by void SetFrame(...) which breaks chaining.
But moreover - overloaded SetFrame doesn't call Ctrl::SetFrame of base class and this breaks something in layout - ColumnList doesn't resize correctly (gets a little bit less size than it should on resize of window if anchored to both bounds). Latter example is more complex to recreate: place ColumnList and another widget side by side and set their vertical anchors in "Spring vertical size" mode. Then resize window - ColumntList will tend to be smaller in vertical size than reference widget. It's something about SetFrame.
I fixed this by next code:
static_cast<Ctrl&>(deviceList).SetFrame(upp::BlackFrame()); // fix
Re: ColumnList void SetFrame problem [message #61193 is a reply to message #61177] Sun, 01 December 2024 04:26 Go to previous messageGo to next message
aa_dav is currently offline  aa_dav
Messages: 4
Registered: November 2024
Junior Member
I've recreated the issue in latest POSIX distro in Ubuntu 24.xx just now.
The same error persists.

Re: ColumnList void SetFrame problem [message #61194 is a reply to message #61177] Sun, 01 December 2024 05:28 Go to previous messageGo to next message
aa_dav is currently offline  aa_dav
Messages: 4
Registered: November 2024
Junior Member
By the way I want to express my amusement and admiration of U++.
I found it something about week ago and this is that I always wanted to have in my development tools.
Cross-platform, easy to deploy, easy to use, self-sufficable and self-contained C++ GUI development IDE. Damn, I never thought it could exist. Very Happy
I see it's not as powerful as Qt, but Qt is so damn overkill many times.
Thank you very much all who made this dream alive! Smile
icon14.gif  Re: ColumnList void SetFrame problem [message #61195 is a reply to message #61194] Sun, 01 December 2024 12:15 Go to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
Yes, I reproduced the problem.

Welcome, aa_dav!

Quote:

Cross-platform, easy to deploy, easy to use, self-sufficable and self-contained

And fast in compiling and fast in excution Smile

Unfortunately U++ hadn't become as popular as it deserved.
Previous Topic: Paste clipboard in MS Teams
Next Topic: Window Frame Resizing
Goto Forum:
  


Current Time: Sun Jun 08 20:29:07 CEST 2025

Total time taken to generate the page: 0.04200 seconds