Rtf area text formatting

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Rtf area text formatting

Postby Riccardino » Tue Nov 11, 2003 7:59 pm

Hi,

I'm having a strange problem with a textarea field.
I created a Setting form, where I put 3 fields:
header, footer and logo
Header and Footer are text field (rtf areas), logo is a media field

When I put some rtf formatted text into one of the text fields, it refuses to take the alignment, always switching to left. I tried to:
change field's default settings
paste a previously formatted text from another application
write the text directly into the field

Nothing worked: I always get text aligned to left

OSX.2.8, Servoy 1.2rc8, MySQL 4.0.11a-gamma
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby Jan Blok » Tue Nov 11, 2003 9:57 pm

Is your dataprovider (column) long enough? keep in mind that the formatting can occupies loads of space, rtf based on column varchar(50) will likely store no text at all.
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby Riccardino » Wed Nov 12, 2003 12:47 am

Jan Blok wrote:Is your dataprovider (column) long enough? keep in mind that the formatting can occupies loads of space, rtf based on column varchar(50) will likely store no text at all.


I put the column to text, not varchar (it gave me problems with text longer than one line). I noticed that, in table's structure, the two text fields are not showing any length: do I have to specify it?
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby Jan Blok » Wed Nov 12, 2003 11:06 am

Text has unlimited length (no need to specify length)
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby Riccardino » Wed Nov 12, 2003 10:46 pm

Jan Blok wrote:Text has unlimited length (no need to specify length)


So the fields are not responsible for that.
Hmmm: any other idea?
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby Jan Blok » Thu Nov 13, 2003 2:12 pm

found the problem, it is in the Sun code:
http://developer.java.sun.com/developer ... 35839.html

we will try to fix it before release Servoy 1.2 final
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby Riccardino » Sat Nov 22, 2003 1:35 pm

Jan Blok wrote:found the problem, it is in the Sun code:
http://developer.java.sun.com/developer ... 35839.html

we will try to fix it before release Servoy 1.2 final


I'm still having problems with text contents. Maybe I'm doing something wrong:
when I enter a text in a field that has, let's say, a Verdana 10 pts as a default font and I change the font to Futura Bold 9 pts, the behaviour I expect is to have the text formatted with Futura bold 9 pts even after I leave the field.
But when I click out of the field, the text returns to fields default.

If it is the way it's supposed to work, how can I let the user format the text the way they want?

Thanks
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy

Postby Jan Blok » Mon Nov 24, 2003 4:15 pm

The text toolbar did reapply the default font when clicking on form instead in next field...fixed in Servoy 1.2 final
Jan Blok
Servoy
Jan Blok
 
Posts: 2684
Joined: Mon Jun 23, 2003 11:15 am
Location: Amsterdam

Postby Riccardino » Mon Nov 24, 2003 6:33 pm

Jan Blok wrote:The text toolbar did reapply the default font when clicking on form instead in next field...fixed in Servoy 1.2 final


Excellent :D
User avatar
Riccardino
 
Posts: 911
Joined: Thu Apr 24, 2003 11:42 am
Location: Ferrara, Italy


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 18 guests

cron