자유롭게 질의 및 응답을 할 수 있는 게시판입니다. 개발자 여러분의 답변이 큰 도움이 됩니다. 
  • 제품설치/등록 오류 문의: 설치/등록 Q&A 이용 (제품 구매 고객 한정)

* 사용 개발툴 버전 : 시애틀

* 테스트 단말기 모델명 : ios5c...ios...

* 테스트 단말기 O/S 버전 :

 

procedure TMultiDetailItemAppearance.UpdateSizes(const FinalSize : TSizeF);
var
  LInternalWidth: Single;
  LImagePlaceOffset: Single;
  LImageTextPlaceOffset: Single;
begin
  BeginUpdate;
  try
    inherited;
    // Update the widths and positions of renderening objects within a TListViewItem
    if Image.ActualWidth = 0 then
    begin
      LImagePlaceOffset := 0;
      LImageTextPlaceOffset := 0;
    end
    else
    begin
      LImagePlaceOffset := cDefaultImagePlaceOffsetX;
      LImageTextPlaceOffset := cDefaultImageTextPlaceOffsetX;
    end;
    Image.InternalPlaceOffset.X := GlyphButton.ActualWidth + LImagePlaceOffset;

    if Image.ActualWidth > 0 then
      Text.InternalPlaceOffset.X := Image.ActualPlaceOffset.X + Image.ActualWidth + LImageTextPlaceOffset
    else
      Text.InternalPlaceOffset.X := 0 + GlyphButton.ActualWidth;

    MultiDetail1.InternalPlaceOffset.X := Text.InternalPlaceOffset.X;
    MultiDetail2.InternalPlaceOffset.X := Text.InternalPlaceOffset.X;
    MultiDetail3.InternalPlaceOffset.X := Text.InternalPlaceOffset.X;

 

    LInternalWidth := FinalSize.Width - Text.ActualPlaceOffset.X - Accessory.ActualWidth;

    if Accessory.ActualWidth > 0 then
      LInternalWidth := LInternalWidth - cTextMarginAccessory;

 

    Text.InternalWidth := Max(1, LInternalWidth);


    MultiDetail1.InternalWidth := Text.InternalWidth;
    MultiDetail2.InternalWidth := Text.InternalWidth;
    MultiDetail3.InternalWidth := Text.InternalWidth;

 

    If FinalSize.Width < 330 Then   //아이폰이 4인치라면
     begin
       MultiDetail3.InternalPlaceOffset.X := 220;   // MultiDetail3.PlaceOffset.X := 220 요렇게 하고 싶은데

       showmessage('4인치');  //  요건 실행이 되는데 수정은 안되네요 ^^)
     end;

  finally
    EndUpdate;
  end;
end;

 

부탁합니다...

번호 제목 글쓴이 날짜 조회 수
공지 [프로그래밍 강의] 2021.6~2021.12 관리자 2015.01.22 17276
공지 유용한 관련 사이트 관리자2 2014.03.20 56166
공지 본 게시판은 개발자 여러분들의 질문과 답변을 공유하는 공간입니다. 관리자 2012.01.10 99588
1759 열거형 이름 가져오기 [1] woofer 2020.04.08 344
1758 앱버전 가져오는 방법 문의 [4] 사랑남 2015.11.13 344
1757 borland C++에서 장비 interface PC(usart,usb,등) 어떻게 연동 시킬수 있나요? [1] 험프리 2016.09.21 345
1756 [XE8 출시세미나] 비콘의 종류가 매우 다양한데요 엠바카데로에서 테스트한 케이스는 얼마나 되나요? [1] Humphery 2015.04.30 345
1755 VtChart에 관한 문의 [4] file noblemanpjh 2015.07.31 345
1754 Delphi 10 Seattle 리포팅툴 [1] 라시드 2015.10.06 345
1753 델파이 10.3.2 에서 메인메뉴 컴포넌트에서 드래그앤드롭을 쓰고 싶은데 방법을 모르곘습니다ㅠ file ggg 2020.11.05 345
1752 미들웨어 서버컴퓨터에 구축하는방법 질문드려요.. [1] syc 2015.08.29 346
1751 IOS 개발중 오류....확인부탁드립니다. [1] 박정희 2016.10.24 346
1750 XE 10.1 Berlin Android SDK Manager 를 찾을 수가 없습니다. [2] jongik 2018.05.28 346
1749 TeeChart로 가능할까요? [1] Brian 2019.04.04 346
1748 PageControl 컴포넌트에서...? [2] 헨씀히포 2019.12.06 346
1747 보고서툴은 Fast Report 밖에 없나요 ? [1] 준이킴 2016.10.19 347
1746 광고영상 재생 프로그램 강제 종료 오류 관련 문의 [2] file 소란코더 2017.11.24 347
1745 메세지 관련질문입니다. [1] 희망나라 2015.08.22 347
1744 델파이 10 엑셀변환 관련 [3] 개미 2020.11.27 347
1743 bluetoothLE 통신 [1] 파랑 2016.09.29 348
1742 tokyo 10.2 indy udp 관련 문의 [1] goinma 2018.06.20 348
1741 webbrowser 이미지 보기 문의 [1] file 사랑남 2015.06.02 348
1740 sns공유 기능문의 [1] 사랑남 2015.12.07 348