View Issue Details

IDProjectCategoryView StatusLast Update
0001684NoesisGUIC++ SDKpublic2021-11-25 14:25
ReporterJoren Assigned Tosfernandez  
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status feedbackResolutionopen 
Product Version3.0 
Target Version3.1 
Summary0001684: Support for BaseAlignment for Inline elements
DescriptionAs described in this thread. https://www.noesisengine.com/forums/viewtopic.php?f=3&t=1973#p11071

Support for BaseAlignment for inline elements.
TagsC++
PlatformAny

Activities

nikobarli

nikobarli

2021-11-25 09:35

reporter   ~0007613

I think we also need this to support superscript/subscript text on TextBlock.
If there is workaround, please let us know.
sfernandez

sfernandez

2021-11-25 11:12

manager   ~0007614

As a workaround you can use a InlineUIContainer containing a TextBlock with the appropriate size and margin:

  <TextBlock FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center">
    <Run Text="Text with"/>
    <InlineUIContainer><TextBlock FontSize="12" Text="superscript" Margin="0,-12,0,0"/></InlineUIContainer>
    <Run Text="and"/>
    <InlineUIContainer><TextBlock FontSize="12" Text="subscript" Margin="0,4,0,0"/></InlineUIContainer>
  </TextBlock>

nikobarli

nikobarli

2021-11-25 12:13

reporter   ~0007615

Tried the workaround here. Seems to work for superscript but not the subscript. And somehow I need to add top margin of -20 to make the superscript looks nice.
Please see the attachment.
Capture.PNG (96,186 bytes)   
Capture.PNG (96,186 bytes)   
sfernandez

sfernandez

2021-11-25 12:21

manager   ~0007616

Please try using a negative bottom margin for the subscript:

<TextBlock FontSize="12" Text="subscript" Margin="0,0,0,-10"/>

I have to check why our InlineUIContainers are not behaving like WPF regarding to the margins.
nikobarli

nikobarli

2021-11-25 12:34

reporter   ~0007618

Thanks. Negative bottom margin seems to work.
Capture-2.PNG (54,763 bytes)   
Capture-2.PNG (54,763 bytes)   

Issue History

Date Modified Username Field Change
2020-05-12 11:37 Joren New Issue
2020-05-12 11:37 Joren Tag Attached: C++
2020-05-25 11:28 jsantos Product Version 2.2.6 => 3.0
2020-05-25 11:28 jsantos Assigned To => sfernandez
2020-05-25 11:28 jsantos Status new => assigned
2021-11-25 09:35 nikobarli Note Added: 0007613
2021-11-25 11:12 sfernandez Status assigned => feedback
2021-11-25 11:12 sfernandez Note Added: 0007614
2021-11-25 12:13 nikobarli File Added: Capture.PNG
2021-11-25 12:13 nikobarli Note Added: 0007615
2021-11-25 12:21 sfernandez Note Added: 0007616
2021-11-25 12:34 nikobarli File Added: Capture-2.PNG
2021-11-25 12:34 nikobarli Note Added: 0007618
2021-11-25 14:25 jsantos Target Version => 3.1