Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Large Top/Left values cause scrolling problems
Thu, Nov 12 2015 9:30 AMPermanent Link

Rick

Now I know that this is going to sound a bit ridiculous but I thought
I'd mention it anyway.

I have a TDialog with scroll bars set to sbBoth. I have a panel
(dynamically created) on that form and set both the Top and Left
properties of that panel to around 9000000. I did this unintentionally
because the random function has changed from float to integer in EWB 2.03.

At this point the scroll bars don't seem to work properly. Moving one
around seems to interfere with the other and I can't scroll the panel
into view.

I realise that values like these are unlikely to be employed in an
actual application but wondered if there is some upper limit to Top/Left
in EWB that I need to be aware of?

--
Rick
Mon, Nov 16 2015 3:01 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Rick,

<< At this point the scroll bars don't seem to work properly. Moving one around seems to interfere with the other and I can't scroll the panel into view. >>

Run-time, design-time, or both ?

Tim Young
Elevate Software
www.elevatesoft.com
Mon, Nov 16 2015 6:15 PMPermanent Link

Rick

On 17/11/15 07:01, Tim Young [Elevate Software] wrote:
> << At this point the scroll bars don't seem to work properly. Moving one around seems to interfere with the other and I can't scroll the panel into view. >>
>
> Run-time, design-time, or both ?
>

Sorry, runtime.

As stated, the dynamically created panel (created in code and not during
design time) is moved on the TDialog unintentionally via the changed
random function (programmatically during the form's OnCreate). So, at
runtime, the form's scrollbars appear but don't seem to work properly.

The same problem occurs at runtime if a TPanel is dropped on the form
during design time and the TPanel's Left/Top are set to a very large
value. Of course, the panel can't be seen during design time and no
scroll bars appear on the form (during design time). Define an OnCreate
event for the form and set ScrollBars:=sbBoth. When running the
application, the form's scrollbars appear but don't seem to work
properly when trying to bring the panel into view.

--
Rick
Image