Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic RTL SUPPORT IN TABLES (Read 3962 times)
roberta_gonsales
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Mar 18th, 2008
RTL SUPPORT IN TABLES
Mar 23rd, 2008 at 11:44am
Print Post  
Hi,

is there any support for
tables to be configured righttoleft ?

(for hebrew,arabic,etc)

Thanks,

Roberta
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RTL SUPPORT IN TABLES
Reply #1 - Mar 24th, 2008 at 7:56am
Print Post  
Hi,

We haven't ever considered right-to-left text support. I can see there is a DirectionRightToLeft flag in the StringFormatFlags enumeration. Set this flag in the TextFormat.Flags property - it might work, at least when using the standard .NET string drawing methods (with EnableStyledText = false). Let me know if there are any problems with that.

Stoyan
  
Back to top
 
IP Logged
 
roberta_gonsales
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Mar 18th, 2008
Re: RTL SUPPORT IN TABLES
Reply #2 - Mar 24th, 2008 at 8:54am
Print Post  
Hi,

setting this property doesn't seem to work Sad
I have mix of text and digits and dates that don't appear in the right direction I've assign them in code. another strange behavior I see, some of the hebrew characters are "clipped" in the cell and I don't see them. I am using ResizeTofitText on the table.

Thanks,
Roberta
  
Back to top
 
IP Logged
 
roberta_gonsales
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Mar 18th, 2008
Re: RTL SUPPORT IN TABLES
Reply #3 - Mar 24th, 2008 at 9:14am
Print Post  
Hi,

another problem is,
setting DirectionRightToLeft flag also
cause the table to ingnore the alignment property of the text setting to far (in order to be alight to left)

Thanks,

Roberta
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RTL SUPPORT IN TABLES
Reply #4 - Mar 24th, 2008 at 3:25pm
Print Post  
Have you also set EnableStyledText = false? In that case Flowchart.NET will use the pretty standard Graphics.DrawString API to render the text, and you should get the default Windows RTL behavior.

Stoyan
  
Back to top
 
IP Logged
 
roberta_gonsales
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Mar 18th, 2008
Re: RTL SUPPORT IN TABLES
Reply #5 - Mar 25th, 2008 at 5:27am
Print Post  
Hi,

I've set EnableStyledText = false (although it seems to be the default value),

but still I have missing characters,
and only
rtl order of text 
OR
RTL alignment
(not both)

Thanks,
Roberta
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: RTL SUPPORT IN TABLES
Reply #6 - Mar 25th, 2008 at 7:56am
Print Post  
Alignment.Near means text should be aligned to the left in LTR reading order, or to the right in RTL order. So if you set the RightToLeft flag, you must change the Alignment value to Far if you need to keep the left alignment.

If the Flowchart.NET standard text rendering does not work with RTL text, try custom-drawing the cell content. Set CellCustomDraw to Full, handle DrawCell, and call DrawString from the handler.  Let us know if you find some combination of format flags and font properties that work well for you, and we'll implement it as a standard handling for RTL texts.

Stoyan
  
Back to top
 
IP Logged
 
roberta_gonsales
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 11
Joined: Mar 18th, 2008
Re: RTL SUPPORT IN TABLES
Reply #7 - Mar 25th, 2008 at 11:01am
Print Post  
Hi,

In order to get the text RTL  -  the DirectionRightToLeft flag

In order to align the text to right - StringAlignment.Near

I have found the reason for the strange "missing caharacters" - It was so when I set the Pen.width of the table to 3 . removing this line solves the problem

Thanks for the help,
Robera.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint