TadvGlowButton

To ensure our application has a standard look and feel we load glypths at runtime from a resourcefile
 
This works for TbitBtn
 
  (form.Components[iLoop] as TBitBtn).Glyph.LoadFromResourceName(hInstance, sBMPName);
 
but this does nothing for a glow button
 
 (form.Components[iLoop] as TAdvGlowButton).Picture.LoadFromResourceName(hInstance, sBMPName);
 
 
any ideas?
 
thanks

Are you referencing a resource of the type RT_DATA?
As TAdvGlowButton supports more than just  a bitmap, the resource type can't be RT_BITMAP

thanks will try that