Anchor/Resize FF3 vs WinLIFT

Started by Patrice Terrier, March 27, 2010, 07:35:09 AM

Previous topic - Next topic

Patrice Terrier

Hi,

The latest FF3 edition added a new control auto resize feature, and i was one of those guy asking Paul to add it.

Unfortunatly it doesn't work with WinLIFT, because the SkinEngine itself work in composited mode and all the child controls must be redrawn with respect to their z-order to preserve the transparency.

The WinLIFT "skSetAnchorControl" API has been written specifically for that purpose, and it has been checked thoroughly with FF3, DDT, SDK, C#, C++, WinDev, and GDImage sprite.

Using skSetAnchorControl is very easy, you just have to provide the handle of the specific child control and use one of the CONSTANT below:

  %ANCHOR_NONE                = 0
  %ANCHOR_WIDTH               = 1
  %ANCHOR_RIGHT               = 2
  %ANCHOR_CENTER_HORZ         = 3
  %ANCHOR_HEIGHT              = 4
  %ANCHOR_HEIGHT_WIDTH        = 5
  %ANCHOR_HEIGHT_RIGHT        = 6
  %ANCHOR_BOTTOM              = 7
  %ANCHOR_BOTTOM_WIDTH        = 8
  %ANCHOR_BOTTOM_RIGHT        = 9
  %ANCHOR_CENTER_HORZ_BOTTOM  = 10
  %ANCHOR_CENTER_VERT         = 11
  %ANCHOR_CENTER_VERT_RIGHT   = 12
  %ANCHOR_CENTER              = 13



To help you using the good one, print this:



...