Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > Tools

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 07-12-2002, 10:33 AM
agustinus agustinus is offline
Junior Member
 
Join Date: Jul 2002
Posts: 4
Default How to create toolwindow like photoshop?

How to create a toolwindow that can be active all the time like photoshop tool window? I've read the same question here, but the answer is not working.

Is there anybody could help me?
Reply With Quote
  #2  
Old 07-12-2002, 12:38 PM
HTML HTML is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,977
Default RE: How to create toolwindow like photoshop?

Hello,


You could create a new Form, to show the Form you use Form.Show not ShowModal, set the FormStyle to StayOnTop.

That should have the same effect as that floating toolwindow.
Reply With Quote
  #3  
Old 07-12-2002, 10:48 PM
agustinus agustinus is offline
Junior Member
 
Join Date: Jul 2002
Posts: 4
Default RE: How to create toolwindow like photoshop?

Well I've already tried that before, yes it works like a tool window, but Photoshop toolwindow is active all the time (both the main window and toolwindow are active), how can we do that, I mean making both forms active at the same time?
Reply With Quote
  #4  
Old 07-13-2002, 11:39 AM
HTML HTML is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,977
Default RE: How to create toolwindow like photoshop?

Hello, :-)

What exactely do you mean you want both active at the same time? Really only one one Form can have focus at a time. So you can color the Toolbars title bar, to seem like it does have focus.The example here shows how to draw on the TitleBar,
http://www.nsonic.de/Delphi/txt_WIS00239.htm

Or just remove the Titlebar and replace it with a Panel,
http://www.greatis.com/delphi/forms-hidebar.html

And use the Panels OnMouseEvent to move the Form,

if Button = mbLeft then
begin
ReleaseCapture();
SendMessage(Handle, WM_SYSCOMMAND, $F012, 0);
end;
Reply With Quote
  #5  
Old 07-14-2002, 10:04 AM
agustinus agustinus is offline
Junior Member
 
Join Date: Jul 2002
Posts: 4
Default RE: How to create toolwindow like photoshop?

Thank you,.... this is the answer that I have been looking for,...! Thank you very much.
Reply With Quote
  #6  
Old 07-14-2002, 11:37 AM
HTML HTML is offline
Senior Member
 
Join Date: Jan 2001
Posts: 2,977
Default RE: How to create toolwindow like photoshop?

You're welcome . happy it worked out for you m8.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:55 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.