Forums › Forums › SIMPOL Programming › Problem with displaying forms
- This topic has 2 replies, 3 voices, and was last updated 11 years, 2 months ago by Jim Locker.
- AuthorPosts
- February 12, 2013 at 4:31 pm #212JD KromkowskiParticipant
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.
February 13, 2013 at 4:44 pm #2104Jim LockerMemberLooks 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.February 13, 2013 at 9:50 pm #1573MichaelKeymasterOn 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 ifThe 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
- AuthorPosts
- You must be logged in to reply to this topic.