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



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

Tabbed Object vs. Conditional Object

  • Filter
  • Time
  • Show
Clear All
new posts

    Tabbed Object vs. Conditional Object

    Does anyone have a decent working model illustrating how a Conditional Object can be made to look & behave like a tabbed object?

    I'm unhappy with the way my form screens are flashing while using the tabbed object, and therefore am considering converting them (somehow?) to conditional objects. A working example that shows a CO which behaves like a tabbed object would be a big help.


    -- t

    RE: Tabbed Object vs. Conditional Object

    Hi Tom,

    I agree so I did just that. Will get som info together and post it shortly. I works GREAT!!

    TYVM :) kenn

    Knowing what you can achieve will not become reality until you imagine and explore.


      RE: Tabbed Object vs. Conditional Object

      Hi Tom,

      Here's how I did it. Others may have a better way but it works. There a 3 steps.

      Step 1...In form design, click the V icon and create a variable. Mine is vcCondLayer. See pic 8.

      Step 2...In the conditional object's properties, create a condition for each object. See pic 9.

      Step 3...Create a button for each condition. See pic 10.

      Hope this helps. Let me know if you find a better way.

      TYVM :) kenn

      Knowing what you can achieve will not become reality until you imagine and explore.


        RE: Tabbed Object vs. Conditional Object

        Couldn't send all pics at one time, over the limit. Therse pics show the completed conditional object. FWIW, the field labels for the fields at the top are actually buttons which perform a progressive lookup for each field. That way, my client can search any of those fields for a customer's record. The browse at the left, shows each invoice for my client's customer. Click on the invoice number and then click a button for the conditional layer to see specific info about that particular incoice for the given customer.

        I'm always open to comments and critique as along as it's positive.

        TYVM :) kenn

        Knowing what you can achieve will not become reality until you imagine and explore.


          RE: Tabbed Object vs. Conditional Object

          Here's the other pics. Had to delete a couple but you'll get the idea.

          TYVM :) kenn

          Knowing what you can achieve will not become reality until you imagine and explore.


            RE: Tabbed Object vs. Conditional Object


            I have converted all of my tabbed forms to buttons with conditional objects. Most of them I have the buttons running down the left side with only a couple on top. I have attached a photo of one of my forms to show the background color of the button that was pushed.

            The following is the code from the ONPUSH event for button number 1. Since all buttons can still be viewed when the conditional object changes, I set the background color of the button pushed and reset the background color of all other buttons. Each button has the same code except for the value of AdminCond and which button gets the highlighted color for the background.

            'Inline-Xbasic. Handle Button Presses for Conditional Object.

            'Inline-Xbasic. Code to handle button presses
            'Set the value of variables.

            DIM AdminCond as n

            AdminCond = 20
            admincond = 1

            'Create a new variable called 'junk1' and set its value to '=rand()*1.2
            'This changes focus to determine a change in the value of the AdminCond field
            dim Shared junk1 AS N
            junk1 = convert_type(a5_eval_expression("=rand()*1.2"),"N")

            'Set Button1 to Dark Red.
            topparent:Button1.fill.forecolor = "Dark Red"
            topparent:Button2.fill.forecolor = "Dark Blue"
            topparent:Button3.fill.forecolor = "Dark Blue"
            topparent:Button4.fill.forecolor = "Dark Blue"

            'Refresh data in current form.
            'Can only resynch data in View mode, so save record first to be sure that layout is in View mode.

            If you need a working example, let me know and I will convert one of the forms in Alphasports.

            Hope this helps,
            Jerry Gray


              RE: Tabbed Object vs. Conditional Object

              Ken, you might want to try saving your screen shots in .PNG files since they are smaller and often clearer for this type of screen shot. (jpg works better for photos with a lot of mixed colors like nature shots.)

              Just to see what would happen, I converted all 8 of your shots to .png and the resulting zip file was 827 meg vs. your combined 955. I've seen larger differences using 75% compression in jpg so I'm guessing you had your compression turned up higher - or is that "down lower" - anyway my guess is that yours are more compressed.

              If your program won't write to .png, I use a freeware program called MWSnap that was recommended by someone else on this board. (I used to convert using MS Photo Editor which, for some reason, seems to make smaller .png files.)


                RE: Tabbed Object vs. Conditional Object

                *.Gif files also seem to be small & have good res.
                AlphaBase Solutions, LLC

                [email protected]


                  RE: Tabbed Object vs. Conditional Object


                  Yes, I can save to png and gif so will do that next time. Thanks for the info.

                  TYVM :) kenn

                  Knowing what you can achieve will not become reality until you imagine and explore.


                    RE: Tabbed Object vs. Conditional Object

                    I'll do the same. I noticed that the JPG's were rather large. I normally reduced the size by reducing the quality.

                    Jerry Gray


                      RE: Tabbed Object vs. Conditional Object

                      I did a quick test with the different image types. I saved the picture I originally sent in different types.


                      GIF = 53 kb
                      JPG = 211 kb
                      PNG = 225 kb
                      BMP = 2,398 kb
                      PCX = 386 kb
                      TGA = 2,397 kb
                      TIF = 2,408 kb

                      I had no idea there was so much difference. They all looked just as good on the screen.

                      It will make my help file smaller too.

                      Thanks guys,
                      Jerry Gray


                        RE: Tabbed Object vs. Conditional Object

                        That is interesting. Apparently GIF and PNG sizes depend on the program???

                        Starting from your 211 k JPG here were my conversion results with two different programs:

                        MS Photo Editor:
                        PNG - 168 k
                        GIF - 295 k

                        PNG - 175 k
                        GIF - 168 k

                        Since I only recently started using MWSnap and converted using MS Photo Editor previously, I assumed (which was generally true for me) that PNG files would be smaller than GIF files.

                        I think if you start from a BMP and convert a screenshot of an A5 form to a PNG or GIF file then use enough JPG compression to get the same size file, the JPG will be starting to show fuzziness at the edges of color changes. Maybe not enough to be a bother in a browser but it will probably be there.

                        Another thing I've seen on occasion but can't really vouch for the consistency (i.e., it doesn't always work and I don't know why) is that GIF files sometimes re-size without losing the readability of text. So, if GIF is an option it might actually be the best choice.

                        Cal Locklin


                          RE: Tabbed Object vs. Conditional Object

                          Tom, I have no idea if it will help with your forms or not, but I�ve had some success with making most (not all) objects solids. It seems that text objects, field objects, frames, buttons, and tabs benefit from having their fill style set to solid. This is in version five�.haven�t tried v6 yet. Might be worth a try.


                            RE: Tabbed Object vs. Conditional Object

                            Hello Tom,

                            This takes me back. Anyone out there remember the first Alpha Conference in Houston? There was a presenter, geez I can't remember his name, from Michigan. Plied his Alpha skills with a cutlery company. Anyway part of his presentation was imitation tabbed forms in A5v1.

                            Attached is a quick example in the customer table of the AlphaSports db. It uses a conditional object, frame object, and a couple of buttons to imitate the tabs. I remove the bottom borders, and change the color of the buttons depending on which tab is active. Not perfect but works well and I'm sure it could be cleaned up more. The datadictionary files for the customer table are attached. Dump into AlphaSports directory.



                              RE: Tabbed Object vs. Conditional Object


                              I was at the conference in Houston, and if my memory is correct, Tom Marcellus put it together. He has gone on to bigger and better(?) things with the Windows upgrade to Q&A. You might try him at Lantica Software.

                              Dave Jampole

                              Women and cats will do whatever they want. The sooner men and dogs realize that, the happier they will be.