Forums › Forums › Superbase NG Personal › Dialog Frames
- This topic has 3 replies, 2 voices, and was last updated 11 years ago by Steven Kang.
- AuthorPosts
- April 15, 2013 at 8:48 pm #89Steven KangParticipant
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.
April 18, 2013 at 6:39 pm #1630MichaelKeymasterOn 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
April 19, 2013 at 12:15 am #2224Steven KangParticipantNeil 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
April 29, 2013 at 6:32 pm #1528MichaelKeymasterOn 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) - AuthorPosts
- You must be logged in to reply to this topic.