StrataFrame Forum

View security and anchor

http://forum.strataframe.net/Topic11965.aspx

By Chan - 10/14/2007

Hi,

I have a control, positioned at the middle of screen, and its anchor set 'Left, Bottom, Right, Top". While form resized, it will be resized according to fit the form as well. It is working fine even I resize my form.



However, when I login using authorized user, form is locked. Once I relogin using authorized user (without close the form), this control size would be resized incorrectly. It's height will be increased till bottom of form.



Any ideas?
By StrataFrame Team - 10/15/2007

Not at the moment, I'll have to run a test on that and see what is causing it... most likely something in the SetVisibleCore() is causing problems.
By Chan - 10/15/2007

Hi

May I know how does SF lock form? Which method should I refer to?



Thank you
By StrataFrame Team - 10/16/2007

Do you mean how does SF lock the form?  It creates a panel, places it on top of all other controls on the form and anchors it.  If you look within the Security project source code, it's in the SessionLock class: a method called LockForm().