FaceBook Style slide out

Hello,

I'm using iCL and would like to create a FaceBook style slide out to show a tableview.

In my app, I have 
UIView (main view)
- Tab Bar
  -- Toolbar
  -- MapView
  -- Browser
UIView (left side view to hold TableView)
- TableView

At startup, I have the main view (UIView) aligned to client and the left side UIView (tableView) behind this main view.
I have a toolbar button that when pressed should animate the main view to the right about 350 pixels so the underlying UIVew(tableView) can be seen.

How can this be done?
Regards,
Bryan

begin
  if uiViewMain.Position.X < 200 then
  begin
    //slide the view to the right
    uiViewMain.SetBounds(uiViewMain.Position.X, uiViewMain.Position.y, frmMain.Width, frmMain.Height);
    TUIView.OCClass.beginAnimations(nil, nil);
    TUIView.OCClass.setAnimationDuration(0.4);
    uiViewMain.SetBounds(300, 0, frmMain.Width,frmMain.Height);
    TUIView.OCClass.commitAnimations;
  end
  else
  begin
    //slide the view to the left
    uiViewMain.SetBounds(uiViewMain.Position.x, uiViewMain.Position.y, frmMain.Width,frmMain.Height);
    TUIView.OCClass.beginAnimations(nil, nil);
    TUIView.OCClass.setAnimationDuration(0.4);
    uiViewMain.SetBounds(0, 0, frmMain.Width,frmMain.Height);
    TUIView.OCClass.commitAnimations;
  end;
end;

Hi, 

You are trying to animate the main view, which is client-aligned. Setting the bounds will not have any effect when an alignment is applied. Please set None to the Align property on uiViewMain and position the main view from the form resize event.

Kind Regards, 
Pieter