 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Rory Walsh Guest
|
Posted: Sun May 15, 2005 5:53 pm Post subject: A TRichedit as a parent for a TButton? |
|
|
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
|
Posted: Tue May 17, 2005 6:35 pm Post subject: Re: A TRichedit as a parent for a TButton? |
|
|
"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
|
Posted: Wed May 18, 2005 7:14 pm Post subject: Re: A TRichedit as a parent for a TButton? |
|
|
Cheers, I should have thought to go there myself!
|
|
| Back to top |
|
 |
|
|
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
|
|