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 ➜ Can't move miniwindow

Can't move miniwindow

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


Pages: 1  2 

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #15 on Wed 30 Jul 2008 05:29 AM (UTC)
Message
I don't support PNG right now, it would need a loader that handles it. Probably not a huge deal, but right now you can use Irfanview to convert a JPG, GIF or PNG to a BMP in about 2 seconds.

For the non-rectangular concept, I already support transparency. If enabled, the colour in pixel position 0,0 is the transparency colour (after all you have 16,777,216 colours to play with, so losing one isn't going to be a big deal).



- Nick Gammon

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

Posted by Shadowfyr   USA  (1,791 posts)  Bio
Date Reply #16 on Wed 30 Jul 2008 03:45 PM (UTC)
Message
Hmm. I would have thought there where hardware/windows support functions you could use to blit transparency... This shouldn't be complicated, since the means to do it is available already in most OSes. Mind you, the feature *is* limited, at least in one application I use, which has it, to Windows 2000 and higher, and may have the same issue (requiring DirectX) as the new sound feature.

Also, note, if you add png, you need to be careful you are using, and using correctly, the official libraries for them. A lot of applications get this wrong and end up screwing up transparency support, or otherwise introducing annoyances in how it works (including nearly 100% of them which completely mangle Gamma correction, when that data is stored in the file). In general, you can tell if the later is working by how it adjusts the colors. Bad implementations tend to.. well, get it wrong.. This usually means that if you had an image with red, green, blue and yellow, where, well, its hard to describe, but the test file is constructed so you have four outer boxes, and four inner boxes, and on a gamma that "works right", the 5 inner boxes are "corrected" down to 50% color. On wrong implementations, it corrects all the middle boxes, but also the outer yellow, so that, instead of having 8 colors, you have 7. Most of these buggy versions are not fixed in **anything**, when/if gamma is supported at all. :(

Same glitch happens in gray too:

http://entropymine.com/jason/testbed/alphagamma/

Firefox 3.0 gets this wrong, and its usually better than most of the applications out there are getting it right.

Frankly, as sad as it is, your probably better off ignoring the gamma feature in libpng, since no one seems to "ever" make it work right. Well, except for a few graphics applications, and, at one point, even Photoshop screwed it up.
Top

Posted by Guest1   USA  (256 posts)
Date Reply #17 on Thu 31 Jul 2008 04:23 PM (UTC)
Message
Quick question Nick (or anyone) - if we do not specify a text size and font for a miniwindow, will the size and font used in the output window be the default for the miniwindows? If not, can it be set that way?
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #18 on Fri 01 Aug 2008 01:04 AM (UTC)
Message
There is no default font - when drawing you have to specify a font ID, and thus making some sort of default would mean inventing a default font ID as well. This line of code will do it for you:


WindowFont (win, "f", GetAlphaOption ("output_font_name"), GetOption ("output_font_height"))


- Nick Gammon

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

Posted by Guest1   USA  (256 posts)
Date Reply #19 on Fri 01 Aug 2008 11:49 AM (UTC)
Message
cheers Nick
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #20 on Mon 25 Aug 2008 12:58 AM (UTC)
Message
Quote:

... but does MUSH support PNG files?


Version 4.36 will read PNG files, however it is currently discarding the alpha information.

- Nick Gammon

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

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #21 on Thu 20 Aug 2009 07:05 AM (UTC)
Message
Quote:

I can't move my miniwindow. No matter what I put in the left and top properties, it does not move.


Functionality to move miniwindows was introduced in MUSHclient 4.40, and the module described in the thread below simplifies this somewhat, so you can add "drag to move" capability with only a few lines of code:

http://www.gammon.com.au/forum/?id=9594

- 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.


77,753 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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.