Announcement

Collapse
No announcement yet.

Resize font size

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Resize font size

    Hi pro,,
    i'm still new to lua & AMS ,,
    if i designed app with resolution 800*600 to work on all monitors and make it resizable with script from Internet ,, the issue is when make it full screen or expand the app ,the font size of any object doesn't change and its small to the new resolution ,,, so how can i overcome this problem ?!! What is the relation between resolution and font size?!!!!
    How to make font size resizable with change of resolution?!!!!
    I'm sorry for my bad English

  • #2
    Any help please

    Comment


    • #3
      For what I know there is no automatic way to resize your objects. You have to code it.
      For example you do something like: System.GetDisplayInfo

      Based on that info you can set the font size of your objects.

      David Ramirez

      Comment


      • #4
        I can resize all objects but i cant resize the font in objects ,,,

        Comment


        • #5
          Have you tried setting the properties for objects? You would set font size if that is all you need.

          for example:

          tblLabelProps = {};
          tblLabelProps.FontSize = 16;

          Label.SetProperties("labelNew", tblLabelProps);

          David Ramirez

          Comment


          • #6
            First thanks for ur help David.
            i know that way but it make the fontsize fixed no matter what i increase or decrease page size.
            i wanna make fontsize to be dynamic to page size,
            Ex: if page size 800*600(default) then the fontsize =12
            &if( User-A) increase the scale of page to be full screen (1270*720) the fontsize increase also by a proper value to match the new resolution,
            And last if (User-B) make the program full screen (1366*768) the fontsize should increase to match the new resolution ,.....
            conclusion of all that "how to make fontsize of any object dynamic to the new resolution of the user monitor " PC or laptop or any monitor"

            Comment


            • #7
              search for ulrich dpi thread

              Comment


              • #8
                it might help if you share the apz. file.

                David Ramirez

                Comment


                • #9
                  Hi try this from Bio

                  Comment


                  • #10
                    Thank you david herrin charliechaps for your help .
                    i got the idea from charliechaps reply ,,,, its some kind satisfying me make the font size to be (10*ratio of width).

                    Ps: herrin i searched for ulrich dpi thread but find nothing ,, if you could help me more it would be great.

                    Comment

                    Working...
                    X