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 » label text not wrapped
label text not wrapped [message #10953] Tue, 07 August 2007 05:11 Go to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
the text of a Label cannot be displayed in a wrapped manner and cannot be set to.

so TheIDE's .lay editor lacks many attributes' editing abilities.
Re: label text not wrapped [message #10961 is a reply to message #10953] Tue, 07 August 2007 19:25 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
You can get "sohpisticated" labels by adding \1 at the beginning of it - then the rest is interpreted as QTF.

This way, you can even have tables and pictures in the label if you wish Smile

Mirek
Re: label text not wrapped [message #10965 is a reply to message #10961] Wed, 08 August 2007 07:54 Go to previous messageGo to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
does not work. 708dev1

ezcomm/main.cpp line 225. the \1 does not wrap it. when running, click "clear" in the lower right corner to test this.
info.SetLabel(cnt ? "\1this is a long line. hope it works"/*cnt*/ : "");

even if i write like below, it does not change a thing,
	char ss[100];
	ss[0] = 1;
	strcat(ss, "this is a long line. hope it works");
	info.SetLabel(cnt ? ss/*cnt*/ : "");
  • Attachment: MyApps.zip
    (Size: 325.22KB, Downloaded 267 times)
Re: label text not wrapped [message #10967 is a reply to message #10965] Wed, 08 August 2007 09:29 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Ops... sorry... should be fixed now...

Quick fix: Replace attached files in CtrlLib.

  • Attachment: CtrlLib.zip
    (Size: 4.60KB, Downloaded 274 times)
icon7.gif  Re: label text not wrapped [message #10978 is a reply to message #10967] Thu, 09 August 2007 03:09 Go to previous messageGo to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
luzr wrote on Wed, 08 August 2007 15:29

Ops... sorry... should be fixed now...

Quick fix: Replace attached files in CtrlLib.



i'm proud to have caught a bug Laughing
icon11.gif  Re: label text not wrapped [message #11580 is a reply to message #10953] Tue, 18 September 2007 04:23 Go to previous messageGo to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
709dev1 solves this but my characters are out of boundage as shown.
ezcomm is the project to display this. click the button CLEAR in the lower right corner.index.php?t=getfile&id=720&private=0
  • Attachment: long line.jpg
    (Size: 17.38KB, Downloaded 545 times)

[Updated on: Fri, 21 September 2007 07:33]

Report message to a moderator

Re: label text not wrapped [message #11608 is a reply to message #11580] Wed, 19 September 2007 10:39 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Do you think it would be possible to post a *working* testcase? Smile

#include "D:\work\MyApps\ezcomm\ezudp.h"


Mirek
icon6.gif  Re: label text not wrapped [message #11677 is a reply to message #11608] Fri, 21 September 2007 07:31 Go to previous messageGo to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
luzr wrote on Wed, 19 September 2007 16:39

Do you think it would be possible to post a *working* testcase? Smile

#include "D:\work\MyApps\ezcomm\ezudp.h"


Mirek

oops. i never noticed this. and next time, plz tell me it's in upp project file so that i do not have to search. thank you.

[Updated on: Wed, 26 September 2007 09:30]

Report message to a moderator

icon3.gif  attachment corrected [message #11799 is a reply to message #10953] Wed, 26 September 2007 09:35 Go to previous messageGo to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
i accidentally added one same cpp twice
  • Attachment: MyApps.zip
    (Size: 324.21KB, Downloaded 257 times)
Re: attachment corrected [message #11807 is a reply to message #11799] Wed, 26 September 2007 14:23 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Fixed.

Anyway, the primary reason was combination of ALIGN_CENTER in .lay with "\1" QTF text. Maybe just make it ALIGN_LEFT Smile

Mirek
Re: attachment corrected [message #11877 is a reply to message #11807] Sat, 29 September 2007 10:28 Go to previous messageGo to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
luzr wrote on Wed, 26 September 2007 20:23

Fixed.

Anyway, the primary reason was combination of ALIGN_CENTER in .lay with "\1" QTF text. Maybe just make it ALIGN_LEFT Smile

Mirek

by saying FIXED, you mean it will be fixed in the next release? or would i have to left-align it?
Re: attachment corrected [message #11878 is a reply to message #11877] Sat, 29 September 2007 11:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
bonami wrote on Sat, 29 September 2007 04:28

luzr wrote on Wed, 26 September 2007 20:23

Fixed.

Anyway, the primary reason was combination of ALIGN_CENTER in .lay with "\1" QTF text. Maybe just make it ALIGN_LEFT Smile

Mirek

by saying FIXED, you mean it will be fixed in the next release? or would i have to left-align it?


ALIGN_LEFT will help with current version.

In the next release, it is going to work with ALIGN_CENTER too.
icon3.gif  Re: attachment corrected [message #12137 is a reply to message #11878] Fri, 12 October 2007 11:56 Go to previous messageGo to next message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
solved in 710dev1.
but since i do not have any idea of QTF, how can i control the characters' appearance? after i display sth. using QTF, the .lay's color and font size information are overridden.
Re: attachment corrected [message #12139 is a reply to message #12137] Fri, 12 October 2007 13:47 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
http://www.ultimatepp.org/srcdoc$RichText$QTF$en-us.html

Mirek
icon14.gif  Re: label text not wrapped [message #12185 is a reply to message #10953] Tue, 16 October 2007 10:19 Go to previous message
bonami is currently offline  bonami
Messages: 186
Registered: June 2007
Location: Beijing
Experienced Member
appreciated
Previous Topic: Having my HWND and eating it, too...
Next Topic: Have the PictureButton ?
Goto Forum:
  


Current Time: Fri Mar 29 01:39:23 CET 2024

Total time taken to generate the page: 0.01197 seconds