FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Dialog Window ON PAINT ( oDlg:Box ) Function is NOT working
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Dialog Window ON PAINT ( oDlg:Box ) Function is NOT working
Posted: Tue Dec 11, 2018 05:30 AM
Dear All,

I have below code to display Message to the user. used oDlg:Box() function to draw borders of the window. The border shows correct when its call on MDI Window but it does NOT show properly when it calls on the top of Dialog Window.
When it is called on the Dialog Window the Message Window Bottom border does not display properly. Its cuts the bottom border.

Please let me know whether I am doing correct or not.

Code (fw): Select all Collapse
FUNCTION MsgFYI( cTitle , cMsg )
LOCAL lRet := .F.
LOCAL aMsgBtn  := Array(1)
LOCAL oDlg , oGetMsg
**local ICO_Q_FILE := oApp:G_FACES_DIR+"I.ico"

DEFINE DIALOG oDlg SIZE 541, 180 PIXEL TRUEPIXEL  STYLE WS_POPUP


@ 002 , 02  SAY oSay VAR cTitle PIXEL SIZE 539, 25 OF oDlg FONT oApp:oFontTitle;
             COLOR  C_BCLR , nRGB(163,72,163)

**@ 005, 005 ICON FILENAME ICO_Q_FILE OF oDlg

@ 72,  100  SAY  cMsg  SIZE 400 , C_SAYH PIXEL COLOR C_SAYFCLR, C_SAYBCLR FONT oApp:oFontSay2 TRANSPARENT

@ 140, 250 BUTTON aMsgBtn[ 1 ] PROMPT "&OK" OF oDlg SIZE C_BTNW, C_BTNH PIXEL FONT oApp:oFontBTN1 ACTION ( oDlg:End() )


ACTIVATE DIALOG oDlg CENTERED ON INIT ( aMsgBtn[ 1 ]:SetFocus() ) ;
                     ON PAINT ( oDlg:Box( 0, 0, 180, 541 ) )



return lRet
Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Dialog Window ON PAINT ( oDlg:Box ) Function is NOT working
Posted: Tue Dec 11, 2018 08:10 AM

Try to use smaller values for 180 and 541

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion