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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Some questions about TToolbar

Status
Not open for further replies.

sggaunt

Programmer
Jul 4, 2001
8,620
GB
I would like to be able to paint a bitbap image onto a toolbar and have the Buttons transparent so that the button images are the only things visible on the toolbar.
Alternativly have the main form's image behind the tool bar and the whole thing transparant.

But there seem to be some problems with this.
The application would be written in D4 some testing in D3

1. (D3 version) of TToolbar inherits a Brush from TWinControl I tried assigning a bitmap to this with no effect. maybe I left somthing out.
Code:
procedure TForm1.ToolButton1Click(Sender: TObject);
 var B: TBrush;
begin
  B := TBrush.Create;
  IL2.GetBitmap(0, B.Bitmap);
  Toolbar.Brush.Assign(B);
  B.free;
  toolbar.Repaint;
end;



2. Even changing the background colour would be a step in the right direction, but the color property, dosnt seem to have any effect.

3. Making a toolbar 'flat' is supposed to make it transparent, This dosnt seem to happen.

3. And slightly off topic many newish apps dont use a toolbar, but have a scrolling list of Icons down one edge of the main window, how is this achived, there are no native components in D3/4 that do this. Unless its just a set of 'flat' buttons within a vertical scrollbox?








Steve
Be excellent to each other and Party on!
 
3. And slightly off topic many newish apps dont use a toolbar, but have a scrolling list of Icons down one edge of the main window, how is this achived, there are no native components in D3/4 that do this. Unless its just a set of 'flat' buttons within a vertical scrollbox?
Steve, I believe you want an Outlook bar to do this. Try downloading the JEDI VCL tools, theres one in there and its a good set of tools to have at your disposal.


[blue]"Mr Flibble says: Game Over, boys!" [/blue]
 
Cheers for that Eric
9 Megs! Its a good job I have my 'Update sphere CD' with me.


Steve
Be excellent to each other and Party on!
 
The bad news was the JVCL downloads have a minimum requirement of D5, and I have D4.



Steve
Be excellent to each other and Party on!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top