Miniwindow underneath TextRectangle border.

Posted by LaoFremda on Sun 04 Jan 2009 01:39 PM — 2 posts, 11,604 views.

#0
Here is problematic plugin

function OnPluginInstall ()

win = GetPluginID ()

lbar = "left_bar_img" --left bar id

TextRectangle (155, 0, 0, 0, 0, 0x000000, 0, 0x000000, 1)
WindowCreate (win, 0, 0, 155, 600, 2, 1, ColourNameToRGB("black"))
WindowLoadImage(win, lbar, "./EyeCandy/left_bar.bmp")
WindowDrawImage (win, lbar, 0, 0, 0, 0, 1)

WindowShow (win, true)

end -- OnPluginInstall

As you can see, i want to make fancy left bar for various miniwindows. The problem is in background image. I can't make miniwindow with flag 1 shown underneath TextRectangle border. Is it possible?
Amended on Sun 04 Jan 2009 01:40 PM by LaoFremda
Australia Forum Administrator #1
That is a bug and has been fixed in version 4.38.

Meanwhile, all I can suggest you do is draw on top rather than underneath, but organize the miniwindow names so that your eye candy window is lower alphabetically than the other ones, and thus will be drawn first (and will appear underneath).

eg.


backgroundwin = GetPluginID () .. ":0"  -- "0" is low alphabetically

statuswin = GetPluginID () .. ":status"  -- draw on top of backgroundwin