DELPHI AREA
MESSAGE BOARD
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[Assistants]MiniorBug:the width of the speak dialog tooSmall

 
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products
View previous topic :: View next topic  
Author Message
riceball
Member


Joined: 21 Feb 2005
Posts: 3

PostPosted: 03/03/05 10:02    Post subject: [Assistants]MiniorBug:the width of the speak dialog tooSmall Reply with quote

[Assistants] Minior Bug fixed: the width of the speak dialog is too small, if the message is very very long.

oaBaloon.pas[2432]
function TAssistantBalloon.RebuildIconTitleMsg(MinW, BtnsW: Integer): Integer;
begin
...
//<------------added by riceball to calculate the message width!
DrawText(Canvas.Handle, PChar(Msg.Caption), Length(Msg.Caption), MsgRect,
{$IFDEF DELPHI4_UP}DrawTextBiDiModeFlags{$ENDIF}(DrawTextFlags or DT_CALCRECT));
if MsgRect.Bottom > MsgRect.Right then
begin
if MsgRect.Bottom >= MinTipsDlgWidth then
MsgRect.Right := MinTipsDlgWidth
else
MsgRect.Right := MsgRect.Bottom;
end;
//<-------------added END
DrawText(Canvas.Handle, PChar(Msg.Caption), Length(Msg.Caption), MsgRect,
{$IFDEF DELPHI4_UP}DrawTextBiDiModeFlags{$ENDIF}(DrawTextFlags));
end;
Back to top
View user's profile
Display posts from previous:   
   Reply to topic    DELPHI AREA Forum Index -> DELPHI AREA's Products 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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB 2.0.6 © 2001, 2002 phpBB Group