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: 105
  • TempDownload.png
    TempDownload.png
    18.7 KB · Views: 109
  • TempDownload.png
    TempDownload.png
    17.3 KB · Views: 105
  • b4jVectEdit_v0.35.ZIP
    13.8 KB · Views: 97
Last edited:

peacemaker

Expert
Licensed User
Longtime User
But strange that if to use "test.bjl" (in the project Files folder) instead of creating the objects - the loaded layout is not zoomed.
 

kimstudio

Active Member
Licensed User
Longtime User
It works. What is the test button for?
This kind of interface is a little bit like my modular system with drag and connection although the vector part is quite different.
 

LGS

Member
Licensed User
Longtime User
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

  • B4J_b4xVectEdit.zip
    7.6 KB · Views: 52
Top