I'm having some difficulties using the WindowState attribute on my 
form.  Basically, I can't figure out where in the initialization 
sequence I ought to set WindowState to ensure that the window actually 
gets set to the specified state by the time other code is executed that 
relies on that.

        What I want is for the app to run in fullscreen.  I also have some 
objects that are set at certain positions within the window, so the 
window needs to already be fullscreen by the time those positions are 
set, or they will be off.  Simply setting WindowState="Fullscreen" 
doesn't reliably work, whether in afterInit, afterInitAll, or 
initProperties.  I can successfully get the window to fullscreen if I 
set it once the app is running (e.g., by creating a button that sets it 
to fullscreen when clicked).

        It seems I can also do something with callAfterInterval and setting 
it to call a function that sets the app to fullscreen after some 
interval of time.  However, I'm leery of this solution since it appears 
to depend on the particular interval I set, as well as on random factors 
involving how quickly the code executes, and I'm not sure how long an 
interval I'd need to set to guarantee that it will work.

        What I would ideally like is a way to say, when initializing the 
form, "Display the main window NOW and make sure it is fullscreen before 
proceeding any further."  That is, I'd like to have a "blocking" version 
of setting WindowState, that doesn't proceed until the window actually 
assumes the specified state.  This way the fullscreen "context" is 
properly set for what I want to subsequently do.

        So, what is the best way to make sure an app really gets fullscreen 
as early as possible?

Thanks,
-- 
--OKB (not okblacke)
Brendan Barnwell
"Do not follow where the path may lead.  Go, instead, where there is
no path, and leave a trail."
        --author unknown

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to