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

a5w window close icon

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

    a5w window close icon

    Does anyone know how to change the close icon in the upper right corner of an a5w window?

    It is defined as images/$$window.button.close.png.a5image. I don't see a way to override that.

    Alternately is there a method that I could attach to an action button on a grid to close the parent a5w window.

    I tried closeLastOpenedA5Window() but no success.
    Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

    #2
    Re: a5w window close icon

    I am trying this code in the body section of the a5w page. I have changed the image src to the image I want. But I get no change in the close icon.

    A5dlg0.TITLE is the id of the div that contains the html.

    Anyone know why this won't work?
    Code:
    <script type="text/javascript">
    <!--
    debugger;
    var newHtml = "<input a5windowbuttonindex='0' a5windowbuttonname='Close' a5windowbuttontype='tool' class=''
     style='cursor: default;' src='mbClose.png' id='A5dlg0.TITLE.TOOLS.Close' type='image'>";
    var ele1 = document.getElementById('A5dlg0.TITLE')
    ele1.innerHTML = newHtml;
    
    -->
    </script>
    Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

    Comment


      #3
      Re: a5w window close icon

      I always have trouble finding this stuff... do you mean on a pop-up window, detail view?

      If so... then under the Grid Properties, Customize Icons, you change it there.

      Comment


        #4
        Re: a5w window close icon

        Thanks David,

        No it is not a popup. I am using an a5w page. I am not using a popup because of display issues on an android tablet. Maybe this will be corrected with the mobile feature but I can't wait.

        So what I have is A5dlg0.TITLE.TOOLS is the actual div I need. I can store the current innerHTML to a variable and it is the correct html. I just can't seem to change the current innerHTML to my new html. It is not showing any errors. Maybe there is a problem with my image code.
        Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

        Comment


          #5
          Re: a5w window close icon

          It is actually taking the change, but it is not changing the icon. Maybe I need to refresh that section somehow.
          Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

          Comment


            #6
            Re: a5w window close icon

            Sorry Frank... have to check this... the code is commented out... right?

            I may not be using this properly... but it seems to work. The HTML is getting replaced and the image is being displayed. It's just a blank a5w page. Could the problem be an image location issue?

            Code:
            <div id='A5dlg0.TITLE'>This is some HTML</div>
            
            <script type="text/javascript">
            
            var newHtml = "<input a5windowbuttonindex='0' a5windowbuttonname='Close' a5windowbuttontype='tool' class='' style='cursor: default;' src='images/$sys_error.png.a5image' id='A5dlg0.TITLE.TOOLS.Close' type='image'>";
            var ele1 = document.getElementById('A5dlg0.TITLE')
            ele1.innerHTML = newHtml;
            
            </script>
            Last edited by Davidk; 04-28-2011, 06:39 PM.

            Comment


              #7
              Re: a5w window close icon

              Thank you David for taking the time to help me with this issue. You must be right about my image location. I will continue to work with it until I get it or it gets me, hopefully not the latter.
              Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

              Comment


                #8
                Re: a5w window close icon

                Hard code a path and image name into the src= section just to see if that works.

                Comment


                  #9
                  Re: a5w window close icon

                  I have tried that and no success.

                  This is odd.

                  If I look at the variable newHTML after I have set the innerHTML of the element I see that it contains the changed html that I set it to. If I inspect the element with fire bug it still shows the oldHTML. I guess it's just over my head.

                  Code:
                  <script type="text/javascript">
                  <!--
                  debugger;
                  var newHTML = "<input a5windowbuttonindex='0' a5windowbuttonname='Close' a5windowbuttontype='tool' class='' style='cursor: default;' src='d:/A5WebRoot/mbClose.png' id='A5dlg0.TITLE.TOOLS.Close' type='image'>";
                  var oldHTML = document.getElementById('A5dlg0.TITLE.TOOLS').innerHTML;
                  document.getElementById('A5dlg0.TITLE.TOOLS').innerHTML = newHTML;
                  
                  var newHTML = document.getElementById('A5dlg0.TITLE.TOOLS').innerHTML;
                  here newHTML shows the changed html as I would expect.
                  
                  -->
                  </script>
                  Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

                  Comment


                    #10
                    Re: a5w window close icon

                    It looks ok... can't see what else is wrong. Where is 'A5dlg0.TITLE.TOOLS' being defined? And no errors under Firebug?

                    This is a new simple a5w page which produces the attached. The only thing I've changed is the image - changed it to a a5 included image. Send me your full page and I'll run it.

                    Code:
                    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
                    <html>
                    <head>
                    <meta name="generator" content="Alpha Five HTML Editor Version 10 Build 4138-3666">
                    <!-- must use in order to make XP Themes render -->
                    <meta HTTP-EQUIV="MSThemeCompatible" content="Yes" />
                    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
                    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
                    
                    <title></title>
                    </head>
                    <body>
                    
                    <div id='A5dlg0.TITLE.TOOLS'>This is some html</div>
                    
                    <script type="text/javascript">
                    var newHTML = "<input a5windowbuttonindex='0' a5windowbuttonname='Close' a5windowbuttontype='tool' class='' style='cursor: default;' src='images/$sys_error.png.a5image' id='A5dlg0.TITLE.TOOLS.Close' type='image'>";
                    var oldHTML = document.getElementById('A5dlg0.TITLE.TOOLS').innerHTML;
                    document.getElementById('A5dlg0.TITLE.TOOLS').innerHTML = newHTML;
                    </script>
                    
                    
                    
                    <p>&nbsp;</p>
                    </body></html>

                    Comment


                      #11
                      Re: a5w window close icon

                      I think I found it...

                      In your web control panel, click on Images and then right click to add a file and add your image and then publish it.

                      In my case I'm publishing locally to a folder under a5webroot named webdemo, so my test.png file got published to a5webroot\webdemo\test.png

                      Now the a5w page can see it if I specify my src as src='test.png' but not c:\a5webroot\webdemo\test.png or c:/a5webroot/webdemo or anything else.

                      Comment


                        #12
                        Re: a5w window close icon

                        Thanks again for helping me with my issue.

                        It seems that it may be more complicated than I thought.

                        I am opening the a5w window from action javascript in a button on my main grid.

                        My objective is to have a large button that can be easily pressed with a finger that will close the window.

                        What I have settled on is opening a grid instead of an a5w page and using the {grid.Object}.closeParentContainer(); in a large action button which closes the window.

                        I didn't do it this way at first because I had display issues by just opening a grid in a popup, but somehow, miraculously, the display problem has vanished and I can just use a grid in a popup which simplifies things and works well.

                        As always your responses have help me gain a further understanding of this incredibility sophisticated tool.

                        This is my result:
                        Win 10 64 Development, Win 7 64 WAS 11-1, 2, Win 10 64 AA-1,2, MySql, dbForge Studio The Best MySQL GUI Tool IMHO. http://www.devart.com/dbforge/mysql/studio/

                        Comment


                          #13
                          Re: a5w window close icon

                          Yeah, way more simple to do it this way... excellent it worked out... nice looking grid, too.

                          Comment

                          Working...
                          X