Options

Make SourceExpr Bold

elToritoelTorito Member Posts: 191
Hi,

in SourceExp of an TextBox i have follow Source:
"Sales Header"."Required Shipment CW"

I can edit this so i have:
'Shipment CW:' + "Sales Header"."Required Shipment CW"

But, how i can put this ('Shipment CW:' ) in Bold Letters ?

Thanks.

PS Hey cool new smileys \:D/ Thanks
(Oo)=*=(oO)

Comments

  • Options
    HalMdyHalMdy Member Posts: 429
    If think you can't ... :cry:

    You have to truncate your Text in two zone, one in Bold, th other normal.

    Bold properties is linked to the entire TextBox, not to a part of it ...
  • Options
    eromeineromein Member Posts: 589
    You can't...

    But I would like to add that putting strings together with a + is nog the correct way to program things like that in Navision.

    Better to use strsubstno.
    STRSUBSTNO('Shipment CW: %1', "Sales Header"."Required Shipment CW");
    

    Actually, you will need to create a TEXTCONSTANTE for the text in the command so you can work with several translations.
    STRSUBSTNO('%1 %2', Text50000, "Sales Header"."Required Shipment CW");
    
    "Real programmers don't comment their code.
    If it was hard to write, it should be hard to understand."
  • Options
    RobertMoRobertMo Member Posts: 484
    I expect that you would use this field just for displaying?
    What you can do is to put two controls one over another.
    The first one stays the same as it is with all suggestions from others.

    The second one is above, but transparent and without borders. Its source expression should evaluate just to "Shipment CW:" (but use text constant as suggested).

    Then the trick comes :shock:

    Adjust the XPos of the "overlaid" textbox so that just slightly differs from XPos of the first text box - thus creating characters appear bold...
    =D>
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
  • Options
    jmjm Member Posts: 156
    Hi elTorito,

    why don't you do it easy?
    Create a Label for your TextBox and use the Property FontBold.
    why will you do the "labeling" inside the TextBox?

    br
    Josef Metz
    br
    Josef Metz
  • Options
    elToritoelTorito Member Posts: 191
    jm wrote:
    Hi elTorito,
    why will you do the "labeling" inside the TextBox?

    hmm. perhaps you have right, i would not print out the label when the var is empty, but if i put the string text in the var, it doesnt make a difference, hehe so i must make a textbox and ask with code if var ist empty and then make visible or not my box with the label text, and then i can give the box property font bold.

    Perhaps i was not thinking enough yesterday or sleeping, hehe #-o
    (Oo)=*=(oO)
  • Options
    RobertMoRobertMo Member Posts: 484
    oh yes, of course. you should do it the standard way in the first place...
               ®obi           
    ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Sign In or Register to comment.