Little bitmap misalignment in TMsgItem

Little bitmap misalignment in TMsgItem

Postby Enrico Maria Giordano » Sat Jan 10, 2009 11:15 pm

In the following sample, the bitmap and the text in the msgbar are not aligned:

Code: Select all  Expand view
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oWnd

    DEFINE WINDOW oWnd

    SET MESSAGE OF oWnd 2007

    DEFINE MSGITEM OF oWnd:oMsgBar;
           SIZE 20;
           BITMAP "c:\fwh\bitmaps\16x16\lock.bmp"

    DEFINE MSGITEM OF oWnd:oMsgBar;
           SIZE 55;
           PROMPT "TEST"

    ACTIVATE WINDOW oWnd

    RETURN NIL


This seems a proper fix (method Paint() of TMsgItem):

Code: Select all  Expand view
DrawMasked( hDC, hBmp, 2, nLeft + 1 )


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8378
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Re: Little bitmap misalignment in TMsgItem

Postby Antonio Linares » Fri Jan 23, 2009 9:35 pm

Enrico,

Implemented. Thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41411
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain



Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Maurizio and 35 guests