Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Miniwindows ➜ Miniwindow underneath TextRectangle border.

Miniwindow underneath TextRectangle border.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by LaoFremda   (2 posts)  Bio
Date Sun 04 Jan 2009 01:39 PM (UTC)

Amended on Sun 04 Jan 2009 01:40 PM (UTC) by LaoFremda

Message
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?
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 04 Jan 2009 07:59 PM (UTC)
Message
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


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,036 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.