From: Frank M on 19 Jun 2010 10:26 I try to replace my Resources (Icons, BMP) load from a linked Librarie to a replaceable DLL. I found the Code from Geoff Schaller in this NG: CLASS ICON1 Inherit Icon METHOD Init() CLASS ICON1 SUPER:Init(ResourceID{"ICON1",GetModuleHandle(psz(_cast,"MyIconset1.DLL"))}) RETURN SELF That work´s when i use the Icon for Windows Icon or Buttons. But when i try to use this to show a FixedIcon, no Icon is show. What is the Problem? Is there a better way to do that? Frank
From: Geoff Schaller on 19 Jun 2010 20:27 Frank, There is absolutely no difference. Well there is a difference in that you will need to supply the resource in the PostInit of the window because the default constructor the WED produces assumes a local resource. Check out the example in the online help. Any further questions will require you to show us your constructor code. Geoff "Frank M" <frank_muessner(a)gmx.de> wrote in message news:5152c2d3-c67a-48e7-be9a-34f3cb813368(a)h13g2000yqm.googlegroups.com: > I try to replace my Resources (Icons, BMP) load from a linked Librarie > to a replaceable DLL. > > I found the Code from Geoff Schaller in this NG: > > CLASS ICON1 Inherit Icon > METHOD Init() CLASS ICON1 > > SUPER:Init(ResourceID{"ICON1",GetModuleHandle(psz(_cast,"MyIconset1.DLL"))}) > RETURN SELF > > That work�s when i use the Icon for Windows Icon or Buttons. > But when i try to use this to show a FixedIcon, no Icon is show. > > What is the Problem? Is there a better way to do that? > > Frank
From: Darmadi on 20 Jun 2010 03:56 Hi Frank, This what I'm doing in FixedBitmap: oResourceFile := ResourceFile{"GFResour.DLL"} oDCButtonBukaData:SetBitmap( Bitmap{ ResourceID{ "IMAGE_OPENDATA", oResourceFile } } ) Darmadi "Frank M" <frank_muessner(a)gmx.de> wrote in message news:5152c2d3-c67a-48e7-be9a-34f3cb813368(a)h13g2000yqm.googlegroups.com... > I try to replace my Resources (Icons, BMP) load from a linked Librarie > to a replaceable DLL. > > I found the Code from Geoff Schaller in this NG: > > CLASS ICON1 Inherit Icon > METHOD Init() CLASS ICON1 > > SUPER:Init(ResourceID{"ICON1",GetModuleHandle(psz(_cast,"MyIconset1.DLL"))}) > RETURN SELF > > That work�s when i use the Icon for Windows Icon or Buttons. > But when i try to use this to show a FixedIcon, no Icon is show. > > What is the Problem? Is there a better way to do that? > > Frank > > > >
From: Frank M on 20 Jun 2010 04:00 Geoff, my Init Method is ever the same: oDCICON1 := FIXEDICON{SELF,ResourceID{NEWWINDOW1_ICON1,_GetInst()}} oDCICON1:HyperLabel := HyperLabel{#ICON1,"ICON1",NULL_STRING,NULL_STRING} and, when i set the Icon in Postinit new, it works. If have not found at first the SetIcon Method. method PostInit(oParent,uExtra) class NewWindow1 //Put your PostInit additions here self:oDCICON1:SetIcon(ICON1{}) return NIL Frank On 20 Jun., 02:27, "Geoff Schaller" <geo...(a)softxwareobjectives.com.au> wrote: > Frank, > > There is absolutely no difference. > > Well there is a difference in that you will need to supply the resource > in the PostInit of the window because the default constructor the WED > produces assumes a local resource. Check out the example in the online > help. Any further questions will require you to show us your constructor > code. > > Geoff > > "Frank M" <frank_muess...(a)gmx.de> wrote in message > > news:5152c2d3-c67a-48e7-be9a-34f3cb813368(a)h13g2000yqm.googlegroups.com: > > > > > I try to replace my Resources (Icons, BMP) load from a linked Librarie > > to a replaceable DLL. > > > I found the Code from Geoff Schaller in this NG: > > > CLASS ICON1 Inherit Icon > > METHOD Init() CLASS ICON1 > > > SUPER:Init(ResourceID{"ICON1",GetModuleHandle(psz(_cast,"MyIconset1.DLL"))}) > > RETURN SELF > > > That work´s when i use the Icon for Windows Icon or Buttons. > > But when i try to use this to show a FixedIcon, no Icon is show. > > > What is the Problem? Is there a better way to do that? > > > Frank- Zitierten Text ausblenden - > > - Zitierten Text anzeigen -
|
Pages: 1 Prev: Loading 16bit library Next: How to catch the event of a key pressed in a DataWindow |