Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.61 KB | None | 0 0
  1. procedure GetActualRatio();
  2. var
  3.   str: String;
  4. begin
  5.   Str:= (HeightSet+'x'+WidthSet);
  6.   if Str = '1920x1080' or '1600x900' or '1366x768' or '1280x720' or '1024x600' or '960x540' or '854x480' or '640x360') then Ratio.ItemIndex = 0
  7.   else if Str = '1920x1020' or '1680x1050' or '1440x900' or '1280x800' or '1152x720' or '1024x640' then Ratio.ItemIndex = 1
  8.   else if Str = '1600x1200' or '1400x1050' or '1280x960' or '1152x864' or '1024x768' or '960x720' or '800x600' or '720x540' or '640x480' then Ratio.ItemIndex = 2
  9.   else if Str = '1920x1536' or '1280x1024' then Ratio.ItemIndex = 3 else Ratio.ItemIndex = null;
  10. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement