Sign in to follow this  
Followers 0
Lazycat

RTF plugin

26 posts in this topic

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

Share this post


Link to post
Share on other sites



Another great plugin. This may put a smile on a few faces with this colourful text in an edit control. The example is not too bad at all. Only alpha, then definitely keep it progressing Lazycat. B)

Share this post


Link to post
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.

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

YAY ! This is great LazyCat, this should open a whole new path to the GUI ! Thanks. B)


FootbaG

Share this post


Link to post
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.

Gary


SciTE for AutoItDirections for Submitting Standard UDFs

 

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

 

Share this post


Link to post
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)

Share this post


Link to post
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.

Share this post


Link to post
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.

Share this post


Link to post
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)

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

I knew about that, was asking about lazycat's plug-in (that i'm already using)

sorry

FootbaG

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

 

Share this post


Link to post
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
Sign in to follow this  
Followers 0