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.
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!
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!