Icon problem (bug?)

Icon problem (bug?)

Postby AHF » Thu Dec 04, 2008 9:46 pm

I have all the icons in a dll.

Each MDI window uses it's own icon.

However the first icon to be used in the first mdi window becomes the icon for all other mdi windows although each mdi defines a diferent name icon.

Is it this some bug ?

Antonio
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Postby StefanHaupt » Fri Dec 05, 2008 8:55 am

Antonio,

try oWnd:SetIcon (oIcon), this works for me.
kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby AHF » Fri Dec 05, 2008 9:10 am

Doesn't work.

Do you use icon in a dll resource ?

What win ver is your code working ?

Antonio
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Postby StefanHaupt » Mon Dec 08, 2008 8:52 am

This code works on XP, Vista, 98, Win2000.

There is no difference using rc-files or dll-files, only the resource name must be correct.

I use this function after defining the window

Code: Select all  Expand view
DEFINE ICON oIcon ...

DEFINE WINDOW oChildWnd MDICHILD;
         FROM 1, 2 TO 35, 85 ;
         TITLE "Test" ;
         OF oMainWnd

oChildWnd:SetIcon (oIcon)


kind regards
Stefan
StefanHaupt
 
Posts: 824
Joined: Thu Oct 13, 2005 7:39 am
Location: Germany

Postby AHF » Mon Dec 08, 2008 10:05 am

You re right It's working it was my mistake.

Thanks for the help.

Antonio
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 76 guests