Page 1 of 2

Negative numbers in Pulldown Menu causing problems

Posted: Tue Aug 23, 2011 8:03 pm
by jpottsx1
Hi,

I have a Pulldown menu on a card that is used to display numbers between "-5" and "+5", however the negative values don't show up in the list, I only get as best I can describe them as "lines" where the numbers should be. How can I fix this?

Re: Negative numbers in Pulldown Menu causing problems

Posted: Tue Aug 23, 2011 8:07 pm
by bangkok
jpottsx1 wrote: I have a Pulldown menu on a card that is used to display numbers between "-5" and "+5", however the negative values don't show up in the list, I only get as best I can describe them as "lines" where the numbers should be. How can I fix this?
That's a nice one (bug ?).

Solution : add a space before, on each line.

Re: Negative numbers in Pulldown Menu causing problems

Posted: Wed Aug 24, 2011 12:10 am
by FourthWorld
I just made a pulldown button with that range and it seems to display okay.

How did you create that menu?

Re: Negative numbers in Pulldown Menu causing problems

Posted: Wed Aug 24, 2011 11:03 am
by Klaus
Richard,

this is a bug and I already reported this a couple of years ago :?

The only workaround is to add a SPACE before each MINUS sign as bangkok already mentioned!


Best

Klaus

Re: Negative numbers in Pulldown Menu causing problems

Posted: Wed Aug 24, 2011 2:29 pm
by FourthWorld
I don't doubt your bug report, but yet I was able to create a pulldown menu with the items described so it seems that either I misunderstood the request or the problem may be limited to the LC IDE and not necessarily the engine (I built my functional test menu in MC).

I'll be happy to review the details in the report - what is the RQCC number?

Re: Negative numbers in Pulldown Menu causing problems

Posted: Wed Aug 24, 2011 4:01 pm
by Klaus
Hi Richard,

I just did a quick check in MetaCard, no way, see screenshot.
I put this into the "pulldown" menu button:
1
2
3
4
5
-1
-2
-3
-4
-5

I saw that this was an enhacement request so I changed this to "normal bug":
http://quality.runrev.com/show_bug.cgi?id=5822


Best

Klaus

Re: Negative numbers in Pulldown Menu causing problems

Posted: Wed Aug 24, 2011 7:30 pm
by FourthWorld
Thanks for the screen shot - that was the key: I had thought this affected all platforms, but it doesn't seem a problem on Mac OS X (updated the RQCC report accordingly).

Re: Negative numbers in Pulldown Menu causing problems

Posted: Wed Aug 24, 2011 9:26 pm
by Klaus
Richard,

the screenshot IS from OS X!

But this only affects "pulldown" menu buttons, "popup" etc. work fine!


Best

Klaus

Re: Negative numbers in Pulldown Menu causing problems

Posted: Wed Aug 24, 2011 9:38 pm
by bn
Hi,
Bildschirmfoto 2011-08-24 um 22.33.07.png
Bildschirmfoto 2011-08-24 um 22.33.07.png (10.01 KiB) Viewed 9664 times
and
Bildschirmfoto 2011-08-24 um 22.33.30.png
Bildschirmfoto 2011-08-24 um 22.33.30.png (7.62 KiB) Viewed 9664 times
no spaces, just what it shows. MacOSX 10.6.8, LC 4.6.3

???

Kind regards

Bernd

Re: Negative numbers in Pulldown Menu causing problems

Posted: Wed Aug 24, 2011 9:52 pm
by FourthWorld
Klaus wrote:Richard,

the screenshot IS from OS X!
I've found the difference: when left to the engine's defaults, the menu button's border property is set to 2, and the button will use the OS routines to draw the menu, which draws them appropriately. But if you set the button's border to 0, the internal engine routines are used to draw the menus as they are for all menus on Win and Linux, which exhibits the erroneous behavior reported.

Re: Negative numbers in Pulldown Menu causing problems

Posted: Thu Aug 25, 2011 2:52 am
by jpottsx1
I'm running Windows 7 and have updated to the latest LC release and I still get the erroneous lines in my menu whether I have my border set to zero or not, and enabling the the border or not still produces the same results.

My assumption is that this error is caused by the menu system's default programming that allows a "-" to produce a menu divider when creating a menu based resource. When using the menu builder a dash/"-" inserts a menu item divider. The code must be shared with the button menu items.

Re: Negative numbers in Pulldown Menu causing problems

Posted: Thu Aug 25, 2011 3:57 am
by FourthWorld
That the issue is consistent on Windows in spite of the borderwidth setting is to be expected; the "fix" of setting the borderwidth to 2 invokes correct behaviors only by relying on OS X's menu routines when running on that OS.

Re: Negative numbers in Pulldown Menu causing problems

Posted: Thu Aug 25, 2011 10:52 am
by Klaus
Hi Richard,

could you please add some comments to the Qualtiy Center?
I think this NEEDS some explanation, due to the different results here on OS X, thanks!


Best

Klaus

Re: Negative numbers in Pulldown Menu causing problems

Posted: Thu Aug 25, 2011 2:13 pm
by FourthWorld
Good idea - done.

Re: Negative numbers in Pulldown Menu causing problems

Posted: Thu Aug 25, 2011 4:58 pm
by jacque
Did anyone try escaping the hyphen? I.e.: \-