PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Gary Stout on April 24, 2010, 11:38:36 AM

Title: Visual Designer question
Post by: Gary Stout on April 24, 2010, 11:38:36 AM
I am trying to create a form larger in height than the current screen resolution and added a vertical scrollbar. When I test the form in the designer, I am not able to scroll to the bottom of the form.

Am I doing something wrong or is there some issues with creating a larger than visable form?

Thanks,
Gary
Title: Re: Visual Designer question
Post by: Paul Squires on April 24, 2010, 01:16:56 PM
Hi Gary,

You can scroll large forms using the visual designer itself. FireFly has a vertical and horizontal scrollbar that allows you to view your form that is larger than the screen or designer itself.

Title: Re: Visual Designer question
Post by: Gary Stout on April 25, 2010, 01:37:48 AM
Paul,

I tried that, but didn't seem to work for me. I am using a netbook with a screen resolution of 1366x766. The largest form height the designer would allow me to create was 771. I was trying to create a form size of 1024x800, but it wouldn't allow those properties.

Gary
Title: Re: Visual Designer question
Post by: Rolf Brandt on April 25, 2010, 07:04:32 AM
How did you set the Height property? With the mouse?
On my Netbook I can set the height property to 2000 without problem if I do it in the Properties of the Workspace dialog.
Title: Re: Visual Designer question
Post by: Cho Sing Kum on April 25, 2010, 07:59:32 AM
Hi Rolf,

But it is not 2000. Scroll FF down until you see the bottom of the form. Try to drag the form bigger with the mouse and the 2000 will change to something much smaller - to what the "real" height is I think.

Edit:
No, it is not the "real" height. I ran the project and use FF_Control_GetSize. It returns a different height.
Title: Re: Visual Designer question
Post by: Rolf Brandt on April 25, 2010, 12:16:22 PM
You are right, Cho.

The real height is limited to 1362. Even if I set the height in code it is limited to 1362.
Title: Re: Visual Designer question
Post by: Gary Stout on April 26, 2010, 02:47:42 AM
This is what I ran into. I could manually set the height but trying to drag the form would cause the height value to change to a lower value.
Title: Re: Visual Designer question
Post by: Roger Garstang on April 27, 2010, 01:58:52 PM
I got mine to go a max 1756. Sounds like an issue with the scrollbars in FF.  Either some type of limitation or a calculation error. I seem to remember something either in Petzold's Win32 book or a .Net thing I read recently about applications calculating scrolling wrong and depending on screen/window height the content will either be flush with the bottom or have a large white space margin between content and bottom. At my max height though there is a large white space at the bottom and it allows me to drag the size rectangle, but on release it gets no larger.

Edit: On testing more, every time I drag it the thing sizes to a different value...some higher some lower. And, if I just size right to left it even changes height and even worse variations depending on where I'm currently scrolled to.