Re: arsd-minigui - couple of questions

2022-04-11 Thread sai via Digitalmars-d-learn
On Monday, 11 April 2022 at 13:14:16 UTC, Adam D Ruppe wrote: On Monday, 11 April 2022 at 12:40:29 UTC, sai wrote: One more request, is it possible for you to do to ImageBox what you did to Button to show the transparent images (png)? Because Imagebox is showing black color for transparent

Re: arsd-minigui - couple of questions

2022-04-11 Thread Adam D Ruppe via Digitalmars-d-learn
On Monday, 11 April 2022 at 12:40:29 UTC, sai wrote: One more request, is it possible for you to do to ImageBox what you did to Button to show the transparent images (png)? Because Imagebox is showing black color for transparent pixels. oh yeah this one is different because the imagebox

Re: arsd-minigui - couple of questions

2022-04-11 Thread sai via Digitalmars-d-learn
One more request, is it possible for you to do to ImageBox what you did to Button to show the transparent images (png)? Because Imagebox is showing black color for transparent pixels. I tried to see the git history to see if I can make that change to Imagebox and submit a pull request, but I

Re: arsd-minigui - couple of questions

2022-03-29 Thread sai via Digitalmars-d-learn
Thanks Adam for all the help :)

Re: arsd-minigui - couple of questions

2022-03-29 Thread Adam D Ruppe via Digitalmars-d-learn
On Tuesday, 29 March 2022 at 14:24:13 UTC, sai wrote: Seems like a linker bug? So we have to wait for the fix to show up in dmd package. I just tried copying the lld-link from llvm version 14 upstream into the dmd directory and it does fix the problem, so will try to get the dmd release

Re: arsd-minigui - couple of questions

2022-03-29 Thread Adam D Ruppe via Digitalmars-d-learn
On Tuesday, 29 March 2022 at 13:39:25 UTC, sai wrote: I searched for "manifestdependency" and "drectve" (w/o quotes) in arsd lib and couldn't find them so not sure how to debug this further. Ah sorry, you caught me in the middle of something. Yes, I remember seeing this before, lld-link is

Re: arsd-minigui - couple of questions

2022-03-29 Thread sai via Digitalmars-d-learn
Found this: https://bugs.llvm.org/show_bug.cgi?id=38797 Seems like a linker bug? So we have to wait for the fix to show up in dmd package.

Re: arsd-minigui - couple of questions

2022-03-29 Thread sai via Digitalmars-d-learn
Interestingly I get the same error if I change the pragma test to "BLAH" lld-link: error: BLAH is not allowed in .drectve I suspect something is going wrong when passing the linker options from pragma to the linker itself. However, if I uncomment the pragma and explicitly place the

Re: arsd-minigui - couple of questions

2022-03-29 Thread sai via Digitalmars-d-learn
Actually as you mentioned, I did find the changes in minigui.d file. I will try tweaking the pragma there see if anything works.

Re: arsd-minigui - couple of questions

2022-03-29 Thread sai via Digitalmars-d-learn
On Monday, 28 March 2022 at 23:03:01 UTC, Adam Ruppe wrote: In fact, using a pragma now, I think I got it so you don't even need the manifest now (the pragma includes a default one now). Only works when doing dmd -m32mscoff or dmd -m64 builds (which are also what dub uses fyi), will NOT work

Re: arsd-minigui - couple of questions

2022-03-28 Thread Adam Ruppe via Digitalmars-d-learn
In fact, using a pragma now, I think I got it so you don't even need the manifest now (the pragma includes a default one now). Only works when doing dmd -m32mscoff or dmd -m64 builds (which are also what dub uses fyi), will NOT work with a default dmd no-switch build.

Re: arsd-minigui - couple of questions

2022-03-28 Thread Adam Ruppe via Digitalmars-d-learn
oooh it actually is even easier than I thought, just a changed flag plus the manifest. Just pushed to minigui master. only ended up being 4 lines for this little thing. Try rebuilding with that AND be sure to use the manifest file too, same as dwt. Then you should be able to find some joy.

Re: arsd-minigui - couple of questions

2022-03-28 Thread Adam Ruppe via Digitalmars-d-learn
On Monday, 28 March 2022 at 21:10:47 UTC, Sai wrote: FWIW, DWT which uses native controls on windows can show transparent pngs and also both image & text at the same time. However I had to add the following app.exe.manifest Yeah, this tells me they used owner-drawn buttons, which is only

Re: arsd-minigui - couple of questions

2022-03-28 Thread Sai via Digitalmars-d-learn
On Monday, 28 March 2022 at 18:03:32 UTC, Adam Ruppe wrote: On Monday, 28 March 2022 at 17:00:42 UTC, sai wrote: 1. I assume arsd-minigui library does not support transparent images by itself, does it? I am trying to show a png image with transparent areas on a button, but those transparent

Re: arsd-minigui - couple of questions

2022-03-28 Thread Adam Ruppe via Digitalmars-d-learn
On Monday, 28 March 2022 at 17:00:42 UTC, sai wrote: 1. I assume arsd-minigui library does not support transparent images by itself, does it? I am trying to show a png image with transparent areas on a button, but those transparent areas shows as black color. Well, I tried forwarding the

Re: arsd-minigui - couple of questions

2022-03-28 Thread Adam Ruppe via Digitalmars-d-learn
On Monday, 28 March 2022 at 17:00:42 UTC, sai wrote: 1. I assume arsd-minigui library does not support transparent images by itself, does it? I am trying to show a png image with transparent areas on a button, but those transparent areas shows as black color. I added that to simpledisplay

Re: arsd-minigui - couple of questions

2022-03-28 Thread sai via Digitalmars-d-learn
On Monday, 28 March 2022 at 17:00:42 UTC, sai wrote: 1. I assume arsd-minigui library does not support transparent images by itself, does it? I am trying to show a png image with transparent areas on a button, but those transparent areas shows as black color. 2. I want to show both image