DiagramLib

Description

DiagramLib is a library that give the opportunity to draw some schema like Visio.  I did this librairy doing a addon to Microsoft Visual Studio.  The goal was simple use the drag&drop to quickly build a schema.

 

Features

  • You can draw many different shapes like: oval, rectangle, rounded rectangle, diamond and the special class shape.
  • Each shape is completely manageable by the UI.  You just need to right-click on a shape to get the Property windows, exactly like Microsoft Visual Studio.
  • You can draw connection between shapes.  Those connections will automatically be re-draw to optimize the path as you moving a shape.  Also the connections have the same customization feature as all shape.
  • The board will automatically expend if needed.
  • You can save and load the schema.

Code

To be able to use the library you just need to add a reference to it. 

   1: private GraphControl oBoard;


   2:  


   3: this.oBoard = new Compuware.DiagramLib.GraphControl();


   4:  


   5: this.oBoard.Dock = System.Windows.Forms.DockStyle.Fill;


   6: this.oBoard.Location = new System.Drawing.Point(0, 0);


   7: this.oBoard.Name = "oBoard";


   8: this.oBoard.ShowLoadSaveOption = true;


   9: this.oBoard.Size = new System.Drawing.Size(605, 372);


  10: this.oBoard.Tracking = false;




Download



I did a quick test application to play with the class that you can download here: http://boucheros.no-ip.org/TestDiagramLib/



If you prefer doing a Test application by you're self here is the DLL: Boucheros.DiagramLib.rar



 



ScreenShot



image



For any Question or comment feel free to live a comment.

What you must have to enjoy IE7

Recently I got some trouble with the so lovely Firefox, so I got no choice to suffer and use IE. But then I take the time to search how I can improve the application. Here is my top 4 of some add-ons that are really nice....

Internet Explorer Developer Toolbar

The Microsoft Internet Explorer Developer Toolbar provides a set of tools for quickly creating and debugging web pages. Tools include such areas as exploring the DOM of a page, locating specific elements on a page, and outlining code blocks. It's really look like FireBug, a MSUT to any developer. Download from here.

image

Inline Search

Inline Search is a quick way to search for content on a web page without pulling up the Find Dialog as well as providing the ability to find as you type and highlighted search terms.

http://www.ieforge.com/InlineSearch/HomePage

image

Extended Copy Menu

Again for all developer... Adds a “Copy As Html” and “Copy As Plain Text” to the context (right-click) menu.

http://ryanscook.com/adminsBlog/2007/02/firefox-ie-copy-context-menus.html

image004

IE7Pro

IE7Pro is an add-on for Internet Explorer which adds a lot of features and extras which make your Browsing faster,More Responsive and Sleek. It add also:

  • New Module: FasterIE,It will increase your IE surfing speed.
  • Add Session Manager function, it include save, load, copy, send by mail
  • IE context menu add save selected source code to file and clipboard as html, text, links
  • Online bookmark support IE8 webslice now
  • New ActiveXObject interface.
  • View page info SaveAs dialog support multi-select now
  • Add serverinfo plugin again

http://www.ie7pro.com/index.php?language=en

Voila! I hope you will enjoy those.

François

Change Font Color in Gnome Panels

 

I don't know if you are like me, but I prefer darker themes.

image

But with Ubuntu no UI interffface is present be default to change the color of the font in Gnome panels. Here the simple way I found.

  1. Open a terminal and type:

    Haskell-Code:

    sudo gedit .gtkrc-2.0



  2. Then a empty file will open so copy-paste this code:

    Haskell-Code:



    include "/home/autocrosser/.gnome2/panel-fontrc"style "desktop-icon"
    {
    NautilusIconContainer::frame_text = 1
    text[NORMAL] = "#000000"
    NautilusIconContainer::normal_alpha = 70
    }
    class "GtkWidget" style "desktop-icon"
    #NautilusIconContainer::dark_info_color="#888888"
    #NautilusIconContainer::light_info_color="#bbbbbb"
    #NautilusIconContainer::highlight_alpha=20
    style "panel"
    {
    fg[NORMAL] = "#ffffff"
    # fg[PRELIGHT] = "#000000″

    # fg[ACTIVE] = "#000000"
    # fg[SELECTED] = "#000000″

    # fg[INSENSITIVE] = "#8A857C"
    # bg[NORMAL] = "#000000″

    # bg[PRELIGHT] = "#dfdfdf"
    # bg[ACTIVE] = "#D0D0D0″

    # bg[SELECTED] = "#D8BB75″

    # bg[INSENSITIVE] = "#EFEFEF"
    # base[NORMAL] = "#ffffff"
    # base[PRELIGHT] = "#EFEFEF"
    # base[ACTIVE] = "#D0D0D0″

    # base[SELECTED] = "#DAB566″

    # base[INSENSITIVE] = "#E8E8E8″

    # text[NORMAL] = "#161616″

    # text[PRELIGHT] = "#000000″

    # text[ACTIVE] = "#000000″

    # text[SELECTED] = "#ffffff"
    # text[INSENSITIVE] = "#8A857C"
    }
    widget "*PanelWidget*" style "panel"
    widget "*PanelApplet*" style "panel"
    class "*Panel*" style "panel"
    widget_class "*Mail*" style "panel"
    class "*notif*" style "panel"
    class "*Notif*" style "panel"
    class "*Tray*" style "panel"
    class "*tray*" style "panel"


    That time I change the color code of: fg[NORMAL] = "#FFFFFF". You can change this fffor any color by using the #RRGGBB equivalent code.




  3. Save. Close the editor. Re-log and Enjoy!



  If you dont know the code for the color you want you can go here, Or you can use gcolor2.   To install it type in a terminal



Haskell-Code:



sudo apt-get install gcolor2


And when you are done, type: gcolor2 and voila!



I hope this little trick will make it eiser for you!



Franky