Autor Beitrag
Saarpoint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Mo 05.06.06 19:51 
Hallo!

Ich möchte meine Optionen thematisch auf der Form trennen.
Hierzu möchte jedoch keine GroupBoxen, etc. verwenden, sondern eine Trennline (wie <HR> bei HTML-Files).
Wie macht man das?

Gruß, Andreas

PS: Passiert euch das manchmal auch? Konnte den Text nicht abschicken, sondern musste mich neu einloggen, obwohl ich's war.


Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am Di 06.06.2006 um 09:57

_________________
Standart := false; Standard := true;
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 05.06.06 19:53 
Ein Label nehmen und mit dem Unterstrich eine Linie ziehen ___________________________________________________
Oder zur Laufzeit mit canvas die Linie malen.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Saarpoint Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Mo 05.06.06 20:05 
...also bin ich doch nicht so doof, wie ich dachte :lol:

Genau so hab ich es nämlich gemacht (den Label mit Unterstrichen aufgefüllt).
Dies kam mir aber irgendwie unprofessionell vor, aber da es wohl hierfür kein Objekt gibt,
scheint es wohl so zu sein. Hätte ja sein können, dass es irgenwie ein bestimmtes Kürzel gibt, wie
beim erstellen von Menüs um eine Trennline einzufügen.

Ok, danke! Ich mach's dann wie bisher... :wink:

Gruß, Andreas

_________________
Standart := false; Standard := true;
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Mo 05.06.06 20:27 
Oder Bevel benutzen.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Di 06.06.06 08:08 
genau. Benutz ein Bevel (auf der Seite Zusätzlich) und stell den Style auf bsTopLine;

_________________
In the beginning was the word.
And the word was content-type: text/plain.
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Di 06.06.06 08:24 
für Canvas und Laufzeit hau ich mal Frame3D aus der Unit ExtCtrls in die Runde!

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Saarpoint Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Di 06.06.06 19:46 
Also bsTopLine habe ich nur bei Shape.
Aber so 'ne "Fuge" wie bei den GroupBoxen ergibt dies auch nicht...

_________________
Standart := false; Standard := true;
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mi 07.06.06 06:10 
ausblenden Delphi-Quelltext
1:
2:
3:
  R := Rect(20,20,300,300);
  Frame3D (Canvas,R,clBtnShadow,clBtnHighlight,1);
  Frame3D (Canvas,R,clBtnHighlight,clBtnShadow,1);

sieht aus wie bei einer Groupbox!

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Saarpoint Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: So 18.06.06 05:33 
Sorry, bin jetzt erst dazu gekommen, es zu testen.
Also irgendetwas fehlt da noch...

Quelltextmäßig schluckt Delphi das ganze zwar, aber wenn ich die Form öffne, sieht man nix.
Habe sogar einzelne Werte verändert.

Komisch...

_________________
Standart := false; Standard := true;
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: So 18.06.06 08:47 
Wo rufst Du denn das auf, ich würde es ins OnPaint-Ereignis der Form schreiben!

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: So 18.06.06 10:44 
user profile iconSaarpoint hat folgendes geschrieben:
Also bsTopLine habe ich nur bei Shape.
Aber so 'ne "Fuge" wie bei den GroupBoxen ergibt dies auch nicht...

:gruebel:
ausblenden Delphi-Quelltext
1:
MyBevel.Style := bsTopLine					

_________________
Na denn, dann. Bis dann, denn.
Saarpoint Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: So 18.06.06 16:45 
@Kroko: ... ins "OnCreate" :oops:

Im "OnPaint" funzt es! Danke! :D

Für Leute die irgend wann mal das gleiche Problem haben sollten wie ich:


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure TForm1.FormPaint(Sender: TObject);
var R: TRect;
begin
  R := Rect(428,212,10,212);  // Length, Top, Left, Top
  
  Frame3D (Canvas,R,clBtnShadow,clBtnHighlight,1);
  Frame3D (Canvas,R,clBtnHighlight,clBtnShadow,1);
end;

_________________
Standart := false; Standard := true;
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: So 18.06.06 21:54 
Wo ist denn das der Vorteil zum Bevel?

_________________
Na denn, dann. Bis dann, denn.
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Di 20.06.06 07:14 
user profile iconalzaimar hat folgendes geschrieben:
Wo ist denn das der Vorteil zum Bevel?
Man benötigt keine Komponente! :wink:

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
Saarpoint Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 199

Win XP Home, Vista Home Premium
D5 Std, D7 pers., D2005 Pro. SP3, TurboDelphi
BeitragVerfasst: Di 20.06.06 21:49 
Rischdiiisch! :wink:

_________________
Standart := false; Standard := true;
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Di 20.06.06 22:48 
user profile iconKroko hat folgendes geschrieben:
user profile iconalzaimar hat folgendes geschrieben:
Wo ist denn das der Vorteil zum Bevel?
Man benötigt keine Komponente! :wink:

Hast Du was gegen Komponenten? :bawling:

_________________
Na denn, dann. Bis dann, denn.
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mi 21.06.06 06:07 
user profile iconalzaimar hat folgendes geschrieben:
user profile iconKroko hat folgendes geschrieben:
user profile iconalzaimar hat folgendes geschrieben:
Wo ist denn das der Vorteil zum Bevel?
Man benötigt keine Komponente! :wink:

Hast Du was gegen Komponenten? :bawling:

Nein, aber wegen ein paar Linien ein Kompo? Muss ja jeder selber wissen!

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Mi 21.06.06 06:58 
Eben. Ich verwende Komponenten und vorgefertigte Lösungen, wo es nur geht, damit ich mit meiner Zeit etwas Sinnvolles anfangen kann, :wink:

_________________
Na denn, dann. Bis dann, denn.