Skip to Content
avatar image
Former Member

UI: Choose Button

Hi,

I want to use the system choose button in my addon, but I can't find it in the item-list of my form or in screen painter.

In the fixed assets addon I saw that the button is used.

kind regards,

Sandra

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    May 19, 2004 at 02:00 PM

    Hello,

    You should export the form containg the control to xml by using the following function of the form object:

    Public Function GetAsXML() As String

    Then you can copy/paste the xml part of the control into your own form and you have the desired control. You can do this with most controls which are not available in the screenpainter.

    Kind regards,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 21, 2004 at 08:15 AM

    You will need to set the image property of a button to "CHOOSE_ICON" to get the result you require. The XML for adding a choose button is:

    <Item description="" disp_desc="0" enabled="1" from_pane="0" height="16" left="652" linkto="" right_just="0" tab_order="0" to_pane="0" top="6" type="4" uid="btnchoose" visible="1" width="16">

    <Specific image="CHOOSE_ICON" />

    </Item>

    You'll need to adjust the top, left, height and width to suit your screen.

    Add comment
    10|10000 characters needed characters exceeded