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

xdialog hyperlink

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

    xdialog hyperlink

    Hi,
    I want to create a hyperlink on an xdialog (like the "edit list..." that appears when Alpha first opens with the Select Database and you are looking at the Recent Database window (upper right).

    I can create a hotspot button but no "hand" appears. An embedded HTML has a hyperlink that does this but cannot seem to find the right syntax to include just a single line for a hyperlink to show.

    Here is a small xdialog with a hotspot on it in blue called [email protected]
    If this was used I would want a "hand" cursor to show when hovered over as well as a flyover color change....just like a hyperlink.

    Most likely an embedded HTML should be used but cannot get it even close (so did not even put my attempts in this code!).

    Any help/pointers would be great!


    Code:
    DIM vText1 as C
    DIM SHARED varC_result as C
    vText1 = "I would like to have a link displayed that acts or IS a hyperlink that shows"
    vText1 =vText1 + " a \"hand\" just as seen anytime your cursor hovers over a link."+crlf(2)
    vText1 =vText1 + "Whether this is done as I have it here with a hotspot button (NEED a HAND cursor and a flyover text change!) or with "
    vText1 =vText1 + "HTML embedded that will automatically create the hyperlink (With Hand cursor) matters not!"+crlf(2)
    vText1 =vText1 + "I made this a modeless dialog simply so that the email client, once accessed, can be edited."
    ok_button_label = "&OK"
    cancel_button_label = "&Cancel"
    varC_result = ui_modeless_dlg_box("Alpha Five",<<%dlg%
    {region}
    |{text=60,12:vText1};
    {endregion};
    {line=1,0};
    {region}
    {region}
    {color=Blue}
    {sp=20}<%B=N;[email protected]%19,1!hide_button_click>
    {endregion}
    {color=black}
    {lf=5}
    <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL>
    {endregion};
    %dlg%,<<%code%
    if a_dlg_button = "OK"
        ui_modeless_dlg_close("Alpha Five")
      elseif a_dlg_button = "Cancel"
        ui_modeless_dlg_close("Alpha Five")
    end if
    
    if a_dlg_button = "hide_button_click"
        email_client_auto("[email protected]")
        a_dlg_button = ""
    end if
    %code%)
    Mike
    __________________________________________
    It is only when we forget all our learning that we begin to know.
    It's not what you look at that matters, it's what you see.
    Henry David Thoreau
    __________________________________________




    #2
    Re: xdialog hyperlink

    Building XDialog with html and a hyperlink isn't hard, so maybe I don't understand what you're looking for, but here's an html example:

    Code:
    'Create an XDialog dialog box to prompt for parameters.
    DIM htxt as P
    dim htxt.object as p 
    dim htxt.class as c
    htxt.class = "dhtmledit.dhtmledit"
    DIM SHARED varC_result as C
    DIM htxt_html as c 
    htxt_html = <<%html%
    <html>
    <head>
    <meta name="generator" content="Alpha Five HTML Editor">
    <title></title>
    <style>
    <!--
    p            { margin-top: 0; margin-bottom: 0 }
    -->
    </style>
    </head>
    <body>
    Here is some html text. <br>
    Here is a hyperlink to a page: <br>
    <a href="http://msgboard.alphasoftware.com/alphaforum/index.php" >Alpha Software Message Board</a>
    </body>
    </html>%html%
    
    'Force the background color of the html text to be Win3D so that it blends in with the Xdialog box.
    dim win3dcolor as c 
    win3dcolor = ui_color_format("win3d","#rhghbh")
    
    htxt_html = a5_html_background(htxt_html,win3dcolor)
    ok_button_label = "&OK"
    cancel_button_label = "&Cancel"
    varC_result = ui_dlg_box("Alpha Five",<<%dlg%
    {startup=init}
    {region}
    | {activex=60,7htxt?.f.};
    {endregion};
    {line=1,0};
    {region}
    <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL>
    {endregion};
    %dlg%,<<%code%
    if a_dlg_button = "init" then 
    	a_dlg_button = ""
    	htxt.object.browsemode = .t. 
    	htxt.object.appearance = 0
    	htxt.object.ScrollBars = .f.
    	on error goto htxt_error
    	htxt.object.documenthtml = htxt_html
    	on error goto 0
    	htxt.object.Refresh()
    	a_dlg_button = ""
    
    end if
    end 
    
    htxt_error:
    ui_msg_box("Error","Invalid URL or HTML content.",UI_STOP_SYMBOL)
    end
    %code%)
    -Steve
    sigpic

    Comment


      #3
      Re: xdialog hyperlink

      Thanks Steve,
      Seems like that is the problem....You have built the link into HTML which is a xdialog box unto itself. I have been able to bring up a box like what you produced FROM my current xdialog....but I want to have just the link inside of say the xdialog I gave as a sample. Or am I looking at this backward.....should I create the HTML xdialog and then add other my other "stuff" to it. :)

      If I am missing something simple I will try to find it ....
      Mike
      __________________________________________
      It is only when we forget all our learning that we begin to know.
      It's not what you look at that matters, it's what you see.
      Henry David Thoreau
      __________________________________________



      Comment


        #4
        Re: xdialog hyperlink

        You're saying you want an html control and other controls, right? See attached picture.

        You know how to build the other controls.

        When you build the html control, establish a variable in your XDialog definition, and designate that variable as HTML Text (near the bottom of the list) and then go define your html.

        Is that what you want?
        -Steve
        sigpic

        Comment


          #5
          Re: xdialog hyperlink

          Yes, and remember trying just that but did not seem to get the correct result....then I never went back to the genie and have been trying to create it all "freehand". :) back to the genie it is! Thanks--will report back with results.
          Mike
          __________________________________________
          It is only when we forget all our learning that we begin to know.
          It's not what you look at that matters, it's what you see.
          Henry David Thoreau
          __________________________________________



          Comment


            #6
            Re: xdialog hyperlink

            Not being all that familiar with html type stuff I took a slightly different approach and based this on the html form control rather than the activex control.

            Code:
            [COLOR="Blue"]DIM htext as p
            DIM htext.html as c
            DIM htext.events as c
            
            htext.html = <<%html%
            <a href=""  a5:onClick="mtm()">Send Mike an email</a>
            %html%
            
            htext.events = <<%code%
            function mtm as v ()
                email_client_auto("[email protected]")
            end function
            %code%
            [/COLOR]
            
            DIM vText1 as C
            DIM SHARED varC_result as C
            vText1 = "I would like to have a link displayed that acts or IS a hyperlink that shows"
            vText1 =vText1 + " a \"hand\" just as seen anytime your cursor hovers over a link."+crlf(2)
            vText1 =vText1 + "Whether this is done as I have it here with a hotspot button (NEED a HAND cursor and a flyover text change!) or with "
            vText1 =vText1 + "HTML embedded that will automatically create the hyperlink (With Hand cursor) matters not!"+crlf(2)
            vText1 =vText1 + "I made this a modeless dialog simply so that the email client, once accessed, can be edited."
            ok_button_label = "&OK"
            cancel_button_label = "&Cancel"
            varC_result = ui_modeless_dlg_box("Alpha Five",<<%dlg%
            {region}
            |{text=60,12:vText1};
            {endregion};
            {line=1,0};
            {region}
            [COLOR="Blue"]{HTMLForm=40,4htext};[/COLOR]
            {lf=5}
            <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL>
            {endregion};
            %dlg%,<<%code%
            if a_dlg_button = "OK"
                ui_modeless_dlg_close("Alpha Five")
              elseif a_dlg_button = "Cancel"
                ui_modeless_dlg_close("Alpha Five")
            end if
            %code%)
            Last edited by Tim Kiebert; 11-21-2009, 09:14 PM. Reason: Highlighted relevant stuff in blue
            Tim Kiebert
            Eagle Creek Citrus
            A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

            Comment


              #7
              Re: xdialog hyperlink

              Thanks Steve. One of the hurdles was to have it blend in with the rest of the gradient xdialog box which until now I couldn't do---but using the genie led me to the solution.

              Modifying the following is easy once known how! All that is needed is to use the actual name of the color used (standard or custom) and only change that--so in the following I just changed Win3d to Light Tan....all there was to it.
              Code:
              'Force the background color of the html text to be Win3D so that it blends in with the Xdialog box.
              dim win3dcolor as c 
              win3dcolor = ui_color_format("Light Tan","#rhghbh")
              vHtml_html = a5_html_background(vHtml_html,win3dcolor)
              A few more tweaks should now finish what I need--trying to have almost no gap between my image and this html and change font and such.

              Thanks again Steve--just needed the nudge.
              Mike
              __________________________________________
              It is only when we forget all our learning that we begin to know.
              It's not what you look at that matters, it's what you see.
              Henry David Thoreau
              __________________________________________



              Comment


                #8
                Re: xdialog hyperlink

                Just saw your addition Tim....studying it now---seems much simpler.



                EDIT LATER: seemed simpler but actually almost the same as still have to add the parameters necessary to have it blend in and also to eliminate the scroll bars just like Steve's solution has....so actually a tossup as it appears to be the same way to do it, just approaching it from different ways.

                Still do appreciate your time Tim (as I always do!! Still waiting for you to come over here so you can collect your dues from me!)
                Last edited by MikeC; 11-21-2009, 09:37 PM.
                Mike
                __________________________________________
                It is only when we forget all our learning that we begin to know.
                It's not what you look at that matters, it's what you see.
                Henry David Thoreau
                __________________________________________



                Comment


                  #9
                  Re: xdialog hyperlink

                  No html needed
                  Code:
                  DIM vText1 as C
                  DIM SHARED varC_result as C
                  vText1 = "I would like to have a link displayed that acts or IS a hyperlink that shows"
                  vText1 =vText1 + " a \"hand\" just as seen anytime your cursor hovers over a link."+crlf(2)
                  vText1 =vText1 + "Whether this is done as I have it here with a hotspot button (NEED a HAND cursor and a flyover text change!) or with "
                  vText1 =vText1 + "HTML embedded that will automatically create the hyperlink (With Hand cursor) matters not!"+crlf(2)
                  vText1 =vText1 + "I made this a modeless dialog simply so that the email client, once accessed, can be edited."
                  ok_button_label = "&OK"
                  cancel_button_label = "&Cancel"
                  varC_result = ui_modeless_dlg_box("Alpha Five",<<%dlg%
                  {region}
                  |{text=60,12:vText1};
                  {endregion};
                  {line=1,0};
                  [COLOR=Blue]{cursor=$sys_cursor_hand}
                  <%B=N;O={c=Blue}{F=Ariel,10,u} Send Mike an email; OF={c=Red} {F=Ariel,10,u}Send Mike an email%!sendmail>;
                  {cursor=};[/COLOR]
                  {lf=5};
                  <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL>
                  {endregion};
                  %dlg%,<<%code%
                  if a_dlg_button = "OK"
                      ui_modeless_dlg_close("Alpha Five")
                    elseif a_dlg_button = "Cancel"
                      ui_modeless_dlg_close("Alpha Five")
                  end if
                  
                  if a_dlg_button = "sendmail"
                      email_client_auto("[email protected]")
                      a_dlg_button = ""
                  end if
                  %code%)
                  Tim Kiebert
                  Eagle Creek Citrus
                  A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

                  Comment


                    #10
                    Re: xdialog hyperlink

                    What's the matter with using the {hyperlink} control in Xdialog?

                    That is,

                    {[email protected]!hide_button_click}

                    works for me. It even gives me the "hand" when the mouse is hovering over it.

                    Code:
                    DIM vText1 as C
                    DIM SHARED varC_result as C
                    vText1 = "I would like to have a link displayed that acts or IS a hyperlink that shows"
                    vText1 =vText1 + " a \"hand\" just as seen anytime your cursor hovers over a link."+crlf(2)
                    vText1 =vText1 + "Whether this is done as I have it here with a hotspot button (NEED a HAND cursor and a flyover text change!) or with "
                    vText1 =vText1 + "HTML embedded that will automatically create the hyperlink (With Hand cursor) matters not!"+crlf(2)
                    vText1 =vText1 + "I made this a modeless dialog simply so that the email client, once accessed, can be edited."
                    ok_button_label = "&OK"
                    cancel_button_label = "&Cancel"
                    varC_result = ui_modeless_dlg_box("Alpha Five",<<%dlg%
                    {region}
                    |{text=60,12:vText1};
                    {endregion};
                    {line=1,0};
                    {region}
                    {region}
                    {color=Blue}
                    {sp=20}{[email protected]!hide_button_click}
                    {endregion}
                    {color=black}
                    {lf=5}
                    <*15=ok_button_label!OK> <15=cancel_button_label!CANCEL>
                    {endregion};
                    %dlg%,<<%code%
                    if a_dlg_button = "OK"
                        ui_modeless_dlg_close("Alpha Five")
                      elseif a_dlg_button = "Cancel"
                        ui_modeless_dlg_close("Alpha Five")
                    end if
                    
                    if a_dlg_button = "hide_button_click"
                        email_client_auto("[email protected]")
                        a_dlg_button = ""
                    end if
                    %code%)

                    Comment


                      #11
                      Re: xdialog hyperlink

                      This last solution works the best as it can be aligned easily directly below an image with no space--the html seems to have a certain amount of space around it that I cannot get rid of.

                      Thanks yet again guys!!
                      Mike
                      __________________________________________
                      It is only when we forget all our learning that we begin to know.
                      It's not what you look at that matters, it's what you see.
                      Henry David Thoreau
                      __________________________________________



                      Comment


                        #12
                        Re: xdialog hyperlink

                        wow! From multi- to a 3 liner to a one liner now!!---like most things I have found, knowing what functions Alpha has is perhaps the hardest part of developing....once known it is all relatively easy!!

                        Thanks Peter!!
                        Mike
                        __________________________________________
                        It is only when we forget all our learning that we begin to know.
                        It's not what you look at that matters, it's what you see.
                        Henry David Thoreau
                        __________________________________________



                        Comment


                          #13
                          Re: xdialog hyperlink

                          How do you add a hyperlink for existing file or webpage on excel spreadsheet? When i add the hyperlink to the spreadsheet and attach a document from my desktop, it works ok but if you save it and then try it, it doesn't work? i tried sending it to a friend but when they open it, it says "Cannot open the specidied file?"

                          Comment

                          Working...
                          X