Autor Beitrag
JaketheSnake
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: Do 23.02.06 15:30 
Hallo erstmal ,

ich wollte fragen wie ich es schaffe auf ein image zu schreiben ?

erläuterung :

Angenommen ich habe ein image , dann will es es jetzt so hingriegen das man diese standart form ( von delphi)öffnet und man schriftart usw. auswählen kann und dann einfach über das image schreiben kann .

Ich hoffe ihr könnt mir helfen

Gruß JaketheSnake


Moderiert von user profile iconGausi: Topic aus Sonstiges (Delphi) verschoben am So 19.03.2006 um 13:53

_________________
Good, better , best
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: Do 23.02.06 15:33 
Maybe so:
ausblenden Delphi-Quelltext
1:
image1.canvas.textout('...');					

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

XP
D5 Prof.
BeitragVerfasst: Do 23.02.06 15:37 
leider nein :


[Fehler] Unit1.pas(37): Inkompatible Typen: 'Integer' und 'String'

_________________
Good, better , best
starsurfer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 334

Win 95, Win 98, Win XP, Win Vista, Linux
D5 Enterprise ,D2005, D6 Personal, Visual C++ Express 2005, C++ Builder 6 E, Dev-C++
BeitragVerfasst: Do 23.02.06 15:39 
ausblenden Delphi-Quelltext
1:
procedure TextOut(X, Y: Integer; const Text: string);					


Delphi Hilfe ist wärmstens zu empfehlen....

_________________
GEIZ IST GEIL! - Ihr Sozialamt
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Do 23.02.06 15:41 
ich bin mir auch fast sicher das textout 3 parameter bracht wobei die ersten 2 integer sind, bemüh mal die delphi hilfe, das müste weiter helfen
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: So 19.03.06 13:29 
hallo jungs , sorry

ich weiß es kommt immer etwas sch***e wenn man auf die hilfe funktion verwiesen wurde aber man es trotzdem nicht hinbekommt .

Leider ist es genauso bei mir , ich weiß einfach nicht was genau ihr meint ... , wie ich das angehen soll ...
Könntet ihr mir vielleicht noch einen klitzekleinen Tipp geben ?

Bitte Bitte

Gruß JaketheSnake

_________________
Good, better , best
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: So 19.03.06 13:35 
Also in diesem Fall ist die Hilfe und das was dir hier schon geschrieben steht vollständig ausreichend! Mit den ersten beiden Paramtern gibst du die Position an, an der der dritte Parameter gechrieben wird!

_________________
Markus Kinzler.
JaketheSnake Threadstarter
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 149

XP
D5 Prof.
BeitragVerfasst: So 19.03.06 13:49 
Hallo ich hab jetzt zwei möglcihkeiten , die beide nicht funktionieren , vielleicht könnt ihr mir so besser helfen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TextOut(X, Y: Integer; const Text: string);
begin
    X:= 12;
    Y:= 12;

    image1.canvas.textout('blabla');
end;

oder :
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
procedure TextOut(X, Y: Integer; const Text: string);
begin
    X:= 12;
    Y:= 12;
end;

procedure TForm1.BitBtn2Click(Sender: TObject);
begin
        image1.canvas.textout('blabla');
end;


Moderiert von user profile iconGausi: Code- durch Delphi-Tags ersetzt

_________________
Good, better , best
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: So 19.03.06 13:51 
ausblenden Delphi-Quelltext
1:
image1.canvas.textout(100,100,'String');					
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: So 19.03.06 13:51 
Dringende Empfehlung: Grundlagen-Tutorial bzgl. Funktionen, Prozeduren und deren Parameter-Übergabe durchlesen!
ausblenden Delphi-Quelltext
1:
Image1.canvas.TextOut(10,20,'Hallo Welt');					

_________________
We are, we were and will not be.