Page 1 of 1
Brush tool issues
Posted: Tue Aug 28, 2012 8:51 am
by pthirkell
Create a stack with an image area and a button with the following script:
on mouseup
choose brush tool
set the brush to 8 - ie any old shape
set the brushcolor to 130,130,130 -- ie any old colour
end mouseup
It draws as expected in the image area; and nowhere else on the card.
In the dictionary comments however under 'brush' it says that: "When using the Brush tool, the cursor is the shape specified by the brush property (over images) or an arrow (anywhere else)..." Yet I find that the cursor shape remains in the brush shape anywhere on the card ... not just over the image area.
Also - when I try to draw in the image area using a pattern as per the documentation nothing happens:
on mouseup
choose brush tool
set the brush to 8 - ie any old shape
set the brushpattern to 204 -- ie as per the documentation example
end mouseup
Any ideas appreciated.
Re: Brush tool issues
Posted: Tue Aug 28, 2012 3:30 pm
by jmburnod
Hi pthirkell
It draws as expected in the image area; and nowhere else on the card.
Yes. With the paint tool you can paint only in the image area
If you want paint on the cd area set the rect of the image to the rect of the stack
Code: Select all
set the brushpattern to 204 -- ie as per the documentation example
Maybe there is not an image with the id number 204
Best regards
Jean-Marc
Re: Brush tool issues
Posted: Wed Aug 29, 2012 1:06 pm
by Klaus
There IS an image with id 204, create a button and set its icon to 204
I suspect this is a bug, since this does not work on my Mac either!
Re: Brush tool issues
Posted: Wed Aug 29, 2012 2:17 pm
by jmburnod
Don't work in my Mac too
But i'm sur i used it in the past

Re: Brush tool issues
Posted: Wed Aug 29, 2012 7:46 pm
by jacque
Maybe the IDE is interfering? Does it work when the IDE is suspended? I know there are scripts to control the cursor while the IDE is active.
Re: Brush tool issues
Posted: Wed Aug 29, 2012 10:58 pm
by pthirkell
Thanks all responses and it does seem to be a bug. Where do I file a bug report?
Also to reiterate a related problem, I understand that by default it only paints in the image area - not the card as a whole - which is the desired behavior. However when the cursor is not over the image area it still shows the chosen paint tool, not the arrow ... which also means that nothing responds to a mouse click or other actions outside the image area. This is contrary to the documented behaviour, whereby: "... the cursor is the shape specified by the brush property (over images) or an arrow (anywhere else)."
Another bug?
Re: Brush tool issues
Posted: Wed Aug 29, 2012 11:11 pm
by pthirkell
I presume that 'suspending the IDE' is the same as "Suspend Development Tools" under the 'Development' menu of Livecode?
Tks.
Re: Brush tool issues
Posted: Thu Aug 30, 2012 11:41 am
by Klaus
Hi pthirkell,
pthirkell wrote:Thanks all responses and it does seem to be a bug. Where do I file a bug report?
bugs@runrev.com
pthirkell wrote:Also to reiterate a related problem, I understand that by default it only paints in the image area - not the card as a whole - which is the desired behavior. However when the cursor is not over the image area it still shows the chosen paint tool, not the arrow ... which also means that nothing responds to a mouse click or other actions outside the image area. This is contrary to the documented behaviour, whereby: "... the cursor is the shape specified by the brush property (over images) or an arrow (anywhere else)."
Another bug?
I'd rather say "bad/incomplete docu"!
pthirkell wrote:I presume that 'suspending the IDE' is the same as "Suspend Development Tools" under the 'Development' menu of Livecode?
Yes, but this should definitively not affect this bug.
Best
Klaus