digitalmars.D.dwt - icon at left-top corner
- Sai (13/13) Feb 23 2006 I am trying to display an icon at left-top corner of DWT application.
- Sai (4/17) Feb 23 2006 Never mind, I got it working for .gif images. I still couldn't figure ou...
- bobef (3/36) Feb 23 2006 I tried with ico, png and gif and it works. But I am not loading it from...
- Shawn Liu (4/19) Feb 27 2006 All images in rc file are stored as binary (customized) not ICON or BITM...
I am trying to display an icon at left-top corner of DWT application. I used following code and rc file, It is not working, DWTResourceManager.getImage is returning null I am using rcc.exe to convert file.rc to file.res, and including file.res in command line while building the app. Can some one plese help me. Thanks in advance Sai ---- gui_file.d Image img = DWTResourceManager.getImage("101", "ICOFILE"); shell.setImage(img); ---- file.rc 101 ICON sunits.ico
Feb 23 2006
Never mind, I got it working for .gif images. I still couldn't figure out how to use it for .bmp or .ico images though. Sai In article <dtl7pt$1bbp$1 digitaldaemon.com>, Sai says...I am trying to display an icon at left-top corner of DWT application. I used following code and rc file, It is not working, DWTResourceManager.getImage is returning null I am using rcc.exe to convert file.rc to file.res, and including file.res in command line while building the app. Can some one plese help me. Thanks in advance Sai ---- gui_file.d Image img = DWTResourceManager.getImage("101", "ICOFILE"); shell.setImage(img); ---- file.rc 101 ICON sunits.ico
Feb 23 2006
I tried with ico, png and gif and it works. But I am not loading it from resource... Sai wrote:Never mind, I got it working for .gif images. I still couldn't figure out how to use it for .bmp or .ico images though. Sai In article <dtl7pt$1bbp$1 digitaldaemon.com>, Sai says...I am trying to display an icon at left-top corner of DWT application. I used following code and rc file, It is not working, DWTResourceManager.getImage is returning null I am using rcc.exe to convert file.rc to file.res, and including file.res in command line while building the app. Can some one plese help me. Thanks in advance Sai ---- gui_file.d Image img = DWTResourceManager.getImage("101", "ICOFILE"); shell.setImage(img); ---- file.rc 101 ICON sunits.ico
Feb 23 2006
All images in rc file are stored as binary (customized) not ICON or BITMAP. 101 ICON sunits.ico is used for Windows Explorer to query and show it in explorer windows. "Sai" <Sai_member pathlink.com> says:dtl7pt$1bbp$1 digitaldaemon.com...I am trying to display an icon at left-top corner of DWT application. I used following code and rc file, It is not working, DWTResourceManager.getImage is returning null I am using rcc.exe to convert file.rc to file.res, and including file.res in command line while building the app. Can some one plese help me. Thanks in advance Sai ---- gui_file.d Image img = DWTResourceManager.getImage("101", "ICOFILE"); shell.setImage(img); ---- file.rc 101 ICON sunits.ico
Feb 27 2006