Alpha DevCon 2018
Results 1 to 3 of 3

Thread: Adding bubble / popup help to your UDF's (Desktop apps)

  1. #1
    Member
    Real Name
    Allen Klimeck
    Join Date
    Apr 2000
    Location
    Colorado
    Posts
    527

    Default Adding bubble / popup help to your UDF's (Desktop apps)

    I have always wanted to add my own help to my functions. Here's how to do it:

    First you need to build an xdialog to present the information for the popup help. I have included some helpers for you to try. Import the attached functions. You need to name your parameters some thing unique if you get too close to the parameters that Alpha uses A5 will use Alpha's help not yours. For alt_msg_box_helper() I used bxdesign for alt_msg_point() I used fsize. Once you have imported the functions go to the interactive window and type alt_addin_helper() and press enter this will addin the function helpers to make it work.

    View the video
    https://youtu.be/q8x6puQCN7k
    Download the functions
    https://www.dropbox.com/s/jynbnkkswx...%20-1.txt?dl=0

    See this post by Selwyn it contain the code that Alpha uses to add help to their functions (very old):

    http://www.alphasoftware.com/alphafo...l=1#post252303

    I hope this helps Allen

  2. #2
    Member
    Real Name
    Allen Klimeck
    Join Date
    Apr 2000
    Location
    Colorado
    Posts
    527

    Default Re: Adding bubble / popup help to your UDF's (Desktop apps)

    My apologies I should have commented the alt_addin_help() function here is the missing comments:

    Code:
    In this line "fsize" is the parameter you would use in your function,
     "size of font(7, 8, 9, 10)" Is the description in the bubble help,
     "alt_msg_point()" Is the function that will display when you 'Ctrl-down-arrow',
     the "=" will send the output of the function to your function.
    vlresult = addin.function_argument_help("fsize","size of font(7, 8, 9, 10)","alt_msg_point()", "=", "")
    
    
    In this line %lastvalue% will feed the last value of bxdesign into "alt_msg_box_helper()" and
     "alt_msg_box_helper()" will use that value to display what the last value was.
    vlresult = addin.function_argument_help("bxdesign","style of message box", "alt_msg_box_helper(%lastvalue%)", "=", "")
    
    You must have this line if there is no lastvalue
    vlresult = addin.function_argument_help("bxdesign","style of message box", "alt_msg_box_helper()", "=", "")
    
    "=Q" feeds a quoted output
    vlresult = addin.function_argument_help("color","Pick a cloor", "ui_select_color2(%lastvalue%)", "=Q", "")
    
    vlresult = addin.function_argument_help("color","Pick a cloor", "ui_select_color2()", "=Q", "")
    You need to run this function for the helper to work in your functions

    If you change the code you must restart A5 and rerun the code
    Last edited by Allen Klimeck; 01-27-2016 at 03:48 PM.

  3. #3
    Member
    Real Name
    Craig Schumacker
    Join Date
    May 2000
    Posts
    684

    Default Re: Adding bubble / popup help to your UDF's (Desktop apps)

    Thank you for this, Allen. This is huge for anyone with a lot of custom functions. I often have to go back into the code to see what each parameter is.

Similar Threads

  1. Custom Bubble Help Popup Window
    By iRadiate in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 08-22-2014, 09:08 AM
  2. Replies: 6
    Last Post: 12-19-2012, 10:44 AM
  3. NEW Alpha Five v11 Desktop Edition for developing desktop apps
    By Richard Rabins in forum Alpha Five Version 11 - Desktop Applications
    Replies: 33
    Last Post: 02-07-2012, 07:06 AM
  4. New! Alpha Five v11 Desktop Edition for developing desktop apps
    By Richard Rabins in forum Alpha Five Version 9 - Desktop Applications
    Replies: 13
    Last Post: 02-05-2012, 09:38 AM
  5. browse control Popup or bubble
    By coop9653 in forum Alpha Five Version 8
    Replies: 4
    Last Post: 05-12-2008, 01:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •