Help - Search - Members - Calendar
Full Version: Text Reader Panel
Desktop Sidebar Forums > Customizations > Panel Announcements
Pages: 1, 2
GoMa
This is version 2.1 of this panel I am developing per several requests from the forum users.

This panel displays an editable text box in which you can store whatever info you want. It can also display a text file's contents and update the text when the file updates.

NEW FEATURES FOR VERSION 2.1:
- Ability to display text in Right-to-Left direction.
- Ctrl-A now selects all the text.
- This version is only compatible with b86 and above!

NEW FEATURES FOR VERSION 2.0:
- Ability to display the file matching the DS skin and without the white background.
- Ability to save the text between sessions / save it to the text file.
- Ability to display a different text file each day (this is Prism's request). I know this feature isn't so flexible currently.

REQUIREMENTS:
- You must have installed the .NET Framework version 1.1 in order for this panel to work.
- You must use the latest DS build (currently build 86).

INSTALLATION:
- Download the file from the Extension Exchange, here:
http://www.desktopsidebar.com/ffdetails.php?id=188.
Make sure you save the file with a DSPACKAGE extension.
- Run the file (double click it) when Desktop Sidebar is running.

Please post any feedback in this thread, I will gladly accept it. smile.gif Thanks.

user posted image
cs97gh1
I think that this plug-in will be useful for many users that want to store unformated data for their everyday use.

As a first suggestion, i would be satisfied if text could be saved between sessions, in the case that no text file is used.

Thanks alot!!! fun_08.gif
GoMa
Yeah, added that right now. I'll wait for more suggestions though because releasing a version for one feature is ridiculous. biggrin.gif
Syrus
Yes, great panel! Just that what I've searched for. smile.gif
yyy
Nice panel smile.gif If we could only save the file after editing it, the panel will be more useful.
GoMa
Feature is in the works.
bloody
this is pretty darn cool. this would have been so useful had i not accidentally deleted my game ost database. common003.gif

i just noticed we don't have one of them crying emoticons.
Indian_Mayhem
'There's no crying in technology' pcpunch.gif mad.gif hairpull.gif common003.gif
LOL.
yyy
QUOTE (GoMa @ Oct 4 2004, 05:37 PM)
Feature is in the works.

Great smile.gif
Kalior
very nice, exactly what I was looking for. clap.gif

one thing you might want to add if you have the time or motivation is the ability to drag .txt files into the field itself (a useful feature in notepad). Other than that, excellent work smile.gif
GoMa
Thanks.
It's a nice suggestion (drag-drop). I know how to implement it, because I have already done it with the File Browser panel. smile.gif
dragon
ahh finally biggrin.gif

great stuff, thank you clap.gif
antu^jamban
I already have Notes Panel installed and I still want to have this panel too because of it features. But now my DS is getting crowded. GoMa, if you don't mind, how about integrating this panel features with the Notes Panel?

I think it's better to have a panel with multiple features than having many kinda-same panel with a few different features in each one of it.
yyy
Mattisking was intrested in improving the Notes Editor panel so he might add such a feature.
Krimoufuk
I'm so excited to see this plugin! I've always wanted this, since all other sidebars (SmartBar, even some other primitive ones) have this convenient textbox.

One thing I noticed that another Free Sidebar (Codename Dashboard) that really impressed me was the use of several tabs that look like Firefox browser tabs. So, instead of having one note, you can have several. To switch between them, you simply click on the tabs. That was so amazing! Can your plugin be made to do such a function?

Excellent work you've done here! fun_08.gif
GoMa
Krimoufuk: that will kind of be reimplementing the Notes panel. I mean, this panel is meant for something other than editing notes, although I don't care if somebody used it for note taking.
Krimoufuk
Ctrl + A doesn't work. It's a very convenient shortcut for Select All. Otherwise one'd need to right-click and select that function.
GoMa
I will try to fix it, thanks.
GoMa
Version 2.0 is out. Check the first post.
yyy
GoMa - nice but there isn't an option to save the file sad.gif Hope you'll add it next version.
Small suggestion - it is hard to find the link to the panel download page - make it bold so more users can see it wink.gif
GoMa
yyy, there is an option. It's called "save the text between sessions".
yyy
QUOTE (GoMa @ Oct 16 2004, 10:20 PM)
yyy, there is... both a link and an option. smile.gif

Oh, now I see that option rolleyes.gif It is hidden ph34r.gif laugh.gif But I want an option to manualy save the file so I can be sure it is saved. Otherwise I have to quit DS to save it, right? Some people might not shut down their computers so this feature won't help them.

About the link - I've edited my post since I didn't see it in the first time. I think the link is hidden. But I see you made it clearer now fun_08.gif
GoMa
Hmm... you need to look harder. smile.gif
I will add a manual save option in the next version.
yyy
Great laugh.gif
jaba
Would it be possible to introduce some basic formatting for the text? Say for example, if i surrounded a word with <b></b>,in the text file, it would make it display bold. Bold, underline, italic, and color would be great to have. You could use either html-like tags, or maybe tags like you use on this forum. This would be for the read-only mode of course.
Kalior
version 2 is nice, the save between uses feature is very helpful
yyy
QUOTE (jaba @ Oct 17 2004, 09:27 PM)
Would it be possible to introduce some basic formatting for the text? Say for example, if i surrounded a word with <b></b>,in the text file, it would make it display bold. Bold, underline, italic, and color would be great to have. You could use either html-like tags, or maybe tags like you use on this forum. This would be for the read-only mode of course.

I don't think he can. The panel uses a text box which doesn't allow formatted text sad.gif Maybe he needs to develop a new control in order to do it rolleyes.gif But I'm not sure.
esolu
GoMa,

Great panel. Can you implement a few shortcuts, in particular ctl+a. I use this panel a lot when developing and often I copy text that is formatted and need to paste it into a "Dumb" editor and then copy it again. I've been using this panel for that, however it is a lot faster if I can use ctl+a to select the text again.

In other words I would like to use it like this:
ctl+v - paste in(works)
ctl+a - select all text (doesnt work)
ctl+v - into my dev environment clean and unadulterated text.
GoMa
QUOTE (yyy @ Oct 18 2004, 08:05 PM)
QUOTE (jaba @ Oct 17 2004, 09:27 PM)
Would it be possible to introduce some basic formatting for the text?  Say for example, if i surrounded a word with <b></b>,in the text file, it would make it display bold.  Bold, underline, italic, and color would be great to have.  You could use either html-like tags, or maybe tags like you use on this forum.  This would be for the read-only mode of course.

I don't think he can. The panel uses a text box which doesn't allow formatted text sad.gif Maybe he needs to develop a new control in order to do it rolleyes.gif But I'm not sure.


Features for new version currently:
- Multilingual
- Drag'n'Drop text files.
- Ctrl-A
- Manual save in context menu.
- MAYBE simple HTML formatting support.
Unfortunately yyy is right. However, I will try my best to implement such a thing. It might be difficult.
mercichao
how about auto save?
can make a option to let it able to auto save frequently?
or even saves if you type in any letter
i think it will be so cool tongue.gif
Prism
I have a bug report and feature requests:

The panel can't read any Hebrew text. I've tried it in the non-editable mode, and it just skips the Hebrew letters.

I would like to have in this panel an option for right-aligning, and also another mode in the panel - something like "quotes" panel, which will get a file, and show its content line-by-line, each line after a few seconds/minutes.
GoMa
I will try to implement "quotes" mode (it will not have this name though smile.gif).
Right aligning - do you know how I can do that? I remembered your request before releasing the second version, but didn't find a TextOutput method for that - do you know how to do that? Maybe it can be done through skinning? I'll look into it.
Hebrew - I did notice this but unfortunately I think there is nothing that can be done to cure that issue. I will contact kdam.

Autosave - I don't promise, but I will try to implement that.
eitaneko
GoMa - for autosave, could you technically save the text to a file that is local to your panel's folder in the /appdata/desktop sidebar/plugins directory? and then on close you can either load from there or save to the ds config file?
Prism
For the right aligning - use the CListOutput.SetRightToLeft(true) function.

But it doesn't really help without Hebrew support.

I have an idea, I'll look into it and tell you if it succeeds.
eitaneko
i believe you can display hebrew characters in an IListOutput and ITextOutput, but I think only the list supports RTL characters. Try it out with my alarm panel. You can set the title as hebrew (RTL support will come later).
GoMa
QUOTE (Prism)
For the right aligning - use the CListOutput.SetRightToLeft(true) function

I'm using a TextOutput, not a ListOutput.
QUOTE (eitaneko)
i believe you can display hebrew characters in an IListOutput and ITextOutput,

Well, doesn't work for me on ITextOutput.
QUOTE (eitaneko)
GoMa - for autosave, could you technically save the text to a file that is local to your panel's folder in the /appdata/desktop sidebar/plugins directory? and then on close you can either load from there or save to the ds config file?

If the panel does not display a text file's contents, then the text typed is saved to %appdata%\Desktop Sidebar\TextReader.txt.
It is not saved to the settings file.
Prism
It seems quite strange that the TextOutput object doesn't support RTL.
I would suggest using ListOutput with one row. Shouldn't be so difficult to change.
GoMa
It won't be difficult because of the way I have programmed the panel - I will implement this suggestion. Still, I will contact kdam and tell him about this - if it will be available on a near future build I will not change it.
Prism
I've just solved the Hebrew problem: in order to see Hebrew letters, save the file in Unicode format, and not in the ANSI format which is Notepad's default.
It works just fine for me, now I'm just waiting for the RTL support.
Prism
Another thing - the panel doesn't include an autofit support.
GoMa
I'm happy you have found this solution!

Autofit - I don't think it is necessary for this kind of panel. Perhaps only when it's in non-editable mode?
yyy
Oops - I think that ds.gif forgot the Right to Left option of the ITextOutput. rolleyes.gif Even if you can do it by skinning, I think that it should be done by the panel's code, like with the IListOutput.
Prism
QUOTE (GoMa @ Oct 19 2004, 10:03 PM)
Autofit - I don't think it is necessary for this kind of panel. Perhaps only when it's in non-editable mode?

That's exactly what I've ment.

Do you have an estimation for the next release?
GoMa
QUOTE (Prism @ Oct 19 2004, 09:26 PM)
QUOTE (GoMa @ Oct 19 2004, 10:03 PM)
Autofit - I don't think it is necessary for this kind of panel. Perhaps only when it's in non-editable mode?

That's exactly what I've ment.

Do you have an estimation for the next release?

When I have time. smile.gif
GoMa
Kdam told me that RTL support for TextOutput will probably be in build 85, so for the time being I will not include this feature.
However it might be possible to right align the text, which can get you the wanted effect - I will try to do this.
tbdean
Any way to have CTRL + A do a Select All?
GoMa
It's already implemented. I just want to include RTL support and then release it. In the coming days hopefully.
Prism
Hasn't kdam fixed the textoutput RTL problem yet?
GoMa
He has (at least there is a method for it, didn't check if it works yet). smile.gif
tbdean
Great, thanks!

Very much appreciated.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.