Click here to Skip to main content
Email Password   helpLost your password?

Downloads 

todolist.png

Latest Update (6.0 Feature Release)

Once again this release is not full of big features but instead a range of smaller features that shuld make using ToDoList easier.

Features include:  

Related Links

After finally compiling a FAQ of the most relevant questions asked about ToDoList I've moved all resources related to ToDoList to a new page on my website.

Introduction

You know how it is - you start work on one project and halfway through, you find one or two side-projects crop up that have to be solved before you can continue on the original project.

This is one such project with the added twist that it too started its life as a side-project. Here's what happened:

<Cue wavy screen effect>

I can only imagine that the planets must have been in (mis-)alignment or something, because at one point a few months ago, I was suddenly fielding emails on four or five separate articles I had previously submitted to CodeProject, some asking for features and others for bug fixes.

Foolishly or otherwise, I largely agreed with all the points raised, and subsequently found myself with fourteen or fifteen separate issues to resolve.

The situation was also made worse because I was trying to use CodeProject to keep track of all the things I had agreed to do, meaning that I had to continuously trawl the comments section of each article to remind myself of what I was supposed to be working on.

It even got to the stage where I was worrying that I'd fail to deliver on something - silly I know, but there you are!

Keeping a list on paper was a definite step in the right direction, but since I do all my coding on the same machine, it seemed somewhat inelegant, and anyway, we all know what happens to crucial bits of paper left lying around on desks and such.

The next step was to hunt around on the web for a tool to meet the following requirements:

Simple, huh! not!

I will admit that I did not spend weeks searching, but I am still surprised at the general lack of software matching my needs.

On reflection, I think that the reason may be simple: people are so used to commercial software being 'feature-rich' that when they come to design software themselves, they (not unreasonably) think they too need to cram as much in as possible, often leading to software where a lot of essential functionality is hidden away in the menu bar.

So, surprise, surprise, I decided to write something myself.

However, it's fair to say that I did not originally intend to post it on CodeProject and am only really doing so because I had a heap of fun solving some very interesting problems and these are what I think make it worth it.

Using the Software

There's really very little I need to say here since every feature/function is explicitly visible in the interface.

Nevertheless, the following list of basic capabilities and omissions may go someway to answering any questions that arise:

Points of Interest

Here's where we come to the side-projects I was talking about, the first two of which I intend to work up into follow-up articles.

