EControl Ltd. Forum Index EControl Ltd.
VCL libraries and software support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

2.26: Invalid wordbreak setting, how to fix this?

 
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor
View previous topic :: View next topic  
Author Message
MikeHart



Joined: 16 Jul 2006
Posts: 8

PostPosted: Sat Jan 13, 2007 2:49 pm    Post subject: 2.26: Invalid wordbreak setting, how to fix this? Reply with quote

Hello,

I get an Invalid wordbreak setting exception in 2.26. It happens when a block is collapsed and the mouse cursor hovers over the collapsedhintmark.

How can I fix this?
Back to top
View user's profile Send private message
econtrol
Site Admin


Joined: 09 Jun 2006
Posts: 202

PostPosted: Sat Jan 13, 2007 6:10 pm    Post subject: Reply with quote

Fixing ecSyntMemo.pas:

Code:
function TSyntHintWindow.CalcHintRect(MaxWidth: Integer;
  const AHint: String; AData: ecPointer): TRect;
...
   with TCustomSyntaxMemo(Owner) do
   begin
     PrintOptions := [mpLineHighlight, mpBlockHighlight, mpBackColor];
...

procedure TSyntHintWindow.Paint;
...
   with TCustomSyntaxMemo(Owner) do
   begin
     PrintOptions := [mpLineHighlight, mpBlockHighlight, mpBackColor];
...
Back to top
View user's profile Send private message Send e-mail
MikeHart



Joined: 16 Jul 2006
Posts: 8

PostPosted: Sat Jan 20, 2007 2:51 pm    Post subject: Reply with quote

Thank you,

that fixed it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    EControl Ltd. Forum Index -> EControl Syntax Editor All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group