Jump to content

Secondary Form RadioGroupBox Sizing at RunTime


andyhill

Recommended Posts

Within my Secondary Form Create Event I re-populate a RadioGroupBox at runtime based on entry parameters as follows:-

  grOptions.BeginUpdate;
  grOptions.Items.Clear;
  if fMain.BuildProtocolFlag = True then begin
    grOptions.Items.Add('ADD To Custom Protocol');
    grOptions.Height:= 50;
    grOptions.ItemIndex:= 0;
    grOptions.EndUpdate;
  end else begin
    grOptions.Items.Add('ReName Custom Protocol');
    grOptions.Items.Add('ReEdit Custom Protocol');
    grOptions.Items.Add('DELETE Custom Protocol');
    grOptions.Height:= 90;
    grOptions.ItemIndex:= -1;
    grOptions.EndUpdate;
  end;
  //
  btnProcess.Top:= grOptions.Top + grOptions.Height + 10;
  btnCancel.Top:= grOptions.Top + grOptions.Height + 10;
  //
  Height:= btnProcess.Top + btnProcess.Height + 45;


All works exactly as intended.

QUESTION: As my development PC is a Microsoft Surface Notebook which runs at a super high screen dpi, I am questioning my padding values in red for non server low resolution renditions, is there a universal way to do this effectively - that is, cater for all sorts of dpi rendered browsers (without flex) ?

  

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...