Autor Beitrag
achi 3.0
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Di 04.11.08 12:17 
Hallo habe ein kleines Problem.

Und zwar habe ich ein Program geschrieben in dem unter anderem Dateien geöffnet werden, da dies an PC´s mit Touchscreen geschieht, sind mir die Symbole in einem normalen öffnen-Dialog viel zu klein. Hat einer ne Idee wie man dies ändern kann.


danke
Jerk
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 251

Vista Ultimate, Ubuntu
Turbo Delphi 2006
BeitragVerfasst: Di 04.11.08 12:25 
Ich denke dazu müsstest du die Klasse ableiten oder du baust dir selber einen, was wohl einfacher sein sollte.
achi 3.0 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Di 04.11.08 12:30 
wie geht das denn.


habe was entdeckt wenn man im öffnen dialog die menuansicht miniatur wählt sind die symbole recht groß. müsste das bei öffnen des dialogs vorwählen.



weiß aber nicht wie
achi 3.0 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Di 04.11.08 16:05 
Danke für die Hilfe.

HAbe das Problem selber gelöst.


Mfg
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Di 04.11.08 16:35 
Schreib vielleicht noch dazu, wie du dies gelöst hast - falls mal jemand das gleiche Problem hat.

_________________
PROGRAMMER: A device for converting coffee into software.
achi 3.0 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Do 06.11.08 14:42 
mit dieser syntax kann man die größe des dialogfensters, die position und die ansicht ändern


procedure TFo_Parametereingabe.OpenDialog1FolderChange(Sender: TObject);

var
H, H2: THandle;
begin
H := FindWindowEx(GetParent(OpenDialog1.Handle), 0, PChar('SHELLDLL_DefView'), nil);
H2 := FindWindowEx(H, 0, PChar('SysListView32'), nil);

if (H <> 0) and (H2 <> 0) then
begin
SendMessage(H, WM_COMMAND, $702D, 0); // $702D ist die Miniaturansicht
Windows.SetFocus(H2);
end;

MoveWindow(GetParent(OpenDialog1.Handle), 135, 100, 675, 768, False); //position x u. y und größe x u. y
end;