Make SourceExpr Bold
elTorito
Member Posts: 191
Hi,
in SourceExp of an TextBox i have follow Source:
I can edit this so i have:
But, how i can put this ('Shipment CW:' ) in Bold Letters ?
Thanks.
PS Hey cool new smileys \:D/ Thanks
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)
0
Comments
-
If think you can't ...

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 ...0 -
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."0 -
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
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯0 -
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 Metzbr
Josef Metz0 -
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)0 -
oh yes, of course. you should do it the standard way in the first place...®obi
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 323 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions