BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A TRichedit as a parent for a TButton?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Rory Walsh
Guest





PostPosted: Sun May 15, 2005 5:53 pm    Post subject: A TRichedit as a parent for a TButton? Reply with quote



Hi everyone, I am currently writing a kind of text editor with buttons
that can be placed on the text. I can place the button there as a parent
of the main Form and it looks fine but there are problems. For example
every time I scroll down through the text I want my button to go up or
down accordingly which it obviously won't do. I thought that by making
the button a child of the richedt I could solve my problem without
having to write a special routine to move my button. The problem with
this is that my text disappears as soon as I place a button that is a
child of RichEdit? Has anyone any ideas on this? It would be great if I
could scroll through my text with the button staying on the same line as
it goes up and down. I think that I will probably have to write a
routine to do this so if anyone has any pointers on that I would
appreciate the advice before I start coding it. Cheers,
Rory.
Back to top
Simon D
Guest





PostPosted: Tue May 17, 2005 6:35 pm    Post subject: Re: A TRichedit as a parent for a TButton? Reply with quote



"Rory Walsh" <rorywalsh (AT) ear (DOT) ie> wrote

Quote:
Hi everyone, I am currently writing a kind of text editor with buttons
that can be placed on the text. I can place the button there as a parent
of the main Form and it looks fine but there are problems. For example
every time I scroll down through the text I want my button to go up or
down accordingly which it obviously won't do. I thought that by making
the button a child of the richedt I could solve my problem without
having to write a special routine to move my button. The problem with
this is that my text disappears as soon as I place a button that is a
child of RichEdit? Has anyone any ideas on this? It would be great if I
could scroll through my text with the button staying on the same line as
it goes up and down. I think that I will probably have to write a
routine to do this so if anyone has any pointers on that I would
appreciate the advice before I start coding it. Cheers,
Rory.

I don't have an answer for you, but it may be here.
http://home.att.net/~robertdunn/Yacs.html

Good luck.
Simon.



Back to top
Rory Walsh
Guest





PostPosted: Wed May 18, 2005 7:14 pm    Post subject: Re: A TRichedit as a parent for a TButton? Reply with quote



Cheers, I should have thought to go there myself!

Quote:
I don't have an answer for you, but it may be here.
http://home.att.net/~robertdunn/Yacs.html

Good luck.
Simon.



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.