Dialog Window ON PAINT ( oDlg:Box ) Function is NOT working

Dialog Window ON PAINT ( oDlg:Box ) Function is NOT working

Postby shri_fwh » Tue Dec 11, 2018 5: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: Select all  Expand view

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 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: Dialog Window ON PAINT ( oDlg:Box ) Function is NOT working

Postby Antonio Linares » Tue Dec 11, 2018 8:10 am

Try to use smaller values for 180 and 541
regards, saludos

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 62 guests

cron