ICON Image is NOT Showing

ICON Image is NOT Showing

Postby shri_fwh » Mon Sep 23, 2019 3:56 am

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  Expand view  RUN

#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
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: ICON Image is NOT Showing

Postby RAMESHBABU » Mon Sep 23, 2019 9:22 am

Dear Sridhar,

Please try this.

Code: Select all  Expand view  RUN

#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

User avatar
RAMESHBABU
 
Posts: 626
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: ICON Image is NOT Showing (Solved)

Postby shri_fwh » Tue Sep 24, 2019 5:50 pm

Dear RameshBabu ,

Thanks Now It is WORKING...!


Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 18 guests