ICON Image is NOT Showing

Post Reply
shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

ICON Image is NOT Showing

Post by shri_fwh »

Dear All ,

I want to display ICON Image on the Dialog form and written below code for the same. But it is NOT working.

Could you please let me know where I am doing mistake. Thanks in advance...!

Code: Select all

#include "fivewin.ch"

PROCEDURE VFA_UserLogin

    LOCAL oDlg
    LOCAL oULoginIcon
    LOCAL cDIR := "C:\APP\IMG\"
 
    DEFINE DIALOG oDlg TITLE "Login" FROM 0,0 TO 450,720  PIXEL TRUEPIXEL 



    @ 150, 050 ICON oULoginIcon  FILENAME  cDIR +"ulogin.ico"  OF oDlg 

    
     ACTIVATE DIALOG oDlg CENTERED  
 
 
 return 


 

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: ICON Image is NOT Showing

Post by RAMESHBABU »

Dear Sridhar,

Please try this.

Code: Select all

#include "fivewin.ch"
#include "constant.ch" // to get ICO_CHARPIX_H, ICO_CHARPIX_W Constants

PROCEDURE VFA_UserLogin

    LOCAL oDlg
    LOCAL oULoginIcon
    LOCAL cDIR := "C:\APP\IMG\"
 
    DEFINE DIALOG oDlg TITLE "Login" FROM 0,0 TO 450,720  PIXEL TRUEPIXEL

    *@ 150, 050 ICON oULoginIcon  FILENAME  cDIR +"ulogin.ico"  OF oDlg // @150, 050 Positions are going out of the Dialog Size
    @ 5, 6 ICON oULoginIcon  FILENAME  cDIR +"ulogin.ico"  OF oDlg 
    @ 150/ICO_CHARPIX_H, 050/ICO_CHARPIX_W ICON oULoginIcon  FILENAME  cDIR +"ulogin.ico"  OF oDlg 
   
     ACTIVATE DIALOG oDlg CENTERED  
 
 
 return

shri_fwh
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: ICON Image is NOT Showing (Solved)

Post by shri_fwh »

Dear RameshBabu ,

Thanks Now It is WORKING...!


Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
Post Reply