tyloya Master

Registrado: 20 Ago 2002Mensajes: 175
|
Publicado: Lun 28 Oct, 2002 6:19 pm Asunto: Redistribución de forms según resolución de pantalla |
|
|
Tengo un form MDI sobre el que se crean unos form hijos,para ser
exacta 9 forms,cuando los creo les doy una posición determinada dentro de la ventana principal del form MDI,......ahora el problema está en que cuando ejecuto la aplicación en un monitor con mayor resolución, estos forms permanecen apiñados en la misma posición que si la ejecutara en uno con menor resolución.
Para que me entendáis, así es como los creo y la posición que les doy,....pero tiene que haber una forma de que se redistribuyan de forma adecuada a la resolución de la pantalla.
void __fastcall Tfrmdct::Crearformsdct(TObject *Sender)
{
OrgImg= new Tfrmdct(Application);
DctCoef= new Tfrmdct(Application);
DctCoefSel=new Tfrmdct(Application);
DctCoefQuan=new Tfrmdct(Application);
DctCoefRest=new Tfrmdct(Application);
DctInvTrans=new Tfrmdct(Application);
Diferen=new Tfrmdct(Application);
Filtro=new Tfrmdct(Application);
Quant=new Tfrmdct(Application);
OrgImg->Left=Screen->DesktopLeft;
OrgImg->Top=Screen->DesktopTop;
OrgImg->Caption="Original Image";
DctCoef->Left=Screen->Width/2;
DctCoef->Top=OrgImg->Top;
DctCoef->Caption="DCT Coeficients";
DctCoefSel->Left=(OrgImg->Width)+(DctCoef->Width);
DctCoefSel->Top=OrgImg->Top;
DctCoefSel->Caption="Coeficientes DCT seleccionados";
DctCoefQuan->Left=Screen->DesktopLeft;
DctCoefQuan->Top=(OrgImg->Height)+(OrgImg->Top);
DctCoefQuan->Caption="Coeficientes DCT cuantificados";
DctCoefRest->Left=DctCoefQuan->Width;
DctCoefRest->Top=(OrgImg->Height)+(OrgImg->Top);
DctCoefRest->Caption="Coeficientes DCT Restaurados";
DctInvTrans->Left=(OrgImg->Width)+(DctCoef->Width);
DctInvTrans->Top=(OrgImg->Height)+(OrgImg->Top);
DctInvTrans->Caption="Coeficientes DCT Trans";
Diferen->Left=Screen->DesktopLeft;
Diferen->Top=OrgImg->Height + DctCoef->Height +DctCoef->Top;
Diferen->Caption="Diferencias";
Filtro->Left=Diferen->Width;
Filtro->Top=(DctCoefRest->Height)+(DctCoefRest->Top);
Filtro->Caption="Filtro";
Quant->Left= (Filtro->Width) + (Diferen->Width);
Quant->Top=(DctCoefRest->Height)+(DctCoefRest->Top);
Quant->Caption="Cuantificación";
OrgImg->Show();
DctCoef->Show();
DctCoefSel->Show();
DctCoefQuan->Show();
DctCoefRest->Show();
DctInvTrans->Show();
Diferen->Show();
Filtro->Show();
Quant->Show();
} |
|