Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6675871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:54:54+00:00 2026-05-26T03:54:54+00:00

I have a desktop application project which involves a drawing component. Base language isn’t

  • 0

I have a desktop application project which involves a drawing component. Base language isn’t choosed yet.

Actions required for the drawing are the following :

  • Point & click to draw sticks and curves.
  • Gallery of shapes to add.
  • Select components and edit their properties (thickness, length, metadata)

All I can think of is SVG+Javascript, since I used to work for the web until now. And I would like a broader point of view, more choice.

Please do not argue on which language is theorically best. Instead, tell a story : which one did you used, for what kind of project, and what seemed easy or difficult to you.

Thanks for sharing your experience 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T03:54:54+00:00Added an answer on May 26, 2026 at 3:54 am

    Given the requirement there is only one language I’d use: Tcl. The Tk widget library has an excellent canvas widget which is vector based and is very easy to use. It is event based so feels very similar to javascript in terms of UI programming.

    Here’s code for point-and-click line drawing:

    First, creating the canvas is simply:

    canvas .c
    pack .c
    

    Now code for point and click line drawing:

    set currentObject ""
    
    set line {
      set ::currentObject [.c create line %x %y %x %y]
    
      bind . <Motion> {
        .c coords $currentObject [list %x %y %%x %%y]
      }
    }
    

    Now bind the line drawing code to mousedown event:

    bind . <ButtonPress-1> $line
    

    Just don’t forget to handle the mouseup event as well:

    bind . <ButtonRelease-1> {
      bind . <Motion> {}
    }
    

    That’s just about a dozen lines of code. Which is another reason I usually turn to Tcl for this kind of thing: it lets you do a lot with very little code.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Xcode project which builds a Cocoa desktop Browser application. My Browser
I have a project coming up that involves a desktop application (tournament scoring for
I have a desktop application which contains an App.config (program.exe.config at release) with clearly
I have an Java desktop application which connects directly with the DB (an Oracle).
I have developed a PHP-MySQL web application, which is a school-based project. My client
For a pet project, I develop a desktop application which requires API keys from
I'm working on a small C++ project which involves a launcher application that does
I have a .desktop file which associates my application (mmxfer) with specific mime types,
Project Description: I have to make an application in android which gets the Latitude
I have a desktop application written in C#. It is trying to manage a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.