Forums › Forums › SIMPOL Programming › wxdialog() and dataform
- This topic has 5 replies, 2 voices, and was last updated 14 years, 5 months ago by JD Kromkowski.
- AuthorPosts
- October 30, 2009 at 9:31 pm #326JD KromkowskiParticipant
Perhaps, I have missed something in the documentation. Can a wxdialog contain a dataform1? If not why not; if so, what might I be doing wrong. (I was simply substituting the wxdialog as the “window” instead of wxwindow which worked fine.)
November 3, 2009 at 2:29 am #1773JD KromkowskiParticipantI think it might have come down to fact that I didn't create the wxdialog
as invisible first.It seems to be working now.
November 3, 2009 at 7:17 pm #1628MichaelKeymasterJDK wrote:
> Perhaps, I have missed something in the documentation.
>
> Can a wxdialog contain a dataform1?Sure, why not?
> If not why not; if so, what might I be doing wrong. (I was simply
> substituting the wxdialog as the "window" instead of wxwindow which
> worked fine.)It should work okay.
Ciao, Neil
November 5, 2009 at 1:43 am #1775JD KromkowskiParticipantUpon further reflection, that was not the only problem for it not working.
I also tried to use df.height and df.width to set the innerwidth and
innerheight.But while a wxformvar.height and wxformvar.width are valid; interestingly
I don't see a valid analog dataform1var.height and dataform1var.widthYou have to drill pretty far down to get at that in a dataform1
f.controls.head.key.page.wxformpage.width
or
f.pages.head.key.wxformpage.widthin either case its pretty far down the line. I suppose something like this:
f.page[n].width
where n=page number
would be too simple?
November 5, 2009 at 3:57 pm #1411MichaelKeymasterJDK wrote:
> I think it might have come down to fact that I didn't create the
> wxdialog as invisible first.
>
> It seems to be working now.
>You do need to create the dialog invisible first if you want to show it
modally. Otherwise it will be a non-modal dialog.Ciao, Neil
November 9, 2009 at 11:26 am #1423MichaelKeymasterJDK wrote:
> Upon further reflection, that was not the only problem for it not
> working.
>
> I also tried to use df.height and df.width to set the innerwidth and
> innerheight.
>
> But while a wxformvar.height and wxformvar.width are valid;
> interestingly I don't see a valid analog dataform1var.height and
> dataform1var.width
>
> You have to drill pretty far down to get at that in a dataform1
>
> f.controls.head.key.page.wxformpage.width or
> f.pages.head.key.wxformpage.width
>
> in either case its pretty far down the line. I suppose something like
> this:
>
> f.page[n].width
>
> where n=page number
>
> would be too simple?You can use f.currentpage.wxformpage.width. I may make the wxformpage
resolve, so you can do: f.currentpage.width.Ciao, Neil
- AuthorPosts
- You must be logged in to reply to this topic.