Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

component required, can someone make this ?

Status
Not open for further replies.

DelphiAaron

Programmer
Jul 4, 2002
826
AU
wanted a smart cookie that can make a
TMemo and TDBMemo that can link to a seperate TScrollbox

Aaron Taylor
John Mutch Electronics
 
I am curious why do you want the Memo to link to a separate scroll bar, TMemo and TDBMemo have their own scrollbars. Dont they?
 
yes but it would be good to be able to disable the memo and use the scroll bars still :)

ive looked into it but cant find where the scrollbar is created, updated ect.

if someone knows where thats done i maybe able to do the rest.

Aaron Taylor
John Mutch Electronics
 
Isn't setting the ReadOnly properties good enough aaronjme? They both have it.

[bobafett] BobbaFet [bobafett]
Code:
if not Programming = 'Severe Migraine' then
                       ShowMessage('Eureka!');
 
well, in that case you could put something like this in onMouseUp event of (DB-)Memo:

procedure TForm1.Memo1MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
Memo1.SelLength := 0;
Button1.SetFocus;
end;

I'm assuming you do have something else on the form to set the focus to.

[bobafett] BobbaFet [bobafett]
Code:
if not Programming = 'Severe Migraine' then
                       ShowMessage('Eureka!');
 
I've got another idea for you:

Perhaps you could use a TStaticText (it is on the Additional tab)?

[bobafett] BobbaFet [bobafett]
Code:
if not Programming = 'Severe Migraine' then
                       ShowMessage('Eureka!');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top