Re: EuGrid Weirdness
- Posted by Phil Russell <pg_russell at lineone.net> Jan 30, 2005
- 470 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> >