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:
- 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.
- Supports multiple pages and zoom.
- 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.
- 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.

Comments
http://www.codejock.com
Posted by Legacy on 06/08/2003 12:00amOriginally 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:00amOriginally 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)
ReplyI must transform an image bitmap in text rows
Posted by Legacy on 03/28/2003 12:00amOriginally 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
ReplyHelp ! Has anybody found the problem posed by Vcer Wang
Posted by Legacy on 02/15/2003 12:00amOriginally 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
ReplyDijon
France
Antigrain instead of GDI+
Posted by Legacy on 01/17/2003 12:00amOriginally posted by: Martin Weber
What about integrating Antigrain (http://www.antigrain.com/) into JTDRaw instead of using the slow GDI+?
ReplyPlease help!
Posted by Legacy on 12/19/2002 12:00amOriginally 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
ReplyXD++ Library V5.07
Posted by Legacy on 12/09/2002 12:00amOriginally posted by: A
Where can I get the XD++ full source code of the library.
ReplyHow to add Group / Ungroup and Rotate
Posted by Legacy on 12/07/2002 12:00amOriginally 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.
ReplyRe: How to add Group / Ungroup and Rotate
Posted by Legacy on 12/07/2002 12:00amOriginally 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.
ReplyBTW, 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 12:00amOriginally posted by: chenxr
ReplyLoading, Please Wait ...