A tip of the day would be a good thing. It has to be a package though. And optional (can be switched off, without unistalling the package)
It can be installed and on by default.
But as it stands today, it seems it needs someone to contribute it.
You said that, Martin. Thanks you. I hope it will be integrated within IDE soon or later.
If a contribution is made... (This may include the contribution being adapted to some requests, how to implement some details. / Not going to be picky, don't worry, but maintaining some standard.)
Okay guys, it seem it is more promising now. (Martin is a member of Lazarus Team).
So is Juha. (and a few others on the forum)
I will get a chance to realize "Tips of the day" in a package plus a demo application .
Perhaps, this will also useful for other application outside the IDE project, too.
For first prototype, it would be:
* shows after splash-screen hides
Imho, it should wait until the IDE has opened all windows (that is as soon as main-ide bar, src edit, messages window are there.
So people already see the IDE, and know they are there.
Otherwise it would be a lonely window, like the setup screen
lazarus.exe --setup* provides a "Never show tips at startup" inside the dialog. Using a checkbox or combobox.
Very good
* a close button.
* "next tip" button
* "read more.." link to web page. Using TLabel ?
Keep the options open, maybe there will be a tips_of_day.chm help file one day.
Tips's source:
AFAIK the best we can provide is HTML based (*.htm), as this standard is well known format.
Because it allow attaching picture / screenshot / animated gif of how the tips works.
If you implement it, then that is your decision. I think TurboPowerIPro works well.
Please note, that by default the tips database comes with the installer. Downloading new tips (based on IDE version) can be added as option, but should not happen without user consent.
The tips must be organised in a reasonable way (also SVN friendly). First thought would be one file, and images should go into a folder. (and should not be too many large images, I hope to one day reduce the size of the installer, not the opposite)
I would not think of 1 file (text) per tip being a good solution. Though that can be argued.
XML format is possible. Maybe fpdoc can be used? Then there was an editor already.
Alternatively is Mark-down hyper text (*.md) which is easier to edit.
But for this early stage, we can use plain text (*.txt). That doesn't require any parse to display the contents.
My furthest plan is to fetch RSS/HTML online; which is might not set the default behavior of Tips of the Day.
-------------
Well, I have question:
What do you expect as container of the tips?
A. TLabel or TMemo
B. TRichEdit
C. TWebBrowser (embeded).
E. anything else: ..... please tell the component's class name.[/font]
Not TWebBrowser.
Also there will be individual controls for header and content.
Look at TurboPowerIPro