FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index Bugs report & fixes / Informe de errores y arreglos TMsgItem [Solved]
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
TMsgItem [Solved]
Posted: Sun Jun 08, 2008 06:39 PM
In the following sample, the message "CHECKLIST" is not centered in its item space:

Code (fw): Select all Collapse
#include "Fivewin.ch"


FUNCTION MAIN()

    LOCAL oWnd

    DEFINE WINDOW oWnd

    SET MESSAGE OF oWnd 2007

    DEFINE MSGITEM OF oWnd:oMsgBar;
           SIZE 70;
           COLOR CLR_BLACK, CLR_HRED;
           PROMPT "CHECKLIST"

    oWnd:oMsgBar:KeybOn()
    oWnd:oMsgBar:DateOn()
    oWnd:oMsgBar:ClockOn()

    ACTIVATE WINDOW oWnd

    RETURN NIL


EMG
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
TMsgItem [Solved]
Posted: Sun Jun 08, 2008 06:56 PM

I already ask it to Linares from december version

Best Regards, Saludos



Falconi Silvio
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Posts: 3107
Joined: Fri Oct 07, 2005 06:28 PM
TMsgItem [Solved]
Posted: Sat Jul 26, 2008 10:55 AM

no..sorry i use a mine tmsgitem and mine tmsgbar with errors

Best Regards, Saludos



Falconi Silvio
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
TMsgItem [Solved]
Posted: Sat Jul 26, 2008 10:58 AM

Silvio, I'm reporting the error to Antonio.

EMG

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
TMsgItem [Solved]
Posted: Sat Jul 26, 2008 05:20 PM
Fixed, and included in FWH 8.07:
      ::oMsgBar:Say( ::oMsgBar:nHeight / 4 - 2,;
             nLeft - 1 + ( ::nWidth / 2 ) - ( GetTextWidth( hDC, AllTrim( ::cMsg ), ::oMsgBar:oFont:hFont ) / 2 ),;
             AllTrim( ::cMsg ), If( ::lActive, ::nClrText, ::nClrDisabled ),;
             ::nClrPane, ::oFont, .T., .T. )
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM

Continue the discussion