Re: bitmap resources are disconnected from .src/.res now

2017-05-02 Thread Miklos Vajna
On Tue, May 02, 2017 at 12:33:54PM +0100, Caolán McNamara wrote: > Yeah, bitmap names are now the id, so no collisions and no need to > extend a .hrc block or dig around for a free slot. Cool, thanks a lot. :-) signature.asc Description: Digital signature

Re: bitmap resources are disconnected from .src/.res now

2017-05-02 Thread Caolán McNamara
On Tue, 2017-05-02 at 10:50 +0200, Miklos Vajna wrote: > Hi, > > On Thu, Apr 27, 2017 at 02:40:26PM +0100, Caolán McNamara dhat.com> wrote: > > tl;dr: To use a theme png in C++, add #define NAME "path/to/png" to > > a .hlst and use BitmapEx foo(NAME) > > If I understand correctly,

Re: bitmap resources are disconnected from .src/.res now

2017-05-02 Thread Miklos Vajna
Hi, On Thu, Apr 27, 2017 at 02:40:26PM +0100, Caolán McNamara wrote: > tl;dr: To use a theme png in C++, add #define NAME "path/to/png" to a > .hlst and use BitmapEx foo(NAME) If I understand correctly, this is also means it's harder to get this wrong, as you don't have to

Re: bitmap resources are disconnected from .src/.res now

2017-04-27 Thread Chris Sherlock
> On 27 Apr 2017, at 11:40 pm, Caolán McNamara wrote: > > tl;dr: To use a theme png in C++, add #define NAME "path/to/png" to a > .hlst and use BitmapEx foo(NAME) Brilliant news, that really is great work Caolon! Chris ___

bitmap resources are disconnected from .src/.res now

2017-04-27 Thread Caolán McNamara
tl;dr: To use a theme png in C++, add #define NAME "path/to/png" to a .hlst and use BitmapEx foo(NAME) Until recent changes, bitmap (png) resources were described by a define to an arbitrary number in a .hrc with a body in a .src that contains the file name within the theme hierarchy. The .src