On May 26, 2003 05:48 pm, BiGgUn wrote:
Fix label alignment with icon bottom.
Sorry, I know I said it's OK in private, but now thinking about it some more, I realize it's not right. What if the text size changes? Does this work for you: Index: dlls/comctl32/listview.c =================================================================== RCS file: /var/cvs/wine/dlls/comctl32/listview.c,v retrieving revision 1.353 diff -u -r1.353 listview.c --- dlls/comctl32/listview.c 22 May 2003 03:37:10 -0000 1.353 +++ dlls/comctl32/listview.c 26 May 2003 22:57:01 -0000 @@ -347,7 +347,7 @@ /* Standard DrawText flags */ #define LV_ML_DT_FLAGS (DT_TOP | DT_NOPREFIX | DT_EDITCONTROL | DT_CENTER | DT_WORDBREAK | DT_WORD_ELLIPSIS | DT_END_ELLIPSIS) #define LV_FL_DT_FLAGS (DT_TOP | DT_NOPREFIX | DT_EDITCONTROL | DT_CENTER | DT_WORDBREAK | DT_NOCLIP) -#define LV_SL_DT_FLAGS (DT_TOP | DT_EDITCONTROL | DT_SINGLELINE | DT_WORD_ELLIPSIS | DT_END_ELLIPSIS) +#define LV_SL_DT_FLAGS (DT_BOTTOM | DT_EDITCONTROL | DT_SINGLELINE | DT_WORD_ELLIPSIS | DT_END_ELLIPSIS) /* The time in milliseconds to reset the search in the list */ #define KEY_DELAY 450 -- Dimi.
Hi, The alignment is OK with your patch. I think it's better than mine. But the text doesn't have the same alignment as Windows font or #define'd problem ?) Stéphan
On Tue, 27 May 2003, BiGgUn wrote:
Hi,
The alignment is OK with your patch. I think it's better than mine. But the text doesn't have the same alignment as Windows font or #define'd problem ?)
Can you try DT_VCENTER instead of DT_BOTTOM? Maybe that will do the trick. -- Dimi.
participants (3)
-
BiGgUn -
Dimitrie O. Paun -
Dimitrie O. Paun