Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2016-02

Panel Top Negative Limitation

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hi
I have a problem using a panel, that is large say 70000. If I try to bring areas of this into the view area by using panel.top:=-avalue, this works fine until you hit ?32769; at which point the panel vanishes. How can this be corrected; or is there a workaround?

I have a forum thread; where I have attached simple project demonstrating the problem. http://forum.lazarus.freepascal.org/index.php/topic,31355.msg200797.html#msg200797

Any thoughts appreciated.

Josh

--------------------------------------------------------------------------------

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited. Voiceliveeditor.com accepts no liability for the content of this email, or for the consequences of any actions taken on the basis of the information provided.

-------------------------------------------------------------------------------- -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160204/58fd1856/attachment.html>

Reply by email

Martin Schreiber
to Graeme Geldenhuys
Graeme Geldenhuys wrote 7 lines
On 2016-02-04 17:51, wrote: > How can this be corrected; or is there a workaround? I'm not 100% sure, but I believe some windowing environments have a 65535px (or around that) upper limit. It might be that you are hitting that boundary.

X11 has a range of -32768..32767. Although the OP is on Windows AFAIK.

Martin

Reply by email

Giuliano Colla
to Unknown author: Hi I have a problem using a panel, that is large say 70000. If I try to bring areas of…

Il 04/02/2016 18:51, ha scritto:

Show quoted text 6 lines
Hi I have a problem using a panel, that is large say 70000. If I try to bring areas of this into the view area by using panel.top:=-avalue, this works fine until you hit ?32769; at which point the panel vanishes. How can this be corrected; or is there a workaround?

What I'd do in your place would be to use a TBitmap of the required size and populate it with whatever image you need. You're just working in memory, no visual components implied, you shouldn't have any constraint in its size. Then you may copy to the canvas of the visual object just the portion you want to show.
It should work quite smoothly.

Giuliano

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20160205/f58cf1ee/attachment.html>

Reply by email