JTDraw Update




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.

Downloads

Download demo project - 300 Kb


Comments

  • http://www.codejock.com

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

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

    http://www.codejock.com

    Reply
  • Compile Errors: resource files missing

    Posted by Legacy on 05/30/2003 12: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)

    Reply
  • I must transform an image bitmap in text rows

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

    Originally posted by: francesca

    hello!
    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;

    main()
    {
    cout<<"ciao";
    system("PAUSE");
    return 0;
    }

    someone has some idea of because is these problems?

    thanks

    francesca

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

    Posted by Legacy on 02/15/2003 12: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
    Dijon
    France

    Reply
  • Antigrain instead of GDI+

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

    Originally posted by: Martin Weber

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

    Reply
  • Please help!

    Posted by Legacy on 12/19/2002 12: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?

    Feng

    Reply
  • XD++ Library V5.07

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

    Originally posted by: A

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

    Reply
  • How to add Group / Ungroup and Rotate

    Posted by Legacy on 12/07/2002 12: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.

    Thanks.

    Reply
  • Re: How to add Group / Ungroup and Rotate

    Posted by Legacy on 12/07/2002 12: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.

    Reply
  • error LNK2001?

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

    Originally posted by: chenxr

    ********************************************************
    
    Linking...
    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!

    Reply
  • Loading, Please Wait ...

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

Top White Papers and Webcasts

  • Live Event Date: November 20, 2014 @ 2:00 p.m. ET / 11:00 a.m. PT Are you wanting to target two or more platforms such as iOS, Android, and/or Windows? You are not alone. 90% of enterprises today are targeting two or more platforms. Attend this eSeminar to discover how mobile app developers can rely on one IDE to create applications across platforms and approaches (web, native, and/or hybrid), saving time, money, and effort and introducing apps to market faster. You'll learn the trade-offs for gaining long …

  • Live Event Date: October 29, 2014 @ 11:00 a.m. ET / 8:00 a.m. PT Are you interested in building a cognitive application using the power of IBM Watson? Need a platform that provides speed and ease for rapidly deploying this application? Join Chris Madison, Watson Solution Architect, as he walks through the process of building a Watson powered application on IBM Bluemix. Chris will talk about the new Watson Services just released on IBM bluemix, but more importantly he will do a step by step cognitive …

Most Popular Programming Stories

More for Developers

Latest Developer Headlines

RSS Feeds