Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
TShape Questions - Possible Bug?
Downloads
Daily Snapshots
FAQ
Wiki
Bugtracker
IRC channel
Developer Blog
Follow us on Twitter
Mailing List
Free pascal
Other languages
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Lazarus, the complete guide
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: TShape Questions - Possible Bug? (Read 1342 times)
Harrison
New member
Posts: 12
TShape Questions - Possible Bug?
«
on:
July 26, 2010, 06:50:48 am »
Alright, few questions regarding TShape.
1.
I've got a TShape box set to follow the mouse in a paintbox, to make it clear what block is selected in the box. However, as the position has to be recalculated for every pixel the mouse moves, the box is very flickery. Is it possible to stop the flickering?
Edit:
See next post
2.
Is it possible to make a TShape transparent?
Edit:
Set Pen mode to pmMask and style to psClear.
«
Last Edit: July 26, 2010, 09:35:05 am by Harrison
»
Logged
Harrison
New member
Posts: 12
Re: TShape Questions
«
Reply #1 on:
July 26, 2010, 09:07:47 am »
Well this is interesting. I found the source of the flicker. However, it doesn't make much sense, and is possibly a bug.
The paintbox that the shape was drawn over had a function tied to OnMouseLeave, which was supposed to hide the shape. For some reason, this function was called every other pixel that the mouse traveled. Unless I don't understand "OnMouseLeave", this shouldn't be the case, should it?
Logged
Marc
Administrator
Hero Member
Posts: 2450
Re: TShape Questions - Possible Bug?
«
Reply #2 on:
July 27, 2010, 12:23:04 am »
It shopuld indeed not, but are you sure the debugger didn't interfere ?
Logged
//--
{$I stdsig.inc}
//-Patches are always welcome at patch (at) dommelstein.net (please put the word "patch" in the subject)
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the
bug tracker
Harrison
New member
Posts: 12
Re: TShape Questions - Possible Bug?
«
Reply #3 on:
July 27, 2010, 01:28:25 am »
Just tested it, it does it regardless of if it is started with the debugger or without it.
Edit:
Well actually I just realized the snapshot of 0.9.29 with FPC 2.4.3 doesn't have a debugger? Is that right? I'm on Windows by the way.
«
Last Edit: July 27, 2010, 03:15:46 am by Harrison
»
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
TShape Questions - Possible Bug?
Recent
FPC 2.6.0 released!
by
MikeFinch
[
Today
at 01:00:43 am]
Custom Draw Controls miss...
by
lainz
[February 10, 2012, 11:30:47 pm]
[SOLVED] Stream newb - si...
by
User137
[February 10, 2012, 11:27:01 pm]
TTogglebox color
by
Switcher
[February 10, 2012, 11:00:39 pm]
LDAP, objectsid is there ...
by
snorkel
[February 10, 2012, 09:46:59 pm]
SSH DLL (w-putty-cd) coul...
by
ludob
[February 10, 2012, 05:48:02 pm]
TCDButtom select dsAndroi...
by
wcleyton
[February 10, 2012, 05:47:36 pm]
Get list of drives
by
ludob
[February 10, 2012, 05:07:46 pm]
POCKET PC 2002 ERROR WITH...
by
delphiturk
[February 10, 2012, 03:20:20 pm]
GetCursorPos
by
User137
[February 10, 2012, 03:18:27 pm]