I am using an Action Script to reposition a form which is not behaving as expected. This is looking like a bug to me, but I want to make sure that I�m not doing something wrong before reporting it.
As shown below in screen print 1, my form "frmTest" is defined with the following form properties on the Windows tab:
When the form is opened it correctly appears in the upper left corner of the screen, as shown in screen print 2.
Problem 1: When an action script is defined specifying the value only of property left, why is the mode, set as above to percentage, not applied correctly?
I placed a button on the form and defined the following Action script:
I expect that when this button is pushed, the form will be repositioned at 50% of the available screen width.
Instead, the window has been move approximately � inch to the right as shown in screen print 3.
Why was it not moved to the middle of the screen?
When I return to design mode for the form and [Current size and position], the settings indicate that the left of the form is .4 inches. Where did .4 come from?
Problem 2: When an action script is defined specifying left_mode and the left properties as percentage and 50 respectively, why does nothing happen at all?
I placed a button on the form and defined the following Action script:
I again expect that when this button is pushed, the form will be repositioned at 50% of the available screen width.
Instead, absolutely nothing happens when the button is pushed. No error messages are received. Nothing happens.
Any ideas of what's wrong? I'm just trying to move a form's left edge from the left edge of the screen to the middle of the screen.
As shown below in screen print 1, my form "frmTest" is defined with the following form properties on the Windows tab:
HTML Code:
Position left Percentage 0 Position top Percentage 0
Problem 1: When an action script is defined specifying the value only of property left, why is the mode, set as above to percentage, not applied correctly?
I placed a button on the form and defined the following Action script:
HTML Code:
Object properties(Get&Set) Set properties of Object(s) Set properties of object in which window? Current form or Browse window Set properties of the following objects �frmTest� window Set the following properties for �frmTest� window Left How will you specify the value? Specify the value now Value 50
Instead, the window has been move approximately � inch to the right as shown in screen print 3.
Why was it not moved to the middle of the screen?
When I return to design mode for the form and [Current size and position], the settings indicate that the left of the form is .4 inches. Where did .4 come from?
Problem 2: When an action script is defined specifying left_mode and the left properties as percentage and 50 respectively, why does nothing happen at all?
I placed a button on the form and defined the following Action script:
Code:
Object properties(Get&Set) Set properties of Object(s) Set properties of object in which window? Current form or Browse window Set properties of the following objects �frmTest� window Set the following properties for �frmTest� window window.left_mode How will you specify the value? Specify the value now Value �Percentage� Set the following properties for �frmTest� window Left How will you spcify the value? Specify the value now Value 50
Instead, absolutely nothing happens when the button is pushed. No error messages are received. Nothing happens.
Any ideas of what's wrong? I'm just trying to move a form's left edge from the left edge of the screen to the middle of the screen.
Comment