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 » List of custom controls, how?
Re: List of custom controls, how? [message #38011 is a reply to message #38008] Wed, 28 November 2012 08:20 Go to previous message
crydev is currently offline  crydev
Messages: 151
Registered: October 2012
Location: Netherlands
Experienced Member
dolik.rce wrote on Wed, 28 November 2012 07:30

crydev wrote on Tue, 27 November 2012 17:33

When I drag the bar back to the left, the description becomes hidden again.

This sounds like you got the positioning/sizing code slightly wrong. If you use layout file, check the "springs" that the label is correctly anchored. You want it to be fixed on all sides, so when resizing it keeps same distance from edges of layout:img]index.php?t=getfile&id=3937&private=0[/im g]

If you position the label in code, it should be done with something like this:
myLabel.HSizePosZ(leftMargin, rightMargin).VSizePosZ(topMargin, bottomMargin);


If needed, you can post the relevant part of you code and I can perhaps give you more precise advice Wink

Honza


Thanks for you response Honza, I fixed the problem. The problem was as following:

Add(mImg.LeftPosZ(5, 30).TopPosZ(10, 30));
Add(mTitle.LeftPosZ(40, 300).TopPosZ(5, 30));
                        // I thought that 300 was the width of the control, because I used that value in the two above.
                        // However, As in your post, it is not the width, but the margin from the right side.
Add(mInfo.HSizePosZ(40, 300).VSizePosZ(30, 5)); // changed 300 to 10


It works now, stupid mistake of mine though. Thanks for your help!

[Updated on: Wed, 28 November 2012 08:21]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Control refresh time
Next Topic: VScrollBar in a StaticText
Goto Forum:
  


Current Time: Sat Jun 07 01:23:41 CEST 2025

Total time taken to generate the page: 0.03692 seconds