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 » ArrayCtrl, HeaderCtrl & GridCtrl » Multiline popups in GridCtrl
Re: Multiline popups in GridCtrl [message #23613 is a reply to message #23600] Wed, 04 November 2009 15:55 Go to previous messageGo to previous message
Zbych is currently offline  Zbych
Messages: 327
Registered: July 2009
Senior Member
unodgs wrote on Tue, 03 November 2009 20:45

I haven't announced that, but GridCtrl now automatically wraps the text in popup and make it bigger if necessary.


Hi,

I've found a few problems:
1. Text is not displayed correctly if text height is bigger than cell height. You should limit y-coordinate of text to values >= 0.
index.php?t=getfile&id=1976&private=0

2. When column width is lower than text width, text in pop-up is not centered correctly, new line sign is visible.
index.php?t=getfile&id=1977&private=0

3. Pop-up is empty when there is AttrText in cell.

Problem with pop-up is visible if font resolution is 120DPI.
Test code:
struct App : TopWindow
{
	typedef App CLASSNAME;
	GridCtrl grid;
	App(){
		Add(grid.SizePos());
		grid.AddColumn("Name");
		grid.AddColumn("Surname");
    }

};

GUI_APP_MAIN
{
	App a;
	a.grid.Add(AttrText("New name in cell name"));
	a.grid.Add("New name1 in cell surname\nNew name2 in cell surname2\nNew name3 in cell surname3\nNew name4 in cell surname\nNew name5 in cell surname2\nNew name6 in cell surname3\n");
	a.Run();
}





  • Attachment: grid1.PNG
    (Size: 1.91KB, Downloaded 1086 times)
  • Attachment: grid2.PNG
    (Size: 4.42KB, Downloaded 1317 times)
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IsMultiSelect() bugfix in ArrayCtrl
Next Topic: Paste column in GridCtrl
Goto Forum:
  


Current Time: Wed Aug 27 08:25:55 CEST 2025

Total time taken to generate the page: 0.06270 seconds