I tried
Code: Select all
Self:MyButton:Text:="Ctrl"+crlf+"u2192"
but I get the literal text u2192 on the next line
How can I solve that?
Dick
Code: Select all
Self:MyButton:Text:="Ctrl"+crlf+"u2192"
Code: Select all
Self:MyButton:Text := e"Ctrlrnu2129"
FTR, i think it is the other way roundChris post=25338 userid=313 wrote: since "r" standsfor LF and "n" for CR, you'd need to use
Oh, right!FFF post=25340 userid=259 wrote:FTR, i think it is the other way roundChris post=25338 userid=313 wrote: since "r" standsfor LF and "n" for CR, you'd need to use
Chris post=25338 userid=313 wrote: In c#, by default literal strings use escape sequences (special embedded codes starting with a ""), while in X# this is off by default. In order to specify that the a literal string should use such escape sequences, you must prefix it with "e". And since "r" standsfor LF and "n" for CR, you'd need to use.Code: Select all
Self:MyButton:Text := e"Ctrlrnu2129"
On the contrary. It looks exactly how it should look; adding a bitmap together with a text (Ctrl) often make it look a bit out of proportions. Besides: this is one line of code instead of having to first create a bitmap, add it somewhere, use it. If a font has a clear and meaningful symbol for something I prefer that much above using a bitmap.Chris post=25338 userid=313 wrote: But I think showing an arrow this way is a bit ugly. Why don't you use and put a normal arrow bitmap on the button, together with the normal caption? In WinForms, it's a lot easier and more convenient to put an image on a button, in any way you like it, than it was in VO.
.