mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 23:36:16 +02:00
AJ: fixed GTK DrawText to use WordWrap, and add DT_EditControl
git-svn-id: trunk@3515 -
This commit is contained in:
parent
74f25c29c4
commit
5d6f509d63
@ -203,14 +203,17 @@ begin
|
||||
If Lines <> nil then begin
|
||||
Line := Lines^.Rows;
|
||||
While Line <> nil do begin
|
||||
If (((Flags and DT_EditControl) = DT_EditControl) and
|
||||
(tm.tmHeight > (theRect.Bottom - theRect.Top))) or
|
||||
(theRect.Top > theRect.Bottom)
|
||||
then
|
||||
break;
|
||||
If Line^.Data <> nil then begin
|
||||
LineInfo := PGnomeIconTextInfoRow(Line^.Data)^;
|
||||
DrawLine(LineInfo.theText, LineInfo.Text_Length, theRect.Top);
|
||||
Inc(theRect.Top, TM.tmHeight);
|
||||
end;
|
||||
Line := Line^.Next;
|
||||
If theRect.Top > theRect.Bottom then
|
||||
Break;
|
||||
end;
|
||||
Result := 1;
|
||||
end;
|
||||
@ -501,6 +504,9 @@ end;
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.8 2002/10/15 17:09:54 lazarus
|
||||
AJ: fixed GTK DrawText to use WordWrap, and add DT_EditControl
|
||||
|
||||
Revision 1.7 2002/10/14 18:36:57 lazarus
|
||||
AJ: Improvements/Fixes to new PromptUser API
|
||||
|
||||
|
@ -148,6 +148,7 @@ const
|
||||
DT_CALCRECT = $400;
|
||||
DT_NOPREFIX = $800;
|
||||
DT_INTERNAL = $1000;
|
||||
DT_EDITCONTROL = $2000;
|
||||
|
||||
//==============================================
|
||||
// Draw frame constants
|
||||
@ -1621,6 +1622,9 @@ end.
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.22 2002/10/15 17:09:53 lazarus
|
||||
AJ: fixed GTK DrawText to use WordWrap, and add DT_EditControl
|
||||
|
||||
Revision 1.21 2002/10/12 16:36:39 lazarus
|
||||
AJ: added new QueryUser/NotifyUser
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user