Q&A

  • ActiveX html을 이용해서 ActiveX Form 크기를 조절하려고 합니다

classid="clsid:43C92D85-C7BA-11D5-B93B-0090272BED04"

id="testobj"

codebase="********Proj1.cab#version=1,0,5,0"

width=660

height=500

align=center

hspace=0

vspace=0

>









이와 같이 param 값을 주는 데요





이 두 부분이 Form의 크기를 AcxtveX Form 으로 값을 넘기는 곳이구요



그 다음에



procedure T***_ocx.Set_FormWidth(const Value: WideString);

var

Form_Width : string;

begin

Form_Width := olestrtostring(PWideChar(value));

Form_Width_i := strtoint(Form_Width);

Width := Form_Width_i;

end;



procedure T***_ocx.Set_FormLef(const Value: WideString);

var

Form_Left : string;

begin

Form_Left := olestrtostring(PWideChar(value));

Form_Left_i := strtoint(Form_Left);

Height := Form_Left_i;

end;



라고 들어온 값을 처리하는 데요 안되요



고수님들 좀 갈켜 주세요







2  COMMENTS
  • Profile
    김지태 2001.10.25 20:42
    pantheon wrote:

    >
    > classid="clsid:43C92D85-C7BA-11D5-B93B-0090272BED04"

    > id="testobj"

    > codebase="********Proj1.cab#version=1,0,5,0"

    > width=660

    > height=500

    > align=center

    > hspace=0

    > vspace=0

    > >

    >

    >

    >

    >

    > 이와 같이 param 값을 주는 데요

    >

    >

    > 이 두 부분이 Form의 크기를 AcxtveX Form 으로 값을 넘기는 곳이구요

    >

    > 그 다음에

    >

    > procedure T***_ocx.Set_FormWidth(const Value: WideString);

    > var

    > Form_Width : string;

    > begin

    > Form_Width := olestrtostring(PWideChar(value));

    > Form_Width_i := strtoint(Form_Width);

    > Width := Form_Width_i;

    > end;

    >

    > procedure T***_ocx.Set_FormLef(const Value: WideString);

    > var

    > Form_Left : string;

    > begin

    > Form_Left := olestrtostring(PWideChar(value));

    > Form_Left_i := strtoint(Form_Left);

    > Height := Form_Left_i;

    > end;

    >

    > 라고 들어온 값을 처리하는 데요 안되요

    >

    > 고수님들 좀 갈켜 주세요

    >

    >

    >



    안냐세영. UserSpace임덩.



    오늘 날씨 정말 좋군영...



    제가 ActiveX를 개발할때의 경험을 비추어 볼때,



    4GL Tool(VC++, Delphi, VB)에서는 위에서와 같이 Size를 조절할수 있지만,



    Web환경에서는 위서에 setting한



    > width=660

    > height=500



    것 외에는 소용이 없는걸로 알고 있슴덩.



    그리고 위에서와 같이 절대값을 주면 Explorer의 크기가 변할때



    ActiveX가 깨지는데, 확인 해보셨나영?



    이건 Boland에서도 어쩔 수 없는 걸로 알고 있습덩.



    그럴땐 "%"로 주심이...




    classid="clsid:CD43B6FE-BA44-479B-83C6-EA149CA0768E"

    codebase="http://.../ActiveX/000PlugX.cab#version=1,1,34,0"

    width="100%"

    height="100%"

    align="center"

    hspace=0

    vspace=0

    >





    ...

    ...

    ...





    그럼 수고하세영...



  • Profile
    pantheon 2001.10.25 23:14
    답변 너무 너무 감사 드립니다.



    오전 내내 괜한 삽질만 한것 같습니다.



    식사는 하셨습니까?



    이렇게 좋은 날씨에 일만 하고 있으려니 참...



    님도 없구



    오늘 저녁에도 tv로 야구나 봐야겠습니다.



    진정으로 감사 드립니다.