• Hello Julian,

    I have an image embeded into a rtf file i have WPRichText1 set to read only with no CR showing as i only want it to be read only the test in it is read only but the image in it is not, if i click on it it brings up the sizeable borders and then can have the size changed resized or even draged to a new location is there anyway to make the image read only and stay in the origonaly position like all the text is?

    Thank you,
    Scott.

  • Great thak you have found that now and is working good thank you.

    now that i have that i seem to be getting an error with it, it's all readonly now including the picture but i seem to be getting an access violation if it is double clicked if dont have any properties or procedures set for any double click method but it seemd to be throwing and exception on WPRichText1 if its double click anywhere inside it is there any resion why this would be doing this or is there something i need to disable for this to stop it throwing the exception? thanks

    the error is Project Reading.exe raised exception class EAccessViolation with message 'Access Violation at adress 004aa63c in module 'Reading.exe'. Read of adress 00000000'.

    then Brings up the WPRTEDefs.pas and shows it stoped at

    RTFEngine.RePaint;

    in function TWPRTFDataCursor.SelectWord

    then it jumps to
    procedure TWPCustomRtfEdit.DoDblClick
    and stoping at
    FMemo.Cursor.SelectWord(FMemo.Cursor.active_paragraph, FMemo.Cursor.active_posinpar, true);

    im gathering its tring to select the text or object while in readonly mode wich in theory should not be aloud, so do i have to disable selection of text in one of the options or is there another way around this as i would still like to be able to select and copy test from it,

    Thnk you

    Scott.

  • sorry Julian, its 5.18.6

    also just wondering ...

    i just seen through the forum there was a new version out and when i went to download it it says (the use in modules will invalidate distribution license!) does this mean i cannot distribute my program with the updated version ? as is now i can with the version i brought thanks again Julian,

    Scott

    • Offizieller Beitrag

    Hi,

    It was never allowed to use WPTools in modules of any kind. This has been in the license.txt since version 1. I also do not think you are distributing a "module".

    Some companies work with modules internally, Developer A develops the word processing module which is using WPTools, Developer B does the database part. Developer C puts both modules together to create the application XY. Since version 1 the license aggreement requires that developer A, B and C are licensed, not only A. The download section just reminds of this paragraph. (It was in since version 1, not just 5)

    Julian

  • thanks Julian i just wasnt sure on it i just use WPTools in my project and wasnt sure if the WPRichtext and the labels and all that once compiled in my project was called the module i still have alot to learn about programmin and all these diffirent names for the diffirent parts of componets and stuff, this has made things clearer and i can safly intall the updated version thanks.

    by the way any info on my first question about the double clicking? or would that be fixed in the update? have never had a problem with your Product and think you have done a great job with it just hope there is a way around this or maybe im missing an option to turn off?
    The version im curently using is 5.18.6
    I am not sure on when ill put the updated version on as i like to think if it isnt broken dont fix it lol thanks again Julian

    Scott

    • Offizieller Beitrag

    Hi,

    I probably misread your post "I have an image embeded into a rtf file i have WPRichText1 set to read only with no CR showing as i only want it to be read only the test in it is read only but the image in it is not, if i click on it it brings up the sizeable borders and then can have the size changed resized or even draged to a new location is there anyway to make the image read only and stay in the origonaly position like all the text is? " - but my answer was not wrong either. You can switch off object selection in EditOptions in general.

    But you can alsu use the TextObjectClick event to abort the selection of a certain object - this will make it kind of readonly.

    Julian

  • sorry Julian,
    I was a little tierd last night and forgot to add the post i know i said it was the first one but i was mistaken. By the way thank you for you time to answer my questions...

    here is the post again

    Great thak you have found that now and is working good thank you.

    now that i have that i seem to be getting an error with it, it's all readonly now including the picture but i seem to be getting an access violation if it is double clicked if dont have any properties or procedures set for any double click method but it seemd to be throwing and exception on WPRichText1 if its double click anywhere inside it is there any resion why this would be doing this or is there something i need to disable for this to stop it throwing the exception? thanks

    the error is Project Reading.exe raised exception class EAccessViolation with message 'Access Violation at adress 004aa63c in module 'Reading.exe'. Read of adress 00000000'.

    then Brings up the WPRTEDefs.pas and shows it stoped at

    RTFEngine.RePaint;

    in function TWPRTFDataCursor.SelectWord

    then it jumps to
    procedure TWPCustomRtfEdit.DoDblClick
    and stoping at
    FMemo.Cursor.SelectWord(FMemo.Cursor.active_paragraph, FMemo.Cursor.active_posinpar, true);

    im gathering its tring to select the text or object while in readonly mode wich in theory should not be aloud, so do i have to disable selection of text in one of the options or is there another way around this as i would still like to be able to select and copy test from it,

    Thnk you

    Scott.