Graphics

 View Only
  • 1.  Radio Button Font Tags in Sequence Mode

    Posted 07-10-2018 01:05
    Working in Xpression Designer v6.5 build 3600...

    I want to assign font tags with user input controls and a radio button global list. I've built a scene with text fields body1 through body8, size1 through size8, and body1output through body8output. With visual logic, I concatenated size1 and body1 to body1output and so on. In layout mode with the size text fields as static text, I can type in the font tag and the concatenated font tag with text feeds as expected to the output field in the font size I want.

    I set up the size fields with user input control radio button global list and try playing it out from sequence more. Font sizes don't change in the sequence preview or on the virtual output.

    Is the concatenate not happening? or do font tags not work in sequence mode?

    Any ideas?


  • 2.  RE: Radio Button Font Tags in Sequence Mode

    Posted 07-10-2018 12:30
    When hooking up the visual logic, make sure the output of the concatenate block is feeding into the "textwithtags" property of the text object, and not into the "text" property.
    #XPression


  • 3.  RE: Radio Button Font Tags in Sequence Mode

    Posted 07-10-2018 13:04

    TextWithTags is not available in Visual Logic in Xpression version 6.5

    Don't concatenate directly a text object that contains a font tag formula like "{myFont}" : tags will not be taken into account (it seems to be parsed by xpression and the information is lost ).
    A trick to make it work is to concatenate string value "{" with the text object "myfont" and with string value "}




    See project sample with global list radio button : [ATTACH]n16528[/ATTACH]

    Hope it helps


    #XPression


  • 4.  RE: Radio Button Font Tags in Sequence Mode

    Posted 07-11-2018 00:15
    The workaround makes it possible! Thank you. I'd probably be lost since, I think we're out of upgrades. Now I just have to work out the visual logic to rule respacing of subsequent lines with the font tagged text---the bounding box height doesn't seem to change with a larger font.
    #XPression


  • 5.  RE: Radio Button Font Tags in Sequence Mode

    Posted 07-31-2018 01:18
    I have my radio button size/font tags working beautifully, but I have one more stumbling block---the size of the font in original text dictates the leading of multiple rows of text within the text field. I thought I should be able to GetTextHeight and then SetLeading.

    I tried the script below in OnSetText. It compiled, but it didn't do what I need.
    dim Body1Output as xpTextObject
    Self.GetTextHeight(Body1Output.text)
    Body1Output.Leading=Body1Output.textHeight
    #XPression