Skip to content

wxdialog() and dataform

Forums Forums SIMPOL Programming wxdialog() and dataform

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #326
    JD Kromkowski
    Participant

    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.)

    #1773
    JD Kromkowski
    Participant

    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.

    #1628
    Michael
    Keymaster

    JDK 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

    #1775
    JD Kromkowski
    Participant

    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?

    #1411
    Michael
    Keymaster

    JDK 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

    #1423
    Michael
    Keymaster

    JDK 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

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