1. EuGrid Weirdness
- Posted by cklester <cklester at yahoo.com> Jan 28, 2005
- 462 views
- Last edited Jan 29, 2005
I'm populating a EuGrid and some of my data is thus: "Howard & Sons Inc" When I put it in the EuGrid, though, it interprets the ampersand as a quick-key item and shows it thusly: "Howard _Sons Inc" Is that a bug or should I be doing something else? :) -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
2. Re: EuGrid Weirdness
- Posted by Jonas Temple <jtemple at yhti.net> Jan 29, 2005
- 469 views
cklester wrote: > > I'm populating a EuGrid and some of my data is thus: > > "Howard & Sons Inc" > > When I put it in the EuGrid, though, it interprets the ampersand as a > quick-key item and shows it thusly: > > "Howard _Sons Inc" > > Is that a bug or should I be doing something else? :) > > -=ck > "Programming in a state of EUPHORIA." > <a > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> > CK, I just tried that here at home and the & is displayed correctly. What version of EuGrid are you using? Jonas Temple http://www.yhti.net/~jktemple
3. Re: EuGrid Weirdness
- Posted by Ferlin Scarborough <ferlin1 at bellsouth.net> Jan 29, 2005
- 494 views
- Last edited Jan 30, 2005
cklester wrote: > > I'm populating a EuGrid and some of my data is thus: > > "Howard & Sons Inc" > > When I put it in the EuGrid, though, it interprets the ampersand as a > quick-key item and shows it thusly: > > "Howard _Sons Inc" > > Is that a bug or should I be doing something else? :) > > -=ck > "Programming in a state of EUPHORIA." > <a > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> > CK, I'm not sure about this in regards to EuGrid, but I have seen in a couple of other Winows programming languages, in order to get the & character to print as an ampresand instead of an underline, you have to double it like: "Howard && Sons Inc" I thought since I have seen this in more than one language that has support for windows programming, that it was a win32api thing. Later. Ferlin Scarborough Learn To Program Games in Free Courses At http://www.gameuniv.net My Euphoria Home Page http://mywebpage.netscape.com/shadetreesoft
4. Re: EuGrid Weirdness
- Posted by Bernie Ryan <xotron at bluefrog.com> Jan 29, 2005
- 471 views
- Last edited Jan 30, 2005
Ferlin Scarborough wrote: > > I'm not sure about this in regards to EuGrid, but I have seen in a couple of > other Winows programming languages, in order to get the & character to print > as an ampresand instead of an underline, you have to double it like: > > "Howard && Sons Inc" > > I thought since I have seen this in more than one language that has support > for windows programming, that it was a win32api thing. > Ferlin: You are correct this is what the MSDN says : An ampersand (&) character in the text indicates that the following character is used as a mnemonic character for the control. When the control is displayed, the ampersand is not shown, but the mnemonic character is underlined. The user can choose the control by pressing the key corresponding to the underlined mnemonic character. To use the ampersand as a character in a string, insert two ampersands (&&). Bernie My files in archive: w32engin.ew mixedlib.e eu_engin.e win32eru.ew Can be downloaded here: http://www.rapideuphoria.com/cgi-bin/asearch.exu?dos=on&win=on&lnx=on&gen=on&keywords=bernie+ryan
5. Re: EuGrid Weirdness
- Posted by cklester <cklester at yahoo.com> Jan 30, 2005
- 477 views
Ferlin Scarborough wrote: > > I'm not sure about this in regards to EuGrid, but I have seen in a couple of > other Windows programming languages, in order to get the & character to print > as an ampresand instead of an underline, you have to double it like: > > "Howard && Sons Inc" > > I thought since I have seen this in more than one language that has support > for windows programming, that it was a win32api thing. Well, you don't have to do that for a text box, right? Or do you? I wouldn't think EuGrid would interpret text in a cell to have a hotkey marker, but maybe it does! :) Jonas, I don't know what version I have. I'll have to check when I get back to work on Monday. Thanks! -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
6. Re: EuGrid Weirdness
- Posted by Phil Russell <pg_russell at lineone.net> Jan 30, 2005
- 469 views
Hi CK, This was a bug in earlier releases of EuGrid - AFAIK it should be fixed in the current version. Please let me know if it isn't! For anybody interested, I think the reason it was happening is that EuGrid is based on a Windows PushButton control. I did this to get around a limitation that existed in win32lib at that time - namely that you couldn't create a vanilla window as a child of another window. The default behaviour in button controls seems to be to convert an ampersand (&) to an underline (_) in displayed text. Various people pointed this out a year or so back, and suggested different solutions. In the end I found a flag in DrawText (DT_NOPREFIX) which appears to suppress this behaviour. HTH, Phil cklester wrote: > > Ferlin Scarborough wrote: > > > > I'm not sure about this in regards to EuGrid, but I have seen in a couple of > > other Windows programming languages, in order to get the & character to > > print > > as an ampresand instead of an underline, you have to double it like: > > > > "Howard && Sons Inc" > > > > I thought since I have seen this in more than one language that has support > > for windows programming, that it was a win32api thing. > > Well, you don't have to do that for a text box, right? Or do you? I wouldn't > think EuGrid would interpret text in a cell to have a hotkey marker, but > maybe it does! :) > > Jonas, I don't know what version I have. I'll have to check when I get > back to work on Monday. > > Thanks! > > -=ck > "Programming in a state of EUPHORIA." > <a > href="http://www.cklester.com/euphoria/">http://www.cklester.com/euphoria/</a> >