B4J Code Snippet b4jVectEdit: CAD-interface development

Hi, All

It's my idea to create the interface of CAD software template version that can
  • create the vector objects
  • drag objects over the work area
  • move the area
  • click the objects, pins
  • zooming the objects by the mouse wheel: by re-calculation of each object
It's just my first try to create the vector object editor, and i decided to stop development cross-platformerly (also for B4A)

I hope, someone can help me to go on, any update of this code is welcome to this topic.
TempDownload.png
 

Attachments

  • TempDownload.png
    TempDownload.png
    29.3 KB · Views: 513
  • TempDownload.png
    TempDownload.png
    18.7 KB · Views: 537
  • TempDownload.png
    TempDownload.png
    17.3 KB · Views: 456
  • b4jVectEdit_v0.35.ZIP
    b4jVectEdit_v0.35.ZIP
    13.8 KB · Views: 386
Last edited:
But strange that if to use "test.bjl" (in the project Files folder) instead of creating the objects - the loaded layout is not zoomed.
 
Hello everyone.

Based on the following thread
https://www.b4x.com/android/forum/t...g-dragging-by-_touch-event.160800/post-986978

I have modified some lines of code for my need:
  • All objects(b4xVectEdit_component) are created by code (Not by designer) on a panel created in the designer
  • The size of the panel and the b4xVectEdit_component can be modified
  • MouseClicked(SecondaryButtonPressed) changes the width to the height and vice versa (90° rotation effect)
I have only tested in B4J (For now)
All improvements are welcome

Thanks to peacemaker for the support
 

Attachments

Back
Top