WebMemo autosize

i develop a simple demo that i just sent it to you by email

when it starts, please push the button

thank you

What i do to have the autosize works normally

After changing the conents of WebMemo

i do a Form.Resize

We have not received a test project.
Can it be your attachment(s) included .js files? This often blocks emails for security reasons.

Web4.zip (1.8 MB)

AFTER RUN

PLEASE PUSH THE BUTTON

Change your code to:

var TN1:TTreeNode;
begin
WebMemo1.BeginUpdate;
WebMemo1.Clear;
WebMemo1.Lines.Add('The amount of years displayed is controlled by the Interaction.YearOptions property. Currently scrolling is not an option but we can put this on our TODO for investigation.');
WebMemo1.Lines.Add('The amount of years displayed is controlled by the Interaction.YearOptions property. Currently scrolling is not an option but we can put this on our TODO for investigation.');
WebMemo1.Lines.Add('The amount of years displayed is controlled by the Interaction.YearOptions property. Currently scrolling is not an option but we can put this on our TODO for investigation.');
WebMemo1.Lines.Add('The amount of years displayed is controlled by the Interaction.YearOptions property. Currently scrolling is not an option but we can put this on our TODO for investigation.');
WebMemo1.Lines.Add('The amount of years displayed is controlled by the Interaction.YearOptions property. Currently scrolling is not an option but we can put this on our TODO for investigation.');
WebMemo1.Lines.Add('The amount of years displayed is controlled by the Interaction.YearOptions property. Currently scrolling is not an option but we can put this on our TODO for investigation.');
WebMemo1.Lines.Add('The amount of years displayed is controlled by the Interaction.YearOptions property. Currently scrolling is not an option but we can put this on our TODO for investigation.');
WebMemo1.EndUpdate;
//
WebTreeView1.BeginUpdate;
TN1:=WebTreeView1.Items.Add('Áñ÷éêÞ óåëßäá');
TN1:=WebTreeView1.Items.Add('ËïãéóìéêÜ áéïëéêþí ðÜñêùí');
WebTreeView1.Items.AddChild(TN1,'');
WebTreeView1.Items.AddChild(TN1,'Ëïãéóìéêü ãéá ëÞøç êáé åöáñìïãÞ åíôïëþí ôçëå-åðïðôåßáò/åëÝã÷ïõ Óôáèìþí ÁÐÅ');
WebTreeView1.Items.AddChild(TN1,'');
WebTreeView1.Items.AddChild(TN1,'');
TN1:=WebTreeView1.Items.Add('Ôá÷ýôçôá áíÝìïõ');
TN1:=WebTreeView1.Items.Add('Äéá÷åßñéóç åêäçëþóåùí');
WebTreeView1.EndUpdate;

Realign; //<--------------------
end;

Thank you,

as usually, your clients are the best testers of the components

thank you

1 Like