Jump to content

Recommended Posts

Posted

    n:= (dbGridGroups.Height div (StartUpFontHeight * 2));
    dbGridGroups.WebOptions.PageSize:= n-4; // Paints Footer row even when there are no summaries or footers
    TAccessGrid(dbGridGroups).Columns.EndUpdate;

    ////////////////////////////////////////////////////////////////////////////
    pMain.Height:= (n * (StartUpFontHeight * 2)) + 4;

    //fMain.BeginUpdate; // uniAlignmentClient (needed for mobile emulation)
    //fMain.ClientHeight:= pMain.Height + 10; // FAILS TO CHANGE
    //fMain.EndUpdate;

    UniSession.AddJS('ajaxRequest(fMain.form, ''setHeight'', '+IntToStr(pMain.Height + 10)+');'); // FAILS TO CHANGE

Posted

I thought it was very clear, change height of Form at runtime, my temporary Desktop work around below.

    BeginUpdate; 
    Height:= (n * (StartUpFontHeight * 2)) + 14; 
    EndUpdate;
 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...