|
kkerwin Beginner
Joined: 19 Jun 2007 Posts: 23
|
Posted: Tue Jun 19, 2007 4:05 am
CMud Button Question |
For some reason, rather than show the complete label on a button, CMud is replacing the last syllable with ellipses, even though it still has room to display the rest of the text. I've tried making the length of the button longer, but still nothing. Here's a screenshot:
Note especially the "Pri..." button at right. Clearly, it is supposed to say "Priest". I know that it has enough room to display the full text, because there is a button labeled "Runewarden" that is fully labeled below it.
Any thoughts on what the problem is, and how to fix it? Thanks in advance. |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Tue Jun 19, 2007 5:28 am |
Some of your buttons may have the image on left option checked which takes up space on the button be assuming a button is there. They could also have the image margin value set which affects the display of text relative to the button image.
|
|
_________________ Asati di tempari! |
|
|
|
kkerwin Beginner
Joined: 19 Jun 2007 Posts: 23
|
Posted: Tue Jun 19, 2007 6:08 am |
Checked, and the image on left was enabled. I disabled it, but it didn't fix the problem. Image margin was set to 0, already. So, the problem is still there.
|
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Jun 19, 2007 7:14 pm |
Yeah, I've actually seen this too. It has something to do with the changes with the CMUD theme/skin system that I haven't been able to track down. I've noticed that other elements, such as tabs, also have this problem sometimes. It's almost like one of the Windows Theme routines that returns the size of text (which is then used to see if the caption will fit) isn't returning the correct values, or is using the wrong font to determine the text size.
Anyway, this is on the bug list, but it's been a bit of a low priority for a while now. |
|
|
|
kkerwin Beginner
Joined: 19 Jun 2007 Posts: 23
|
Posted: Tue Jun 19, 2007 8:08 pm |
Zugg wrote: |
Anyway, this is on the bug list, but it's been a bit of a low priority for a while now. |
Bugger. Ok, well, thanks for the post, Zugg.
In the mean time, is there some sort of superfluous feature that I have turned on that I can disable that will make the problem go away? Like ... is there someway that I can disable the elipses and just let it display text until it runs out of room? I swear, if the elipses weren't there, that'd be half of the solution right there ... |
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Tue Jun 19, 2007 9:09 pm |
Those buttons look like they are from Larkin's Acropolis setup. I have the same ones actually without the problems hmm.
I did a LOT of tweaking though when I converted them to Cmud though...
Could you give us a screen shot of the options tab for the priest button?
I have my buttons set at a width of 68 and a height of 23 image on left is checked but a margin of -1 Show on session, toolbar, and stacked are checked. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
kkerwin Beginner
Joined: 19 Jun 2007 Posts: 23
|
Posted: Wed Jun 20, 2007 5:38 am |
Hrm. I thought that I had posted a reply, but I guess not. Then again, I did just do a silly double post, both entitled something like "CMUD Mapper: Blue Screen". Apparently the forums don't like me.
Ok! I tried those suggestions, but they didn't do me any good, either. Here's a screenshot:
|
|
|
|
Arminas Wizard
Joined: 11 Jul 2002 Posts: 1265 Location: USA
|
Posted: Wed Jun 20, 2007 1:52 pm |
Alright, there is a bug in having buttons in different bars in different combinations. I know I have not reported it yet. I have been very busy and didn't want to have to nail it down.
Try putting the buttons that are messing up in a different bar. For instance if you have buttons in bars 2 and 4 some of the buttons will wildly change their horizontal positions for example.
So if you have buttons in bars 2 and 4 you will have trouble. But if you put all the buttons that are in bar 2 in bar 1, and disable the class the buttons are in and re-enable it again they work normally Sometimes...
I did more tweaking than that. But it is another thing to try. |
|
_________________ Arminas, The Invisible horseman
Windows 7 Pro 32 bit
AMD 64 X2 2.51 Dual Core, 2 GB of Ram |
|
|
|
bse Newbie
Joined: 04 Jun 2007 Posts: 2
|
Posted: Thu Jun 21, 2007 2:45 am |
Hi there ..
I am also suffering from this button text problem. I have tried a simple set up that has only 1 toolbar with only 1 button and it still occurs.
Now the interesting thing is it seems to depend on exactly what the text is. If the button text is set to "Party Report - Off" then I only see part of the text with "..." on the end, but if I set the text to read "Party Report - On" I get the full text as expected. My button is large enough to display both sets of text properly (even set it to 300 for testing) .
I can sometimes even get my original text to display if i add extra words to the end of it (eg."Party Report - Off extra words" displays properly) but it seems to depend on the exact sequence of characters used. Of course this isnt a satisfactory workaround if you would like a small button that only contains a couple of characters (I have a button that I would like to display "2 r" which displays "2 ..." instead).
I have also found that this seems to be somewhat machine dependent. The problem occurs on my machine at home (my usual mudding machine) but with the exact same package set it does not occur on my machine in the office. Both machines are running Windows XP with up to date service packs and CMUD 1.33. Could the bug be graphics card related or some other system component ?
Thanks guys ...
B.S.E |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Mon Jun 25, 2007 5:41 pm |
Quote: |
Could the bug be graphics card related or some other system component ? |
Yes, I think that is part of the problem. The button display code is calling a Windows API to determine the pixel dimensions of the caption string. If the returned result is larger than the button width, then the '...' is used. So, it depends upon the font being queried, along with info from Windows about the current font DPI settings.
You might right-click on your display properties and go into the Advanced settings and look to see what the DPI setting is. I test CMUD on a system with a 96 DPI setting. If you have a different DPI setting, then that would certainly explain part of the problem.
Also, like I said earlier, I think the theming system might be changing what font the buttons might be querying. It is supposed to used the Windows system font (normally Tahoma), but it might be using something else. That's what I need to debug. |
|
|
|
kkerwin Beginner
Joined: 19 Jun 2007 Posts: 23
|
Posted: Wed Jun 27, 2007 1:09 pm |
Hey Zugg,
Just downloaded the new version of 1.34 and, like you said, it seems to have fixed the problem. Thanks again for your help!
EDIT: Fixed spelling. |
|
|
|
|
|