1 Reply Latest reply on Jul 4, 2008 8:11 AM by Gregory Lafrance

    Image Tooltip

    createColumnItemRenderer
      I have created a Control to have a tooltip of format:
      Image - Content
      Date: Content
      Description: Content
      Where the font of content and the font of resource strings (Date and Description) is diffrenet.
      I did this using VBOX and Canvases as following:
      --------------------
      <mx:Canvas width="300">
      <mx:HBox id="hboxactivityName" verticalGap="0" horizontalGap="0" verticalScrollPolicy="off" horizontalScrollPolicy="off">
      <mx:Image source="{image}" />
      <mx:Text fontWeight="bold" text="{activityName}" width="275" styleName="subHeader"/>
      </mx:HBox>
      </mx:Canvas>
      <mx:Canvas id="canvasactivityDate" width="300" verticalScrollPolicy="off" horizontalScrollPolicy="off">
      <mx:HBox id="hboxactivityDate" width="300" verticalGap="0" horizontalGap="0" autoLayout="true" minWidth="0" verticalScrollPolicy="off" horizontalScrollPolicy="off">
      <mx:Label fontWeight="bold" text="{headerDate}" styleName="subHeader"/>
      <mx:Label text="{activityDate}" styleName="bodyText"/>
      </mx:HBox>
      </mx:Canvas>
      <mx:Canvas id="canvasactivityDesc" width="300" verticalScrollPolicy="off" horizontalScrollPolicy="off">
      <mx:HBox id="hboxActivityDesc" width="300" verticalGap="0" horizontalGap="0" autoLayout="true" minWidth="0" verticalScrollPolicy="off" horizontalScrollPolicy="off">
      <mx:Label fontWeight="bold" width="100" text="{headerDesc}" styleName="subHeader"/>
      <mx:Text text="{activityDesc}" width="200" styleName="bodyText"/>
      </mx:HBox>
      </mx:Canvas>
      ---------------------
      However when I don't have second and third row content, I get a large space there. Can anybody suggest ways to fix please?