View Full Version : Problem with RichText Object
azmanar
08-31-2008, 12:29 PM
Hi,
Is anyone facing the same problem?
I have 3 objects on a page:
1. Button
2. Image
3. Richtext ( properties set on "transparent" background )
When I click the button, the Richtext Object is suppose to appear on the Image Object immediately. But the text characters didn't appear immediately. Instead, the text characters only appeared after I highlight every single one of them with my mouse.
This doesn't happen when the RichText Object properties was set to "solid" background.
All advise and recommendations are greatly appreciated.
reteset
08-31-2008, 12:54 PM
it is a redraw problem
i could not try it at this time but
maybe Page.Redraw(); may help you
it is a big trouble spot while developing object plugins :huh
azmanar
08-31-2008, 03:47 PM
Hi Reteset,
Thank you for your input. Maybe we can attract the attention of IR.
azmanar
09-01-2008, 06:36 PM
Hi,
The redraw issue is causing me much headaches. Page.Redraw() function didn't help much.
Now I had to use text on jpegs instead of Richtext for my presentation apps.
Ulrich
09-01-2008, 07:56 PM
Here is my suggestion: Replace the RichText with a Web Object. Then you will still be able to format your text (and create text dinamically instead of using ready-made images), and emulate a transparent background for the object.
I made a small quick-and-dirty proof of concept of my idea. Please see the project I attached below. To test it, first run/preview it without changing anything. Then move the Web Object to a new position, but do not resize it! Then run/preview the project again. It shouldn't matter where you place the Web Object on the page, the background should blend correctly with the background of the application, making it virtually impossible to detect the boundaries of the object.
This of course could be enhanced further to ease the use, with some functions. Keep in mind that if you resize the Web Object, you will have to create a new corresponding mask. Have a look and tell me what you think.
Ulrich
azmanar
09-01-2008, 09:11 PM
Hi Ulrich,
Vielen Dank.
Fantastic example. This is a great idea for some other projects I'm doing.
The one I'm doing pop-ups info windows when a user clicks one button from several presented to him.
yosik
09-02-2008, 11:54 PM
Hi,
I wanted to suggest you to move your RTF object 1 pixel and move it back, but as I was testing this idea, I saw that on my machine, I had no problem at all.
Therefore, although the above solution could work, it must be something to do with your computer (refresh rate maybe, clash with OS...I don't know...)
Good luck
Yossi
Lorne
09-03-2008, 12:41 AM
There are several different versions of the rich text control in the field (distributed with different versions of Windows, and with different software, etc.), and they have varying capabilities. Some have bugs.
This is entirely dependent on the state of your particular operating system install, so this may or may not have something to do with what you are seeing.
azmanar
09-03-2008, 06:22 AM
Lorne, Yosik,
Thank you for the advise.
When I bumped into a development issue, the usual suspects are my scripts, my scripts and my scripts.
Obviously, I've ignored some of these aspects you guys mentioned. Let me check them out and come back again.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.