Hi,
In the designer, the icons are loaded from the BPL, so the BPL includes the RES file, at runtime, the res file also needs to be found in order to find the icons. So Runtime is different from Designtime. Can you verify that, the application locates and finds the res file when compiling? Perhaps including it manually in your form unit?
Tried to reinstall. Activation screen comes up with registered email and code but says not valid. Really stuck now
Do you have a firewall that might interfere with the installation process?
No, but the subscription just ran out Thursday, March 07, 2020.
Hi,
Hi,
I tried Restart Computer, Start Delphi, New project, Add TAdvTreeView to form, run, no icons. Repeat with FNCTreeview same result
I'm really out of ideas here, this is the only report we have received so far and are not able to reproduce this issue here. The reason why at runtime no icons appear can be due to resources not being loaded correctly inside the Executable. Can you debug and see if the LoadFromResource is being correctly executed? Eventually the following icons should be loaded correctly:
FExpandNodeIcon := TTMSFNCBitmap(TTMSFNCBitmap.CreateFromResource('TTMSFNCTREEVIEWEXPAND', HInstance));
FExpandNodeIcon.OnChange := BitmapChanged;
FCollapseNodeIcon := TTMSFNCBitmap(TTMSFNCBitmap.CreateFromResource('TTMSFNCTREEVIEWCOLLAPSE', HInstance));
FExpandNodeIcon.OnChange := BitmapChanged;
FExpandNodeIconLarge := TTMSFNCBitmap(TTMSFNCBitmap.CreateFromResource('TTMSFNCTREEVIEWEXPANDLARGE', HInstance));
FExpandNodeIconLarge.OnChange := BitmapChanged;
FCollapseNodeIconLarge := TTMSFNCBitmap(TTMSFNCBitmap.CreateFromResource('TTMSFNCTREEVIEWCOLLAPSELARGE', HInstance));
FCollapseNodeIconLarge.OnChange := BitmapChanged;
class function TTMSFNCUtils.GetResourceStream(AResourceName: string; AInstance: NativeUInt): TResourceStream;
{$IFDEF WEBLIB}
begin
Result := nil;
{$ENDIF}
{$IFNDEF WEBLIB}
var
hst: NativeUInt;
function FindRCData(ModuleHandle: HMODULE; Name: string): boolean;
begin
Result := FindResource(ModuleHandle, PChar(Name), PChar(RT_RCDATA)) <> 0;
end;
begin
Result := nil;
hst := AInstance;
if FindRCData(hst, AResourceName) then
Result := TResourceStream.Create(hst, AResourceName, RT_RCDATA);
{$ENDIF}
end;
Pieter Scheldeman2020-03-28 14:54:10