FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Icon problem (bug?)
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Icon problem (bug?)
Posted: Thu Dec 04, 2008 09: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

Regards

Antonio H Ferreira
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Icon problem (bug?)
Posted: Fri Dec 05, 2008 08:55 AM

Antonio,

try oWnd:SetIcon (oIcon), this works for me.

kind regards

Stefan
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Icon problem (bug?)
Posted: Fri Dec 05, 2008 09:10 AM

Doesn't work.

Do you use icon in a dll resource ?

What win ver is your code working ?

Antonio

Regards

Antonio H Ferreira
Posts: 824
Joined: Thu Oct 13, 2005 07:39 AM
Icon problem (bug?)
Posted: Mon Dec 08, 2008 08: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

DEFINE ICON oIcon ...

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

oChildWnd:SetIcon (oIcon)
kind regards

Stefan
Posts: 838
Joined: Fri Feb 10, 2006 12:14 PM
Icon problem (bug?)
Posted: Mon Dec 08, 2008 10:05 AM

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

Thanks for the help.

Antonio

Regards

Antonio H Ferreira

Continue the discussion