It sounds like TEdit may not work for you. It's
treating the | as a control character, not displaying
it. You'd have to derive a new TEdit to have the
features you need, or use a different component. You
could also look at the source code for Showmessage()
and GetLongHint, GetShortHint to find out how they are
able to extract the info you need, but it could be
deadend. Good luck :-).

DJS

--- Ann Tan <[EMAIL PROTECTED]> wrote:

> Hi David,
>   GetLongHint its just a function to shows the 2nd
> part of the text, wherelse GetShortHint is a
> function to shows the 1st part of the text. It used
> "|" this symbol to separate the text apart. 
> for example: if you had 12|34
> edit1.Hint := GetLongHint(Edit1.text) {shows 34}
> edit1.HInt := GetshortHint(Edit1.text) {shows 12}
> showmessage(edit1.Hint); {shows 12|34}
> The problem is i have to show the full hint in an
> edit box, as in edit1.Hint :=  '12|34' but can't
> show it into a showmessage, which is very difficult
> to do so. 
> If i do it like edit1.Hint :=
> GetshortHint(Edit1.text) + GetLongHint(Edit1.text)
> {it shows 1234 but not 12|34}. 
> And i can't do it like edit1.Hint := 
> GetshortHint(Edit1.text) + '|'
> +GetLongHint(Edit1.text) either. {This will then
> shown the result of 12}
>  
> Ann
> 
> David Smith <[EMAIL PROTECTED]> wrote:
> You might be able to show it by using 
> Application.shorthint + Application.longhint
> property.
> Have a look at the help on these functions, I'm not
> in
> Delphi right now so I can't offer more detail.
> 
> P.S. Does it show if you use a showmessage(hint)?
> 
> DJS
> 
> --- Ann Tan <[EMAIL PROTECTED]> wrote:
> 
> > Hi David, 
> > Thanks for the suggestion, already give it a
> tried,
> > but doesn't seems like it works. Still unable to
> > shows the hint of | 
> >  
> > Ann
> > 
> > David Smith <[EMAIL PROTECTED]> wrote:
> > Try using a memo component. It parses the string
> > differntly.
> > 
> > DJS
> > 
> > --- Ann Tan <[EMAIL PROTECTED]> wrote:
> > 
> > > Hi,
> > >   Is anyone knows about how to shows the symbol
> of
> > > "|" in hint. Recently i just found that when i
> try
> > > to shows hint in a text box, delphi shows
> > everything
> > > in a text as a hint but except this ---> | ,
> > > everything after this symbol | it doesn't shows
> it
> > > out. I'm wondering is there any solution by
> > showing
> > > a full hint including this symbol ( | )?
> > > 
> > >             
> > > ---------------------------------
> > > Meet your soulmate!
> > >  Yahoo! Asia presents Meetic - where millions of
> > > singles gather 
> > > 
> > > [Non-text portions of this message have been
> > > removed]
> > > 
> > > 
> > 
> > 
> > 
> >             
> > __________________________________ 
> > Yahoo! Mail - PC Magazine Editors' Choice 2005 
> > http://mail.yahoo.com
> > 
> > 
> >
>
-----------------------------------------------------
> > Home page:
> http://groups.yahoo.com/group/delphi-en/
> > To unsubscribe:
> > [EMAIL PROTECTED] 
> > 
> > 
> > 
> > SPONSORED LINKS 
> > Basic programming language C programming language
> > Computer programming languages The c programming
> > language C programming language List of
> programming
> > languages 
> > 
> > ---------------------------------
> > YAHOO! GROUPS LINKS 
> > 
> > 
> >     Visit your group "delphi-en" on the web.
> >   
> >     To unsubscribe from this group, send an email
> > to:
> >  [EMAIL PROTECTED]
> >   
> >     Your use of Yahoo! Groups is subject to the
> > Yahoo! Terms of Service. 
> > 
> > 
> > ---------------------------------
> > 
> > 
> > 
> >             
> > ---------------------------------
> > Meet your soulmate!
> >  Yahoo! Asia presents Meetic - where millions of
> > singles gather 
> > 
> > [Non-text portions of this message have been
> > removed]
> > 
> > 
> 
> 
> 
>             
> __________________________________ 
> Yahoo! Mail - PC Magazine Editors' Choice 2005 
> http://mail.yahoo.com
> 
> 
>
-----------------------------------------------------
> Home page: http://groups.yahoo.com/group/delphi-en/
> To unsubscribe:
> [EMAIL PROTECTED] 
> 
> 
> 
> SPONSORED LINKS 
> Basic programming language C programming language
> Computer programming languages The c programming
> language C programming language List of programming
> languages 
> 
> ---------------------------------
> YAHOO! GROUPS LINKS 
> 
> 
>     Visit your group "delphi-en" on the web.
>   
>     To unsubscribe from this group, send an email
> to:
>  [EMAIL PROTECTED]
>   
>     Your use of Yahoo! Groups is subject to the
> Yahoo! Terms of Service. 
> 
> 
> ---------------------------------
> 
> 
> 
>               
> ---------------------------------
> Meet your soulmate!
>  Yahoo! Asia presents Meetic - where millions of
> singles gather 
> 
> [Non-text portions of this message have been
> removed]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/i7folB/TM
--------------------------------------------------------------------~-> 

-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to