They are:

  1. The 'ordered' tree control, which incorporates a non-client gutter for displaying the item numbers.

    The idea stemmed from research I did into alternative designs for a tree-list control, which did not solve it by creating a hybrid control incorporating a tree and a list.

    The hybrid control seems such an obvious solution that I suspect few people have stopped to question it, but it has still always struck me as looking far too much like hard work to be truly elegant ('square pegs' and 'round holes' spring to mind).

    One possible idea is to implement the 'list' portion entirely in the non-client area of the tree. I.e., shift the right hand client edge to the left and then render the list portion in the resulting non-client area.

    Whilst I've yet to get round to building a proof of concept, it was nevertheless this ongoing mental debate which prompted me to try to solve the requirement for numbered items and subitems by rendering the item/subitem numbers in the non-client area.

    Without going into too much detail (as this will subsequently be an article of its own), this is how I got it to work:

    This is necessarily an over-simplification, but it captures the essence of the solution, and all that essentially remains is lots of fiddling about to ensure the non-client area gets redrawn at the the right times to stay synchronized with the client area.

  2. Embedding .RC control definition data directly in a .cpp file to break the dependency on binary resources (a.k.a. 'Runtime Dialogs').

    This is an idea that has been floating about for quite some time and which has only recently gelled into a workable solution.

    The problem, put simply, is that if you want to take advantage of the resource editor in Visual Studio (and who doesn't), then you very quickly find yourself stuck with having to load dialog templates from resources compiled into the binary file.

    This further means that if you want to make use of a dialog across multiple projects, then either you need to copy and paste the dialog template between project .RC files, or you need to build the dialog into a DLL from which it can be accessed.

    'Runtime Dialogs' (a snappy title I coined myself) is a solution that neatly sidesteps both the nuisance of copying dialog resources between resource files and the extra work (and maintenance) involved in packaging dialogs in DLLs.

    And it works like this:

    I'm certainly not suggesting that this is a 'win-win' solution for all situations but it certainly has merits in its closer coupling of dialog template to dialog code which makes sharing dialogs across multiple projects a breeze.

    P.S.: In case it's not clear here, I used CRuntimeDlg to create CToDoCtrl which encapsulates the ordered tree together with the priority, date and comments controls as a single simple-to-instantiate control.

    I'm also proposing to use them in the .NET port of my ProjectZip add-in for VC6.

  3. Embedding the XML file in a web page.

    This is possibly the most satisfying aspect of the whole project because it was completely unexpected.

    What I mean is that, until recently, my knowledge of DOM and XMLDOM was virtually non-existent, as it's only since I've become more interested in the presentation of AbstractSpoon that I've been forced to get to grips with the various implementations of DOM and XMLDOM out there.

    I'm pleased to say that the code on my site works under IE 6.0, Netscape 7.1, and Mozilla, although custom code was required to achieve this.

Generic MFC Classes that may prove Useful to You

The following table lists a wide range of utility classes written for this project. They can all be included in any MFC project provided you include any class dependencies too. Feel free to ask any questions relating to these specific classes and how to use them.

Class Name

Description

Class Dependencies
(apart from MFC)

CAboutDlg

Customizable "About…' dialog not requiring a dialog resource. Supports html encoded text

CRuntimeDlg, CRCCtrlParser

CAutoComboBox

Adds only unique items to the drop list and shuffles the list so that the last added item is at the top

CHoldRedraw

CAutoFlag

Encapsulates the setting and unsetting of a boolean variable thru the lifetime of the class instance

CColorButton

Non-ownerdraw button that displays the selected colour on the button face and displays the colour dialog when clicked

CEnColorDialog

CColorComboBox

Owner-draw combobox for displaying and selecting user defined colours

CDateHelper

Encapsulation of various rountines for calculating date spans and for formatting

CDeferWndMove

Encapsulation of the Win32 API

CDialogHelper

Re-implementation of the CDialog DDX/DDV rountines to avoid the MFC error messages when the user clears a number edit (for instance)

CDlgUnits

Encapsulates the MapDialogRect Win32 API

CDockManager

Class for managing the docking of one popup window to another.

*CSubclassWnd, CHoldRedraw, CAutoFlag

CDriveInfo

Encapsulates various rountines for querying about drives, files and disk space

CEnBitmap

Adds support to CBitmap for loading non-bmp files and resources.

CEnBitmapEx, CColorReplacer, CImageBlurrer, CImageColorizer, CImageContraster, CImageEmbosser, CImageFlipper, CImageGrayer, CImageLightener, CImageNegator, CImageResizer, CImageRotator, CImageSharpener, CImageShearer, CImageSysColorMapper, CImageTinter

Adds image manipulation funationality to CEnBitmap

CEnBitmap

CEnColorDialog

Adds saving and restoring of custom colours to CColorDialog

CEnCommandLineInfo

Adds functions for extracting and querying commandline switches

CEnEdit

Adds user-defined button capabilities to CEdit

CMaskEdit, CThemed, CDlgUnits

CEnToolBar

Adds support for using alternative resource or file images

CFileEdit

Adds buttons for browsing and displaying the file represented by the text in the edit control. Also shows the file's small icon.

CEnEdit, CFolderDialog, CMaskEdit, CDlgUnits, CThemed, CSysImageList

CHoldRedraw

Encapsulates WM_SETREDRAW

CHotKeyCtrlEx

Fixes a number of behavioural problems including the handling of certain keypresses

CHotTracker

Tracks the cursor movement over user-defined windows and posts event messages as necessary

*CSubclassWnd,

CLimitSingleInstance

Provides simple method to detect if another instance of an app is running

CMaskEdit

Adds simple character masking to CEdit

CNcGutter

Allows the UI of standard windows controls to be extended by supporting any number of columns to be added to the non-client area of the window. Favours tabular controls like lists, trees, etc

*CSubclassWnd, CHoldRedraw, CThemed, CDlgUnits

COrderedTreeCtrl

CTreeCtrl implementation of CNcGutter displaying a single column showing the hierarchical position of each tree item in '1.2.3.4' notation.

CHoldRedraw, CThemed

CPasswordDialog

Very simple password dialog not requiring a dialog resource

CRuntimeDlg, CRCCtrlParser

CPropertyPageHost

Simpler replacement for CPropertySheet allowing easier creation as a child window

CRCCtrlParser

Used by CRuntimeDlg for parsing dialog resource-like text

CRuntimeDlg

Adds support to CDialog for building dialogs at runtime ie. dialogs do not require a dialog resource

CRCCtrlParser

CShortcutManager

Class for handling application keyboard shortcuts.

*CSubclassWnd, CWinClasses

CSpellCheckDlg

Spellcheck dialog not requiring a dialog resource, which interfaces with ISpellCheck (interface to Open Office dictionaries)

CRuntimeDlg, CRCCtrlParser, ISpellCheck

CSysImageList

Encapsulates the Windows system image list (file/folder images)

CTabCtrlEx

Adds post rendering callback for the tabs without using owner-draw

CThemed

Encapsulates themed (XP) and non-themed (the rest) drawing of windows controls

CTimeEdit

Adds a button for specifying time units and provided routines for converting time to and from different time units

CEnEdit, CMaskEdit, CThemed, CDlgUnits

CToolbarHelper

Adds support for dialog toolbar tooltips, multiline tooltips and dropbuttons with menus

*CSubclassWnd, CEnBitmap, CEnBitmapEx

CTrayIcon

Encapsulates the Shell_NotifyIcon Win32 API. Also provides balloon tips and animation

*CSubclassWnd,

CUrlRichEditCtrl

Adds support for recognizing urls, clicking them and setting custom url callbacks

CWinClasses

Encapsulates the ::GetClassName Win32 functions

CXmlFile, CXmlItem

Non-Unicode class for reading and writing xml files

CXmlFileEx

Adds encryption capabilities to CXmlFile

CXmlFile, IEncryption

* CSubclassWnd was originally written by Paul DiLascia for MSJ magazine. The version I use has been heavily extended to suit my specific needs. The classes that depend on it here need this extended version.

Further Work

Whilst this tool was originally intended for my personal use only, it is now a 'community' project, so if you find it useful and want to make suggestions for enhancements or bug fixes, then post below.

History    

You must Sign In to use this message board.
 
 
Per page   
 FirstPrevNext
GeneralReminder problem in 6.1.a5
tromark22
3hrs 16mins ago 
During testing the latest alpha version, I have noticed that if a reminder is set for a time relative to the due/start time. If you then exit the program and restart the program, the reminder has been reset to "at this date and time" 30/12/1899

Best Regards
Philip
GeneralNokia n900 sync
zakoninfo
11:09 6 Feb '10  
Is there any way to sync TDL with Nokia N900 (Maemo5) by using Nokia PC Suite or something else?
GeneralRe: Nokia n900 sync
.dan.g.
0:51 7 Feb '10  
Can you provide links to the Nokia PC suite so that I can evaluate it.
.dan.g.

AbstractSpoon Software
abstractspoon2_at_optusnet_dot_com_dot_au

GeneralRe: Nokia n900 sync
zakoninfo
7:56 7 Feb '10  
http://www.nokia.ru/support/software/nokia-pc-suite/download[^]
GeneralRe: Nokia n900 sync
zakoninfo
8:28 7 Feb '10  
So far I have tried to export data via icalendar through Outlook 2007 but tasks don`t show correctly in Outlook calendar. Also I installed GPE Calendar (http://gpe.handhelds.org/projects/GPE-calendar.shtml[^]) on my n900 that is known to import iCal data but it showed error "invalid value in attribute STATUS". Although it may be GPE Calendar`s fault.
GeneralGlobal view of multiple tasklists, and dashboard [modified]
marilynedell
3:44 6 Feb '10  
Dan,

As already said, TDL is a powerful software, but currently it is not be able
work with tasks of all opened tasklists. It is partially possible with 'find tasks' item, but it not sufficient for me.

Indeed, what I need in reality :
* A user-friendly dashboard in order to summarize the tasks to be done, and especially :
- task dued,
- to be done today,
- to be done in the week,
- active tasks
- not active tasks
- tasks by category or by status
* Ability to sort/filter tasks and see the differents fields of the tasks found
* Transform the result in XSL --> reporting
* Export the result in gantt project --> planning


So I'm working on 2 solutions (both of them could be useful):
* via XSL
- would it be possible to improve the 'transform active taskslists' in order to have in a single xml file all of the opened tasklists (tasks present in the xml file depend on criteria selected in the 'transform active tasklist', of course) ?. With this, I will be able to create an xsl stylesheet and create a global dashboard, to follow my tasks.
- it would be great too to have an option in the 'transform active tasklist' in order to just open the result in a windows (so the generated file is saved in a temporary location or in the working dir), like at the startup of TDL, instead of save at each time the html file.

* via an external c# program (unfortunately my knowledge of C++ is not good), a little like the 'TODOLIST reminder' but with more functionalities :
- select multiple tdl file
- create a single xml file consolidated (optional, i could parse each tdl file)
- display a global dashboard which summarize the work to do
- be able to filter/sort on tasks
- display (read only) list of tasks found (with the fields linked to it) in a tree or in a list
- Transform result via XSL
- Export result to gantt project (in order to have a single global gantt)

Notice that except the global dashboard, TDL do all of them, but for one tasklist at a time...
So before start this work, I just want to be sure that you don't plan to implement a way to have an integrated global view of the tasks. In this case, the first option, via xsl would be sufficient, in order to just create a dashboard.

Thanks to have read my post.

Kind regards
modified on Saturday, February 6, 2010 5:37 PM

GeneralRe: Global view of multiple tasklists, and dashboard
.dan.g.
0:50 7 Feb '10  
marilynedell wrote:
So before start this work, I just want to be sure that you don't plan to implement a way to have an integrated global view of the tasks


I have no current plans to create such a dashboard, and would welcome your contribution in whatever form it takes.
.dan.g.

AbstractSpoon Software
abstractspoon2_at_optusnet_dot_com_dot_au

GeneralRe: Global view of multiple tasklists, and dashboard
marilynedell
7:18 7 Feb '10  
Hello Dan,

there is a lack of understanding. My question wasn't for the dashboard, I understand you don't plan to do this, but for the global view (filter, sort...) of all open taskslits.

However, what about the first solution suggestions (via XSL) ? Would it be possible to improve it ?.

Kind regards
GeneralRe: Global view of multiple tasklists, and dashboard
.dan.g.
22:54 7 Feb '10  
marilynedell wrote:
but for the global view (filter, sort...) of all open taskslits.


I don't plan to do this at present.

marilynedell wrote:
However, what about the first solution suggestions (via XSL)


This is trickier than it sounds because each transform generates the entire HTML page whereas what I would need is only the <body> element of each tasklist so that I could join them together.
.dan.g.

AbstractSpoon Software
abstractspoon2_at_optusnet_dot_com_dot_au

GeneralRe: Global view of multiple tasklists, and dashboard
marilynedell
21hrs 46mins ago 
Is it possible, if you "merge" XML files in a new one before transformation ?
It is one of the stuff I would want to do within a C# program (if the current XSL solution in TDL is not possible):
I open the selected .tdl files, get the content of each of them in order to merge them in a new XML file. But it would be better to have it in TDL and would offer a first element of solution for a global view, i suppose.

Kind regards.
GeneralFeature Request - Remove icon
Anorexic Tribble
0:14 5 Feb '10  
Maybe its just me, but I can not see a way to remove an icon once you have assigned it to a task. You can change it to a different one, but you can not remove it.
GeneralRe: Feature Request - Remove icon
Alexxcode
3:30 5 Feb '10  
- Go to Prefences/Keyboard Shortcuts.
- Go to Edit/Other Task Attributes.
- Assign a shortkey to "Clear Task Icon" and use it.

Alexandra
GeneralRe: Feature Request - Remove icon
.dan.g.
21:33 5 Feb '10  
Right click and select 'Clear Task Icon'
.dan.g.

AbstractSpoon Software
abstractspoon2_at_optusnet_dot_com_dot_au

GeneralRe: Feature Request - Remove icon
Alexxcode
2:07 6 Feb '10  
.dan.g. wrote:
Right click and select 'Clear Task Icon'


which you can find under "Other task attributes".

Of course, forgot to mention that! D'Oh!

Alexandra
GeneralRe: Feature Request - Remove icon
.dan.g.
0:48 7 Feb '10  
Rose
.dan.g.

AbstractSpoon Software
abstractspoon2_at_optusnet_dot_com_dot_au

QuestionToDoList 6.1.a5 - RTF composant default preferences
Atao5
22:33 4 Feb '10  
Thanks for this amazing tool.

Is it possible to modify the default preferences for the RTF composant ?

Each time I launch ToDoList, the RTF composant is set to "Word Wrap" OFF and "Show Ruler" ON

It will be very pleasent to have "Word Wrap" ON and "Show Ruler" OFF by default

Thanks by advance
Atao
AnswerRe: ToDoList 6.1.a5 - RTF composant default preferences
Garth J Lancaster
23:41 4 Feb '10  
it comes as source code as well - why dont you make the changes, then post them back showing how/what you did and then maybe Dan will integrate them into his code base - he cant satisfy every request

'g'
GeneralRe: ToDoList 6.1.a5 - RTF composant default preferences
Alexxcode
3:27 5 Feb '10  
Dan already aggreed to change this behaviour as it was requested by several. Just wait a little bit.

Alexandra
GeneralRe: ToDoList 6.1.a5 - RTF composant default preferences
Garth J Lancaster
13:04 5 Feb '10  
thanks - I guess I should have told the poster to check the FAQ - I was more irritated by the fact he could have done the change himself, I get tired of people who get something for free but demand 'more' ..

cheers Alexandra
'g'
GeneralRe: ToDoList 6.1.a5 - RTF composant default preferences
Atao5
23:36 7 Feb '10  
Garth J Lancaster wrote:
thanks - I guess I should have told the poster to check the FAQ - I was more irritated by the fact he could have done the change himself, I get tired of people who get something for free but demand 'more' ..
cheers Alexandra
'g'


my English is probably poor quality but I wrote "Is it possible.." and not "do it ..."
it was just a question ...
And if I could do it, it was with pleasure, I purpose a solution Wink

have a good day
Atao
GeneralRe: ToDoList 6.1.a5 - RTF composant default preferences
.dan.g.
21:59 5 Feb '10  
Alexxcode wrote:
Dan already aggreed to change this behaviour


Did I?!

The problem with turning off the ruler by default is that then people don't know that it exists even if it's not a highly useful feature. But I'm happy to bow to pressure. Poke tongue

And the wordwrap should be 'on' by default already, as all my tests show. Can you give me a set of steps to reproduce it's default state as 'off'?
.dan.g.

AbstractSpoon Software
abstractspoon2_at_optusnet_dot_com_dot_au

GeneralRe: ToDoList 6.1.a5 - RTF composant default preferences
Alexxcode
2:05 6 Feb '10  
.dan.g. wrote:
Did I?!


Upps, i thought so. Sorry!

Ruler:
I recommend a tiny rulerbutton to indicate it´s existence and for switching on/off.

Whenever i open a tasklist (6.1 a5) the ruler is on and wordwrap is off by default.

Alexandra
GeneralRe: ToDoList 6.1.a5 - RTF composant default preferences
akaDormouse
2:21 6 Feb '10  
.dan.g. wrote:
The problem with turning off the ruler by default is that then people don't know that it exists even if it's not a highly useful feature. But I'm happy to bow to pressure.

I'd vote for keeping it turned on by default.
With all new programs I switch everything I can on just so I see or am reminded of options. When you see something, and know you don't want it, it is easy to switch it off; if you don't see something, you may not even realise you do want it until the possibility occurs to you. So I think, switching on is likely to help quite a few people.
GeneralRe: ToDoList 6.1.a5 - RTF composant default preferences
marilynedell
2:31 6 Feb '10  
Thumbs Up I agree !
GeneralRe: ToDoList 6.1.a5 - RTF composant default preferences
Alexxcode
1:37 7 Feb '10  
I disagee. I think a rulerbutton is visible enough and also enables the user to switch quickly On/Off without using right click options which are less intuitive.

A rulerbutton indicates that it can be switched off which you may forget. My suggestion provides also consistense as most of the rightclick functions have already their own button, right?

Alexandra


Last Updated 18 Jan 2010 | Advertise | Privacy | Terms of Use | Copyright © CodeProject, 1999-2010