Virtual Developer Workshop: Containerized Development with Docker

Click here for a larger image.

Environment: VC6 SP3/4, NT4/5 GDI+, BCGControlBar

JTDraw was a simple drawing program started from a Microsoft Drawcli project. It was a small part of code from one of the projects that I developed for the visualization of a metabolic pathway. (My major is chemical engineering.) Based the questions and suggestions that have been given to the topic, I decided to release more code examples from my own project. The current version of Draw project includes the following features:

  1. Supports GDI+ drawing. It includes transparent filling, pattern filling, and using an image easily. For the UI, I developed my own color picker (very similar to the style of Office 2000), in which you can not only select the color, but also select the pattern, gradient, and picture you want to fill the shape.
  2. Supports multiple pages and zoom.
  3. Supports infinite step undo/redo. You can adjust the stacks to hold the undo/redo stack. In the example code, it is set to 20 steps.
  4. Still uses the BCGControlbar library. My version is the 5.82 release. I think the evaluation version of BCGControlbar should work. You can dig into the code to delete all the BCGControlbar stuff if you really hate it, but I suggest you should have one copy of this library. It is pretty cool and cheap.

My project is aimed at visualizing metabolic pathways in a living cell, so I have other objects that are not included in this example because I don't think many of you are interested in how to visualize a molecule or a reaction. The alignment of objects is not hard to implement, and my own code is related to network layout and may not have a general readership; hence, I leave the alignment function to readers.

GDI+ is part of new SDK release. It is free to download from the Microsoft Web site here.


Download demo project - 300 Kb


  • http://www.codejock.com

    Posted by Legacy on 06/08/2003 07:00am

    Originally posted by: The Best GUI Tools - VS.NET and Office XP/2003 Look!


  • Compile Errors: resource files missing

    Posted by Legacy on 05/30/2003 07:00am

    Originally posted by: TT

    --------------------Configuration: Draw - Win32 Debug--------------------
    Compiling resources...
    D:\draw\Draw.rc (88): error RC2135 : file not found: res\ico00006.ico
    D:\draw\Draw.rc (837): error RC2135 : file not found: res\bmp00001.bmp
    D:\draw\Draw.rc (838): error RC2135 : file not found: res\bmp00002.bmp
    D:\draw\Draw.rc (839): error RC2135 : file not found: res\b1.bmp
    D:\draw\Draw.rc (841): error RC2135 : file not found: res\b3.bmp
    D:\draw\Draw.rc (842): error RC2135 : file not found: res\b4.bmp
    D:\draw\Draw.rc (843): error RC2135 : file not found: res\b5.bmp
    D:\draw\Draw.rc (844): error RC2135 : file not found: res\bitmap3.bmp
    Error executing rc.exe.

    draw.exe - 8 error(s), 0 warning(s)

  • I must transform an image bitmap in text rows

    Posted by Legacy on 03/28/2003 08:00am

    Originally posted by: francesca

    I must transform an image bitmap in text rows, that is assign to every color of pixel a character ascii. all this in C++. I have unloaded the GDI++, but in the compilation (use the Dev-C++) gives a bag to me of errors (375!!) that they regard the library.
    the program is much simple one

    #include <GDIplus\Includes\gdiplus.h>
    #include <iostream>
    #include <stdlib.h>
    using namespace Gdiplus;
    using namespace std;

    return 0;

    someone has some idea of because is these problems?



  • Help ! Has anybody found the problem posed by Vcer Wang

    Posted by Legacy on 02/15/2003 08:00am

    Originally posted by: A Demolliens

    I also have mistakes with gdiplus with some words like "Fe2+" (the result is "+Fe2")or "Cu(s)" (the result is "(Cu(s").

    It does'nt work with JTDraw Update.

    Alain Demolliens

  • Antigrain instead of GDI+

    Posted by Legacy on 01/17/2003 08:00am

    Originally posted by: Martin Weber

    What about integrating Antigrain (http://www.antigrain.com/) into JTDRaw instead of using the slow GDI+?

  • Please help!

    Posted by Legacy on 12/19/2002 08:00am

    Originally posted by: jfeng

    I've installed GDI+ and setup the path for header/lib files. but when compile your jtdraw, the following error occurred.

    "error C2501: 'NotificationHook' : missing storage-class or type specifiers"

    Does any friend know how to fix it?


  • XD++ Library V5.07

    Posted by Legacy on 12/09/2002 08:00am

    Originally posted by: A

    Where can I get the XD++ full source code of the library.

  • How to add Group / Ungroup and Rotate

    Posted by Legacy on 12/07/2002 08:00am

    Originally posted by: John

    Can some one help me add those features to the JT2Draw.
    Also if someone know how to add drag & drop object like UCanCode's Diagram++ Library.


  • Re: How to add Group / Ungroup and Rotate

    Posted by Legacy on 12/07/2002 08:00am

    Originally posted by: Tao Zhu

    I have implemented rotation, grouping functions. but due to some policy, i cannot release it. but you may contact admin@svizsoft.com to check if my manager can help you out.
    BTW, what do you mean the drag and drop effect. If you mean outline the shapes when moving, sizing, rotating. I think it is easy. We also have implemented it.

  • error LNK2001?

    Posted by Legacy on 11/15/2002 08:00am

    Originally posted by: chenxr

    Draw.obj : error LNK2001: unresolved external symbol _GdiplusShutdown@8
    Debug/draw.exe : fatal error LNK1120: 1 unresolved externals
    Error executing link.exe.

    draw.exe - 2 error(s), 8 warning(s)
    Anyone can help me?Thx!

  • Loading, Please Wait ...

  • You must have javascript enabled in order to post comments.

Leave a Comment
  • Your email address will not be published. All fields are required.

Most Popular Programming Stories

More for Developers

RSS Feeds

Thanks for your registration, follow us on our social networks to keep up-to-date