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

Set Text colour in Browse

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

    Set Text colour in Browse

    Hi Guys,

    I'm really stuck on this.

    The sample was created by Tim K. and Mike C in V8.

    I can get the browse Test to work in V9 but for the life of me I cant see where I have gone wrong, as I cant get the buttons in Test2 browse to change the text colours.

    Please can someone show me the error of my ways.

    Build beta v10 2427-3347.
    Regards
    Keith Hubert
    Alpha Guild Member
    London.
    KHDB Management Systems
    Skype = keith.hubert


    For your day-to-day Needs, you Need an Alpha Database!

    #2
    Re: Set Text colour in Browse

    This should work in any v

    Comment


      #3
      Re: Set Text colour in Browse

      Keith

      I found two things wrong with your test2 browse

      1. When I tried to bring up the "edit display" for the color column, there were not buttons showing in the genie. There was code on the event but there were no buttons showing even though they show in the column

      2. You did not enable the color equation for all the other columns with this code

      Code:
      alltrim(text_clr) + " on <Default>"
      To get it to work with your test2 browse, I had to delete the color column and then delete the event handler code. Then I recreated the color column with buttons and put the Topparent:text_clr.value=event into the browse events event.

      I also had to enable the color equation and place the code in the expression field for each field you want the color to change.

      Tom Baker

      Comment


        #4
        Re: Set Text colour in Browse

        More sensible..

        Comment


          #5
          Re: Set Text colour in Browse

          Hi Guys,

          There is definitely a problem with the browse with this build.

          I did what Tom suggested which did change the text colours in each row but I still cant get the buttons to work.

          I did download your file Gabe, but just like Tom, I lost the buttons when I went into design mode.

          I cant use email from this machine, please would you kindly send this in urgently as bug.
          Regards
          Keith Hubert
          Alpha Guild Member
          London.
          KHDB Management Systems
          Skype = keith.hubert


          For your day-to-day Needs, you Need an Alpha Database!

          Comment


            #6
            Re: Set Text colour in Browse

            Perhaps someone with v9 could test it. Do you have to have the buttons?

            Comment


              #7
              Re: Set Text colour in Browse

              Keith and Gabe

              The bug report was sent using Keith's original attachment and a lengthy description of how to repeat the process.

              I'll keep everyone posted.


              Keith - I really had a hard time with this one just as you had - the browse would work right after design but if you exited the app and then exited v10 and then went back into it - the browse did not work. I also tried it with other buttons - no go. It seems that Alpha is changing the name of text_clr as well as all the other names by adding a number to the end in other text_clr becomes text_clr0 and therefore the browse event will not work since it is looking for text_clr. I tried changing the name in the event to the name alpha gave it and it works. in other words topparent:text_clr.value becomes topparent:text_clr0.value etc.

              Really a mystery.

              Tom Baker

              Comment


                #8
                Re: Set Text colour in Browse

                In V9 the test browse in colors_set(2).zip works fine.

                The buttons in test2 browse are visible but when clicked on they do not bring about the change in color selected. Is there anything else I should test for?

                The browse in colors_1.zip works as well.

                Version 9 Build 2095
                System Addins Build 3264

                Comment


                  #9
                  Re: Set Text colour in Browse

                  Reply received from Selwyn


                  thanks. we will investigate
                  At 03:56 PM 9/5/2009, you wrote:

                  doug

                  The problem is that at time the buttons do not hold. Other times they do not fire since Alpha has changed the names of the text_clr field to text_clr with a numberical suffix. It shouldn't be that way - I found that in most cases the buttons work in V9 but they do not work at all in beta V10. Selwyn is investigating. As I said in my previous posts - it is a real mystery.

                  Tom Baker

                  Comment


                    #10
                    Re: Set Text colour in Browse

                    I've experienced the problem with changing the name of text_clr as well. To answer Keith's question I believe there is a difference in the two browse examples he posted. Look at column properties - other tab. Enable color equation should be checked. The color equation should be the same as in the first browse.

                    Interesting the object name in text_clr can also change to text_clr_. I have observed when the object name and field name differ the button won't function. The event is not called. The object names in other fields are subject to change as well. That doesn't appear to be a problem as there are no associated events. I suspect this is consistent with the result you reported.

                    Comment


                      #11
                      Re: Set Text colour in Browse

                      Doug

                      Normally when you have more than one form or browse on the same table, the fields do not change (ie. text_clr becomes text_clr0 ) In this case if create the first browse, the buttons seem to hold and the fonts are changed when you push a specific button. If you have the first browse working, and no other browse, duplicate that browse. When you load that new browse it will work for the first time. Then go into design mode but don't change anything, just save the duplicated browse. Now when you view the browse, the buttons don't work since Alpha has changed the names of the objects from text_clr to say text_clr0. If you go into the browse events, and change the code to topparent:text_clr0.value=event it may work - if is an on again off again problem. It shouldn't work that way - the browse event does not fire the second time around since Alpha has changed the names.

                      I gave all this info to Selwyn in my bug report (Keith Hubert is the one who found this bug but could not email from where he was - so I did it for him.)

                      We wait and see - I submitted the bug from the v10 beta.

                      I tried it with other buttons also and the same thing occurs - no firing and disappearing buttons.

                      Tom Baker

                      Comment


                        #12
                        Re: Set Text colour in Browse

                        Tom,
                        Thanks, I've got it now.

                        Comment


                          #13
                          Re: Set Text colour in Browse

                          Tom,

                          Thanks for sending the bug report.

                          I am using the latest download build 2431-3345.

                          I have put the browse onto a form as I need to use it in a set.

                          It sort of works but the events are not consistent for each row. Would you mind having a look at the attached sample and see if it is me or still a bug.
                          Regards
                          Keith Hubert
                          Alpha Guild Member
                          London.
                          KHDB Management Systems
                          Skype = keith.hubert


                          For your day-to-day Needs, you Need an Alpha Database!

                          Comment


                            #14
                            Re: Set Text colour in Browse

                            Keith

                            I would have to say it is still a bug.

                            Here is what I determined

                            First of all the first two rows of the browse test1 in the form work as they should. After that it seems that the color changes but erractically - it is almost as if they buttons are in order if the current color is red, then you have to change to blue first before black (but even that is not consistent).

                            The second and the biggest problem that I see, is that if you open the named browse in design mode and change anything, Alpha will rename all the fields in the browse by adding a zero or another number depending upon what the last field was named (that is all the fields not just the text_clr Field) AND the buttons cease to show - they disappear. (real problem)

                            The only way I could get the buttons to work properly was to abandon the named browse and embed a browse in the form. Then the buttons seem to work just fine, however, you would have to change the event code to show that the color change is in the browse
                            Code:
                             topparent:browse1:text_clr=event
                            I think that would be your only bet right now is to change to an embedded browse which seems to work.

                            I guess we will have to wait for a reply from Selwyn - but it would seem to me this is a real problem that must be addressed in V10. (the browse works as it should in V9 and V8.

                            Tom Baker

                            Comment


                              #15
                              Re: Set Text colour in Browse

                              Keith

                              Just received an email from Selwyn

                              this is fixed now.
                              thanks
                              Don't know if it will show up in the Beta or in the release.

                              Tom Baker

                              Comment

                              Working...
                              X