Small Basic Forum
LDGraphicsWindow.TransparentGW() only one - Printable Version

+- Small Basic Forum (https://litdev.uk/mybb)
+-- Forum: Small Basic (https://litdev.uk/mybb/forumdisplay.php?fid=1)
+--- Forum: Extensions (https://litdev.uk/mybb/forumdisplay.php?fid=3)
+--- Thread: LDGraphicsWindow.TransparentGW() only one (/showthread.php?tid=396)



LDGraphicsWindow.TransparentGW() only one - martmen - 06-11-2025

Hello LitDev,

In the BJTN694.000 program, I am trying to create four windows. Windows 1–3 using LDGraphicsWindow.TransparentGW(), and the fourth window with LDWindows.Create().
However, only the first and last windows are being generated. Can LDGraphicsWindow.TransparentGW() only create one window at a time?
Is there anything you can change about this?

Best regards,
Martin


RE: LDGraphicsWindow.TransparentGW() only one - litdev - 06-11-2025

Hi,

LDGraphicsWindow.TransparentGW() is called before all GW commands to make the main GW transparent.  I don't think there is a way to make additional GWs transparent.  It doesn't create a new GW, just makes the main one transparent.

LDWindows.Create() creates another GW, I don't think it can be made transparent.

In your code loop i = 1 To 3 - the main window is set as transparent and all the other actions in that loop refer to the main GW (repeated 3 times).  Only after the loop is completed do you call LDWindows.Create() to create a second window.  Subsequent calls to LDGraphicsWindow.TransparentGW()in the loop i = 2,3 do something odd and prevent writing to the main GW.   LDGraphicsWindow.TransparentGW() should only be called once before all GW commands.

You can maybe have a similar effect as a transparent GW if you are setting the background color, by LDGraphicsWindow.Style = 0.


RE: LDGraphicsWindow.TransparentGW() only one - martmen - 06-12-2025

Hello LitDev,

I am using LDWindows.Create() and LDGraphicsWindow.Style = 0. This leads to the desired result.

Thank you for the tip.


Best regards,
Martin