Jump to content

RTF plugin


Lazycat
 Share

Recommended Posts

Here the result of playing with RichEdit control - early (let it be alpha) version of RTF plugin. This create control in GUI and allow load/save from/to file or variable. No editing functions at the moment, maybe when will have free time.

Sorry for lame example B)

rtfplugin.zip

Link to comment
Share on other sites

Very cool, thanks for sharing this!

Yes yes yes, there it was. Youth must go, ah yes. But youth is only being in a way like it might be an animal. No, it is not just being an animal so much as being like one of these malenky toys you viddy being sold in the streets, like little chellovecks made out of tin and with a spring inside and then a winding handle on the outside and you wind it up grrr grrr grrr and off it itties, like walking, O my brothers. But it itties in a straight line and bangs straight into things bang bang and it cannot help what it is doing. Being young is like being like one of these malenky machines.

Link to comment
Share on other sites

Here the result of playing with RichEdit control - early (let it be alpha) version of RTF plugin. This create control in GUI and allow load/save from/to file or variable. No editing functions at the moment, maybe when will have free time.

Sorry for lame example B)

Hi,

Great! I will try it out today, maybe Koda will be able to have RIchEdit controls now... :o . Speaking of , you guys did a great job on that...thanks.

Jim

Link to comment
Share on other sites

  • 2 weeks later...

I like it B)

Can you make it so that the read-only style can be used on it?

Would work great for a project I'm working on but need that to be read-only and it still scrolls.

Gary

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

@Lazycat, a little help here. I ran your test_plugin.au3 but ran into an unexpected errors.

C:\Download\!Project\PrgLang\AutoIt-v3\Examples\RTF-plugin\test_plugin.au3(2,37) : ERROR: PluginOpen(): undefined function.

$hPlug = PluginOpen ("rtfplugin.dll")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Download\!Project\PrgLang\AutoIt-v3\Examples\RTF-plugin\test_plugin.au3(4,66) : ERROR: GUICtrlCreateRTFEdit(): undefined function.

$hEdit = GUICtrlCreateRTFEdit ($hGUI, 0, 0, 600, 300, -1, 0x20000)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Download\!Project\PrgLang\AutoIt-v3\Examples\RTF-plugin\test_plugin.au3(53,32) : ERROR: GUICtrlRTFGet(): undefined function.

$str = GUICtrlRTFGet ($hEdit)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Download\!Project\PrgLang\AutoIt-v3\Examples\RTF-plugin\test_plugin.au3(57,23) : ERROR: PluginClose(): undefined function.

PluginClose ($hPlug)

~~~~~~~~~~~~~~~~~~~^

C:\Download\!Project\PrgLang\AutoIt-v3\Examples\RTF-plugin\test_plugin.au3(64,35) : ERROR: GUICtrlRTFSet(): undefined function.

GUICtrlRTFSet ($hEdit, $temp, 1)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Download\!Project\PrgLang\AutoIt-v3\Examples\RTF-plugin\test_plugin.au3 - 5 error(s), 0 warning(s)

I am running the {.87} version any ideas? Anyone?

Cheers.. B)

Link to comment
Share on other sites

I only get 3 errors, only as they are functions defined in the plugin rather then the script. Those errors can be expected currently with plugins and you should be able to press continue.

The other errors you get with PluginOpen and PluginClose seems like you are not using the beta to run it.

Link to comment
Share on other sites

I like it B)

Can you make it so that the read-only style can be used on it?

Would work great for a project I'm working on but need that to be read-only and it still scrolls.

You can do this now, just add

BitOr($ES_READONLY, $ES_DISABLENOSCROLL, $WS_VSCROLL)

as style. Now control have forced styles: WS_CHILD, WS_VISIBLE, WS_TABSTOP, ES_MULTILINE, so you have to add other styles explicitly.

Link to comment
Share on other sites

I only get 3 errors, only as they are functions defined in the plugin rather then the script. Those errors can be expected currently with plugins and you should be able to press continue.

The other errors you get with PluginOpen and PluginClose seems like you are not using the beta to run it.

@MHz, I continue and it seemed to work as Lazycat has scripted it to do. But strange that I am using the 3.1.1.87 Beta version. The only way to know is the do Alt-F1 which brings up the start help file show the current release. It is strange that the error show that the "PluginOpen" show as "Undefined Function".

Cheers.. B)

Link to comment
Share on other sites

@Lazycat

Your "RTF plugin" is simply great! B)

I tried to work about the RTF generator, because I'm interested to build up the reports for my GIS applications and I discovered that is not a simple matter without studying RTF specifications. Suddendly, after numerous researchs, I found "KCRtfCreator.dll" that solved my problems.

Some details about this DLL are at this post: http://www.autoitscript.com/forum/index.php?showtopic=18276

I hope it is useful for all.

Best regards.

Pho

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
  • 2 months later...

I have been trying to use your Plug-in to display results in the GUICtrlCreateTab. It seems it isn't support can you confirm this. '>

Try creating a child gui, put the rtf control on that gui, hide/show the child with the tab control

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...