Brush tool issues
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Brush tool issues
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.
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
Hi pthirkell
If you want paint on the cd area set the rect of the image to the rect of the stack
Maybe there is not an image with the id number 204
Best regards
Jean-Marc
Yes. With the paint tool you can paint only in the image areaIt draws as expected in the image area; and nowhere else on the card.
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
Best regards
Jean-Marc
https://alternatic.ch
Re: Brush tool issues
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!

I suspect this is a bug, since this does not work on my Mac either!
Re: Brush tool issues
Don't work in my Mac too
But i'm sur i used it in the past
But i'm sur i used it in the past

https://alternatic.ch
Re: Brush tool issues
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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: Brush tool issues
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?
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
I presume that 'suspending the IDE' is the same as "Suspend Development Tools" under the 'Development' menu of Livecode?
Tks.
Tks.
Re: Brush tool issues
Hi pthirkell,
Best
Klaus
bugs@runrev.compthirkell wrote:Thanks all responses and it does seem to be a bug. Where do I file a bug report?
I'd rather say "bad/incomplete docu"!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?

Yes, but this should definitively not affect this bug.pthirkell wrote:I presume that 'suspending the IDE' is the same as "Suspend Development Tools" under the 'Development' menu of Livecode?
Best
Klaus