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 » DocEdit without end line
Re: DocEdit without end line [message #16129 is a reply to message #15700] Wed, 28 May 2008 20:47 Go to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
lucpolak wrote on Sun, 04 May 2008 17:06

I have another problem with DocEdit/ArrayCtrl mix.

I uses a DocEdit Ctrl in cells of ArrayCtrl. I want to resize the cell containing the data of DocEdit when entering text.
For example, when adding new lines with enter key.

To do this, i use the Callback for WhenAction on this control.
de <<= THISBACK(ResizeListe);

When data changes, the callback is correctly called. the callback function is :

void FicheDossier::ResizeListe()
{
for (int i=0;i<ListeDesc.GetCount();i++)
{
DocEdit &de = ListeDesc[i];

String val = de.GetData();
int numLignes = de.GetLineCount();

de.SetRectY(0,numLignes*CYSTEP+1);
de.RefreshLayout();
m_ListeElements.SetLineCy(i,numLignes*CYSTEP+1);

}

m_ListeElements.RefreshLayout();
}

The GetLineCount works fine, I prompted the value of numLignes after calling GetLineCount and its ok. The problem seems to be with the function SetLineCy. After this method is called, there are no changes... Can you known why ?



Yes, perhaps nobody tried something as hard with ArrayCtrl yet Smile

Anyway, I believe this really should work. Do you think you can send me some testcase to get me started? Smile

Mirek


 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Margin / Spacing of buttons
Next Topic: A main modeless window
Goto Forum:
  


Current Time: Sun Jun 08 17:07:06 CEST 2025

Total time taken to generate the page: 0.04850 seconds