cyke64 / keynote-nf

Automatically exported from code.google.com/p/keynote-nf
0 stars 0 forks source link

Word Wrap Issue #411

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Open KeyNote File 
2. Activate Word Wrap
3. Resize Main Window - or - Resize Tree Panel

What is the expected output? What do you see instead?
>>Word wrap does not update when the window is resized or the tree panel is 
resized, hidden, or shown.  The problem doesn't occur all of the time.  
Sometimes the word wrap updates as it should and sometimes it doesn't.  
See attached .pngs.  
Keynote_1 shows the window with normal word wrap.  
KeyNote_2 shows the window resized.  
KeyNote_3 shows the window after tree panel hidden.  

What version are you using? On what operating system?
>>KeyNote 1.7.9.3 Beta 3

Please provide any additional information below.
>> I have been able to compile the source code.  I went through the code and 
made the following modifications in kn_Main.pas that I think fixed the problem. 

************************
procedure TForm_Main.TntFormResize(Sender: TObject);
begin
  Form_Main.Refresh;
  if assigned( ActiveNote ) then ActiveNote.Editor.Invalidate;  // [CHANGED]
end;

procedure TForm_Main.MMViewTreeClick(Sender: TObject);
begin
  if ( assigned( ActiveNote ) and ( ActiveNote.Kind = ntTree )) then
  begin
    MMViewTree.Checked := ( not MMViewTree.Checked );

    TTreeNote( ActiveNote ).TreeHidden := ( not MMViewTree.Checked );
    UpdateTreeVisible( TTreeNote( ActiveNote ));

    if ( not MMViewTree.Checked ) then
    try
      ActiveNote.Editor.SetFocus;
    except
    end;

    MMViewNodeIcons.Enabled := MMViewTree.Checked;
    MMViewCustomIcons.Enabled := MMViewTree.Checked;
    MMViewCheckboxesAllNodes.Enabled := MMViewTree.Checked;
    MMViewHideCheckedNodes.Enabled := MMViewTree.Checked;     // [dpv]

  end;
  ActiveNote.Editor.Invalidate; // [CHANGED]
end; // MMViewTreeClick

***********************

Maybe no one else has this problem.  

Original issue reported on code.google.com by drmoorma...@gmail.com on 2 Sep 2011 at 3:33

Attachments: