It appears that 3.09 has a problem moving an RRButton via program control.
I have a form that gets resized and several controls moved via program logic (not resizable via user). This was done before the ability to auto resize a form. The previous version (3.07) had a problem with what seemed to be related to moving disabled controls (they did not move) but the RRButtons worked.
Now RRButtons do not move under program control. These buttons are enabled when the move is attempted.
Mark - I don't think that I am following you here. You're saying that you can not move controls on a Form via your code? (eg. MoveWindow, SetWindowPos).
There is nothing in FF3 that interferes with moving controls. You should be able to move any control regardless of whether or not it is enabled or disabled.
If you are using SetWindowPos then make sure that you are not using the %SWP_NOMOVE flag. :)
I have a form that worked in 3.07. In the Form Create event I detect a condition and resize the form to be 150 pixels taller (read the current size and add 150). There are several controls that need to move down the form the same 150 pixels. I read their size and reset their position also. There is also one text box that is set to NOT visible. When the form is resized it is set to visible then moved. I am using the FF GetLoc and SetLoc to read the current position and then move each control down 150 pixels.
In 3.08 the moved controls did not reposition on the screen.
In 3.09 everything works fine EXCEPT the RRButtons do not move and appear to be covered in their original location by the moved text box.
I even added some debug code and when I read the new location of the RRButtons they are set to the new proper location but just don't move.
I will try to send you a project with just that form if I can cut out the other dependent stuff.
Hi Mark,
For the RRButton, go to the property "ResizeRules" and bring up the dialog. Make sure that the "Do not resize this control" checkbox is checked. After that change, does it make a difference?
The FireFly Workspace dialog said "Control will not resize" but on RRButtons the checkbox on the Rules dialog was NOT checked. Others appear that they are checked on the Rules dialog when they say "Control will not resize".
Once checked on the Rules dialog it works as expected. :)
Something to fix in 3.10.
I won't need to rev back to 3.07 at this point. I just need to make sure I don't resize any other forms without fixing the RRButtons.
Hey you might have a future in tech support if you can guess at this kind of solution and get it right without even seeing the code. ;)
Thanks.
:D
Educated guess in this case because I changed the behaviour of dealing with control resizing by adding that new checkbox. Got lucky on this one. :)