User Tag List

Results 1 to 3 of 3

Thread: String size restriction (so the text never get out of the box)

  1. #1
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Mystr's Avatar
    Join Date
    May 2014
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    String size restriction (so the text never get out of the box)

    Hello everybody,

    I'd like to prevent my string object from adjusting to text size. I need to use the string object for multiple reasons.

    I use it to dynimacally display texts. These texts can change therefore, be longer or shorter. I display my string object overlapping some other objects that never move. If the text becomes too long, I don't want it to overflow from the static object.

    So, how can I restrain the text to the string box size ?

    Thanks in advance for your answers =)

    String size restriction (so the text never get out of the box).mfa

  2. #2
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Brovic's Avatar
    Join Date
    Jul 2006
    Location
    France
    Posts
    315
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You could restrain the size of the text with the Left$() function if you know the max number of characters.
    But at the end I see no reason to not use alternative text objects like the Edit Box, the Rich Edit Object, or the Active System Box. Those with the correct settings can display text without overflow and may be more powerfull and flexible than the String Object.

  3. #3
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Mystr's Avatar
    Join Date
    May 2014
    Posts
    64
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess you're completely right... I remeber I used to test these objects but they didn't fit my needs. At least, that's what I thought... The major issue was that hey would always display "in front" or that they couldn't be clickable, but neither is the string object.

    Following your answer I tried Active System Box again and it seems to perfectly suits the requirements of my project.

    Thank you for your answer. I'll come back here if needed, as I don't know a lot about these objects.

Similar Threads

  1. Text String - Different font size on certain PCs. Help!
    By CBSection31 in forum Fusion 2.5
    Replies: 5
    Last Post: 28th September 2016, 03:58 AM
  2. Replies: 1
    Last Post: 6th July 2015, 03:06 PM
  3. Get size in pixel of a string (or convert string length to pixel)
    By iOSC in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 21st March 2013, 07:30 PM
  4. Condition ID restriction
    By James in forum Released Extensions
    Replies: 1
    Last Post: 4th December 2007, 06:28 PM
  5. movement restriction
    By splokk in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 6th September 2007, 06:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •