簡體   English   中英

在Flex中調整子畫布的大小

[英]Resizing a child canvas in Flex

我正在試圖弄清楚如何調整兒童畫布的尺寸,但我無法弄明白。

我在這樣的父畫布周圍有一堆迷你畫布:

<mx:Canvas width="10" height="10" backgroundColor="#040404" top="0" left="0" id="anchorTL" />
    <mx:Canvas width="10" height="10" backgroundColor="#040404" right="0" top="0" id="anchorTR" />
    <mx:Canvas width="10" height="10" backgroundColor="#040404" horizontalCenter="0" top="0" id="anchorTM" />
    <mx:Canvas width="10" height="10" backgroundColor="#040404" verticalCenter="0" left="0" id="anchorML" />
    <mx:Canvas width="10" height="10" backgroundColor="#040404" left="0" bottom="0" id="anchorBL" />
    <mx:Canvas width="10" height="10" backgroundColor="#040404" horizontalCenter="0" bottom="0" id="anchorBM" />
    <mx:Canvas width="10" height="10" backgroundColor="#040404" bottom="0" right="0" id="anchorBR" />
    <mx:Canvas width="10" height="10" backgroundColor="#040404" right="0" verticalCenter="0" id="anchorMR" />

每種類型的調整大小一個(左上角,右下角等)

如何在點擊並按住時調整畫布大小?

已經有一個組件可以為你做這個(我之前嘗試過編碼,它並不像表面上看起來那么簡單)。

http://www.objecthandles.com/

^讓我知道這是否適合您或您是否有更具體的需求。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM