Skip to content

Problem with displaying forms

Forums Forums SIMPOL Programming Problem with displaying forms

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

    I’m not sure what the deal is? See attached. Smaller forms and windows seem to display with no issues. If I manually resize window then whole form appears.

    #2104
    Jim Locker
    Member

    Looks to me like an improperly sized child window. If you have an event
    handler for dealing with resize events, that event handler could be fixing
    it.

    #1573
    Michael
    Keymaster

    On 13/02/2013 16:44, jim wrote:
    > Looks to me like an improperly sized child window. If you have an event
    > handler for dealing with resize events, that event handler could be fixing
    > it.
    >

    This is a result of adding the innerwindow property. For some reason, I was unable to get the correct values of the window size
    during the event handler. What you can do is this for the first time you show the window:

    appw.resizewindowtoform()
    enablepagetools(appw.tb, appw.form)

    lt =@ point.new(0, 0)
    br =@ point.new(0, 0)
    getcenteredwindowrect(appw.w.outerwidth, appw.w.outerheight, lt, br, error=e)
    if e == 0
    appw.w.setposition(lt.x, lt.y)
    appw.innerwindow.setposition(outerwidth=appw.w.innerwidth – 2, outerheight=appw.w.innerheight – 2)
    end if

    The important bit is this last bit. Once you resize the window, it will be automatically updated, but there is still a problem
    getting the correct data during initial startup.

    Ciao, Neil

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