Skip to content

Dialog Frames

Forums Forums Superbase NG Personal Dialog Frames

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #89
    Steven Kang
    Participant

    There is no dialog frame tool in the form designer. I understand the workaround is to draw 2 rectangles, with the second slightly offset from the first. Can we have a code snippet for this to show the default line thickness, offsets and line colours for the 2 rectangles. Any chance that this will be eventually implemented in the form designer? The user uses the dialogframe tool to draw the first rectangle and as soon as the mouse is released, the code draws the 2nd rectangle with the correct attribute along with a correctly positioned default label. It very difficult to individually select the partly overlapping rectangles un the FD, so any changes to the size or positions of the rectangles would likely need to be done by changing the form code directly in the IDE. S.

    #1630
    Michael
    Keymaster

    On 15/04/2013 21:48, Steven Kang wrote:
    > There is no dialog frame tool in the form designer.
    >
    > I understand the workaround is to draw 2 rectangles, with the second
    > slightly offset from the first.
    >
    > Can we have a code snippet for this to show the default line thickness,
    > offsets and line colours for the 2 rectangles.
    >
    > Any chance that this will be eventually implemented in the form designer?
    > The user uses the dialogframe tool to draw the first rectangle and as soon
    > as the mouse is released, the code draws the 2nd rectangle with the
    > correct attribute along with a correctly positioned default label. It
    > very difficult to individually select the partly overlapping rectangles un
    > the FD, so any changes to the size or positions of the rectangles would
    > likely need to be done by changing the form code directly in the IDE.
    >
    >
    > S.
    >

    We will either add a proper one, or we will add a cobbled together one, depending. There are stll a number of things I would like
    to see added, and I thoroughly agree with you about this one.

    Ciao, Neil

    #2224
    Steven Kang
    Participant

    Neil Robinson wrote:

    > We will either add a proper one, or we will add a cobbled together one,
    depending. There are stll a number of things I would like
    > to see added, and I thoroughly agree with you about this one.

    > Ciao, Neil

    OK. In the meantime, please can we have a code snippet of a dialogframe
    from one of the Simpol Personal dialogs to show the rectangle lines
    default properties.

    Incidentally, the dialogframes in the Page Setup dialog are missing the
    2nd rectangles and look odd.

    Steven

    #1528
    Michael
    Keymaster

    On 19/04/2013 01:15, Steven Kang wrote:
    > Neil Robinson wrote:
    >
    >> We will either add a proper one, or we will add a cobbled together one,
    > depending. There are stll a number of things I would like
    >> to see added, and I thoroughly agree with you about this one.
    >
    >> Ciao, Neil
    >
    > OK. In the meantime, please can we have a code snippet of a dialogframe
    > from one of the Simpol Personal dialogs to show the rectangle lines
    > default properties.
    >
    > Incidentally, the dialogframes in the Page Setup dialog are missing the
    > 2nd rectangles and look odd.
    >
    > Steven
    >
    >
    >

    Hi Steven,

    Here is the frame code for the two rectangles used in the Quick Report main form:

    Ciao, Neil

    ….
    clrBtnShadow =@ colors.getsyscolor(COLOR_BTNSHADOW)
    clrBtnHighlight =@ colors.getsyscolor(COLOR_BTNHIGHLIGHT)

    fg =@ f.addgraphic(wxgraphicrectangle, point1=point.new(16 * factor, 240 * factor), point2=point.new(769 * factor, 355 *
    factor), rgb=clrBtnFace.value, borderrgb=clrBtnHighlight.value, visible=.false, bordervisible=.true, name="rReportSettings",
    borderwidth=1, error=e)

    fg =@ f.addgraphic(wxgraphicrectangle, point1=point.new(15 * factor, 239 * factor), point2=point.new(768 * factor, 354 *
    factor), rgb=clrBtnFace.value, borderrgb=clrBtnShadow.value, visible=.false, bordervisible=.true, name="rReportPropertiesShadow",
    borderwidth=1, error=e)

    fg =@ f.addgraphic(wxgraphicrectangle, point1=point.new(500 * factor, 31 * factor), point2=point.new(769 * factor, 221 *
    factor), rgb=clrBtnFace.value, borderrgb=clrBtnHighlight.value, visible=.false, bordervisible=.true, name="rColumnSettings",
    borderwidth=1, error=e)

    fg =@ f.addgraphic(wxgraphicrectangle, point1=point.new(499 * factor, 30 * factor), point2=point.new(768 * factor, 220 *
    factor), rgb=clrBtnFace.value, borderrgb=clrBtnShadow.value, visible=.false, bordervisible=.true, name="rColumnSettingsShadow",
    borderwidth=1, error=e)

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.