andyhill Posted December 7, 2021 Share Posted December 7, 2021 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) ? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.