Autor Beitrag
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Di 27.01.09 17:27 
Hallo,

wie kann ich ein neues TTBXItem einer TBXToolbar hinzufügen? Ich vermisse da ne Eigenschaft wzb. Parent. :( Und bei myitem := TTBXItem.Create(TBXToolbar1) gibt es eine Exception. Bzw. geht das überhaupt?
Jakob_Ullmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Mi 28.01.09 18:49 
Keiner eine Idee? :(
Jakob_Ullmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Do 29.01.09 17:43 
Das hat doch bestimmt schon jemand gemacht. Oder gibt es noch andere Möglichkeiten, Tabs im OfficeXP-Stil zu erstellen?
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Do 29.01.09 17:45 
Ich glaube, du musst die Methode Add der Toolbar verwenden. Ich benutze SpTBX, aber bei den TBX sollte das so ähnlich gehen.
Jakob_Ullmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Do 29.01.09 17:54 
Cool, mit TBXToolbar8.Items.Add() gehts. Danke!

Falls jemand danach sucht:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
  myitem := TTBXItem.Create(self);
  TBXToolbar8.Items.Add(myitem);
  if not FileExists(Name) then
    myitem.Caption := Name
  else begin
    myitem.Caption :=
      StringReplace(Name, ExtractFilePath(Name), '', [rfReplaceAll]);
  end;
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Do 29.01.09 18:40 
user profile iconJakob_Ullmann hat folgendes geschrieben Zum zitierten Posting springen:
... TBXToolbar8 ...

:nut:
Jakob_Ullmann Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Do 29.01.09 18:46 
Naja, als erstes ist wichtig, dass es läuft. Dann kann man immernoch über eine Umbenennung nachdenken. :)