Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

Line Drawing in Alpha

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Line Drawing in Alpha

    A client asked if i can convert their Microsoft Access Database to another database because of its limitation when it comes to its capacity with only 2GB, I told the client i can do it in Alpha Five, but the problem is I cannot do in alpha the feature of the access application which draws lines to become a simple map of a lot, In the application it collects data as point 1 and 2 then there is a Bearing then a distance, encoders provide the points then msaccess generates an image out of the given values. can we do this in alpha Five? say, i will enter a point 1 and point 2 then a line will be displayed, then i will specify the second point as North with BEARING and Distance then a line will be drawn.Hope someone from alpha experts show the power of alpha like the one created with MSaccess . Thank you.
    Attached Files

    #2
    Re: Line Drawing in Alpha

    You can certainly do this in A5. You will need to look at ui_bitmap_draw(), ui_screen_draw() and ui_printer_draw() in combination with the line() function. The wiki has some code examples from which you may be able to extract code similar to what you need. Also take a look on www.learn alpha.com where I'm pretty sure there are some line drawing examples.
    Finian

    Comment


      #3
      Re: Line Drawing in Alpha

      I cant figure out how o use ui_bitmap_draw, pls share a sample. thank you!

      Comment


        #4
        Re: Line Drawing in Alpha

        Sorry, I don't have any relevant code to share.

        A good place to start would be this page http://wiki.alphasoftware.com/Bitmap...phic+Functions where there are plenty of examples. There are code samples of how to draw rectangles and triangles and methods of rotating those objects. You'll also have to modify your existing form where you collect the map coordinates so that it conforms to A5's way of doing things.

        I'm not saying it's easy, and maybe not as easy in A5 as in Access, just that it's doable.
        Finian

        Comment


          #5
          Re: Line Drawing in Alpha

          I worked with the ui_bitmap_draw to build the dynamic image found here. I would suggest you not use Alpha Five for this unless your requirements are very simple or you cannot find a suitable alternate 3rd party utility made for drawing based on your parameters.
          Last edited by Steve Wood; 01-10-2013, 06:02 AM.
          Steve Wood
          See my profile on IADN

          Comment


            #6
            Re: Line Drawing in Alpha

            Originally posted by Steve Wood View Post
            I worked with the ui_bitmap_draw to build the dynamic image found here. I would suggest you not use Alpha Five for this unless your requirements are very simple or you cannot find a suitable alternate 3rd party utility made for drawing based on your parameters.
            Thank you for the replies. What could be an alternative third party control to create this kind and be able to integrate it into alpha five?
            Last edited by Steve Wood; 01-10-2013, 06:05 AM.

            Comment


              #7
              Re: Line Drawing in Alpha

              Originally posted by Finian Lennon View Post
              Sorry, I don't have any relevant code to share.

              A good place to start would be this page http://wiki.alphasoftware.com/Bitmap...phic+Functions where there are plenty of examples. There are code samples of how to draw rectangles and triangles and methods of rotating those objects. You'll also have to modify your existing form where you collect the map coordinates so that it conforms to A5's way of doing things.

              Maybe you can help me on this? How is it possible to base the drawing with the sample parameters on the attached image?

              I'm not saying it's easy, and maybe not as easy in A5 as in Access, just that it's doable.

              Comment


                #8
                Re: Line Drawing in Alpha

                BTW, the parameters according to the client is from a land survey data.

                Comment


                  #9
                  Re: Line Drawing in Alpha

                  Originally posted by JetLi View Post
                  Thank you for the replies. What could be an alternative third party control to create this kind and be able to integrate it into alpha five?
                  I don't agree with what Steve said. While you could use a 3rd party tool, it is very doable within Alpha to create a bitmap, display or print object with drawing commands within Alpha. That doesn't mean that you don't have to read the examples carefully. I use it in my CSDA Screen Capture Utility to scale images, and to draw my logo on them as a watermark for a trial version.

                  You are essentially creating a bunch of alpha drawing commands as a text string, and then passing them to a function that draws them. Take a look at the sample in Set_Origin().
                  Regards,

                  Ira J. Perlow
                  Computer Systems Design


                  CSDA A5 Products
                  New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
                  CSDA Barcode Functions

                  CSDA Code Utility
                  CSDA Screen Capture


                  Comment


                    #10
                    Re: Line Drawing in Alpha

                    Is the entire Access database limited to 2 GIGs, or is it a single table in the database?
                    Cole Custom Programming - Terrell, Texas
                    972 524 8714
                    [email protected]

                    ____________________
                    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                    Comment


                      #11
                      Re: Line Drawing in Alpha

                      Originally posted by martinwcole View Post
                      Is the entire Access database limited to 2 GIGs, or is it a single table in the database?
                      By default Access stores everything in one single file (.mdb). This single file cannot be larger than 2GB. I have read that it is possible to reference objects that reside in another mdb file. Thus allowing an Access project to extend beyond the 2GB limit.


                      Disclaimer: I do not do any work in Access, I have never tested any of the above, only have read about it on the internet. However since it was posted on the internet it must be true.
                      Andrew

                      Comment


                        #12
                        Re: Line Drawing in Alpha

                        maybe alpha can draw triangles squares circles,but, is it possible to draw from point1 to point2 in a certain degree or angle then point3 to point4 and another angle etc? like the one shown in the image, its something like a survey data then microsoft access draws the image,i tried in alpha but to no avail, please help. Thanks!

                        Comment


                          #13
                          Re: Line Drawing in Alpha

                          Originally posted by JetLi View Post
                          maybe alpha can draw triangles squares circles,but, is it possible to draw from point1 to point2 in a certain degree or angle then point3 to point4 and another angle etc? like the one shown in the image, its something like a survey data then microsoft access draws the image,i tried in alpha but to no avail, please help. Thanks!

                          Post 4 Finian provided a link to the Bitmap and Graphic Functions page on the alpha wiki.

                          On that page there is a function called UI_SHAPE_LINETO(). Did you look at that? From a simple glance this appears to do what you are wanting.
                          Andrew

                          Comment


                            #14
                            Re: Line Drawing in Alpha

                            Yap , I tried with the given data on the image attached but could not do it,

                            Comment


                              #15
                              Re: Line Drawing in Alpha

                              I tried with the given data on the image attached but could not do it
                              The data you show indicates line number, angle, and length.
                              The line to command accepts start and end points.
                              You need to translate line number, angle, and length into start and end points.
                              There can be only one.

                              Comment

                              Working...
                              X