trichview.com

trichview.support




Font & color Problem with richview


Return to index


Author

Message

jean luc

Posted: 11/25/2003 21:08:18


Hello,


I'm using richview in a delphi application.

my input forms are in fact richviews containing delphi controls.

When i load my rvf files :


     RichViewTarget.LoadRVF(ARvfFileName);

     RichViewTarget.format;


i have no problem, everything is ok.

But when i hide the loaded richviews and later make them visible


this way :

          RichViewTarget.align:=alClient;

          RichViewTarget.visible:=true;

          richviewtarget.format;

 


then some strange effects are occuring: the background of some portions of

text becomes red , some of the borders or background of some tables are also

becoming red coloured and some fonts are replaced with bigger ones or unreadable

ones !


I've tried select/deselect, repaint, (in order to force a redraw)

i also tried this in order to repaint all abjects separatly :


procedure repaintall(Control:TWincontrol);

var i:integer;

begin

    for i:=0 to Control.controlcount-1 do

    if control.controls[i] is twincontrol then

         repaintall(TWincontrol(Control.controls[i]));

    if control is tcustomrichview then

       control.invalidate;


end;

No way ! This problem seems unsolvable.


Does anybody knows about this problem ?


Many thanks for your help.





Powered by ABC Amber Outlook Express Converter