Wish Process Global Constants Visible In Designer

Discussion in 'Bugs & wishlist' started by RandomCoder, Apr 3, 2015.

  1. RandomCoder

    RandomCoder Well-Known Member Licensed User

    I've started to use the designer more lately and one thing that I've found somewhat annoying is that Process Globals are not visible from within the designer script. I think that I probably understand why. But having said that, now that we can declare Constants I wondered if it would be possible to have these visible in the designer script? They're static for the life of the App and so I would have thought acceptable to use in designer scripts?
    Currently I'm adding these variable definitions at the start of my designer script...
    Code:
    ' Variables
    If ActivitySize > 6.5 Then
        intDefaultTextSize = 
    16
        intDefaultSpacing = 
    8dip
        intDefaultLabelWidth = 
    80dip
        intDefaultTextWidth = 
    240dip
        intDefaultToolBarHeight = 
    64dip
    Else
        intDefaultTextSize = 
    14
        intDefaultSpacing = 
    4dip
        intDefaultLabelWidth = 
    70dip
        intDefaultTextWidth = 
    210dip
        intDefaultToolBarHeight = 
    56dip
    End If
    intDefaultTxtHeight = 
    48dip
    intDefaultLblHeight = 
    48dip
    intDefaultButtonHeight = 
    36dip
    intDefaultButtonWidth = 
    80dip
    intDefaultButtonTextSize = 
    14
    This is to keep views, spacings etc in line with the Material Design guidelines. But should I want to change a default value in the future I will have to go into each script and update that value. Whereas if these were declared in Process Globals as constants it would be very easy to update my app. For instance I may want to increase the height of the different toolbars across all my activities.
     
    Peter Simpson and Erel like this.
  2. RandomCoder

    RandomCoder Well-Known Member Licensed User

    A like from @Erel, I feel honered. :D
    Does that mean it's possible for a future addition? I think it would make the designer scripts much more adjustable.
     
    Peter Simpson likes this.
  3. Erel

    Erel Administrator Staff Member Licensed User

    It is a nice idea. I do not know whether or when it will be added...
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice