Autor Beitrag
mexx
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.12.05 10:43 
Hi,

ich hoffe ich habe mit meiner Überschrift das Thema getroffen.

Ich möchte eine grafische Darstellung von Icons auf einem Grundriss eines Gebäudes haben. Die Icons repräsentieren Rechner. Somit weis der Nutzer, wer wo sitzt. Das sammeln der Informationen der rechner ist erledigt. Nur wie löse ich die grafische Darstellung der Rechner an welchen Ort sie sind?

Gruß mexx
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.12.05 11:11 
Man könnte den Grundriss des Gebäudes als Bild hinterlegen und die Icons positionieren. Die Position würde zwischen gespeichert werden. Aber mit welcher Komponente könnte ich die Icons positionieren?
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Fr 02.12.05 11:13 
hm, TImage?

_________________
Bravery calls my name in the sound of the wind in the night...
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.12.05 11:14 
Damit hätte ich das Bild. Schon klar!

Es geht um die Position der Icons auf dem Bild.
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Fr 02.12.05 11:18 
Ich meine auch TImages für die Icons.

_________________
Bravery calls my name in the sound of the wind in the night...
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.12.05 11:21 
Die Icons(Images) müssten aber zur Laufzeit entstehen. Nur die Position ist statisch.
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.12.05 11:47 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
procedure TForm1.Button1Click(Sender: TObject);
var Image : TImage;
begin
 Image := TImage.Create(Form1);
  with Image do begin
    Image.Parent := Form11;
    Width := 100;
    Height := 100;
    Image.Picture.LoadFromFile('C:\WINDOWS\Zapotek.bmp');
//Position
    Show;
  end;
end;
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Fr 02.12.05 11:51 
Macht doch nix, dann setz doch einfach Top und Left der Images...

oder versteh ich da das Problem nicht so ganz? :)

_________________
Bravery calls my name in the sound of the wind in the night...
mexx Threadstarter
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 1183



BeitragVerfasst: Fr 02.12.05 11:54 
Nö, is eigentlich gelöst. Nur bekomme ich folgende Fehlermeldung:

[Fehler] Unit1.pas(207): Inkompatible Typen: 'TWidgetControl' und 'TInter'

TInter ist eine Form
noidic
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 851

Win 2000 Win XP Vista
D7 Ent, SharpDevelop 2.2
BeitragVerfasst: Fr 02.12.05 13:25 
TWidgetControl klingt nach CLX... nicht versehentlich CLX und VCL gemischt?

_________________
Bravery calls my name in the sound of the wind in the night...