Autor Beitrag
Girgl
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 281


D6 Enterprise
BeitragVerfasst: Mi 26.05.04 15:43 
Servus,
welche Komponente liefert mir nen Button mit Drop-Down-Funktion?
EUOCheffe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124



BeitragVerfasst: Mi 26.05.04 17:10 
Hmmm, Toolbuttons haben diese Eigenschaft. Könntest ja nen Toolbar nehmen und ihn so gestalten, dass man nur den Button sieht. Dann ein Popup Menu machen und der DropDownMenu Eigenschaft zuweisen.
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mi 26.05.04 17:54 
SpeedButton kann das IMHO...

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
Girgl Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 281


D6 Enterprise
BeitragVerfasst: Mi 26.05.04 19:25 
Sorry,war müll
EUOCheffe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124



BeitragVerfasst: Mi 26.05.04 22:54 
Motzi hat folgendes geschrieben:
SpeedButton kann das IMHO...


Hmmm, alle Buttons scheinen PopUp menues zu haben, aber keine DragDown...
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mi 26.05.04 23:09 
Stimmt.. naja, is ja aber auch nicht so das Problem das selbst zu machen.. einfach im OnClick-Ereignis:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
var
  aPoint: TPoint;
begin
  aPoint := Point(SpeedButton1.Left, SpeedButton1.Top + SpeedButton1.Height);
  aPoint := ClientToScreen(aPoint); { wenn der SpeedButton nicht direkt auf der Form ist sondern irgendein anderes Control als Parent hat muss dessen ClientToScreen-Methode aufgerufen werden! }
  PopupMenu1.Popup(aPoint.x, aPoint.y);
end;

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
EUOCheffe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 124



BeitragVerfasst: Do 27.05.04 00:05 
Stimmt :) user defined image