PC Review


Reply
Thread Tools Rate Thread

Checking the state of the Scribble tool

 
 
mark
Guest
Posts: n/a
 
      4th Apr 2007
Is there a way to check the state (on or off) of the scribble tool and if
off, turn it on. Also when using, normally it turns off when you release
the mouse button. I need it to stay on until a button is clicked. so the
state would be check and automaticall turned on until a button is clicked to
turn it off.

Is this possible with code...if so, any ideas on the code?

Thanks


 
Reply With Quote
 
 
 
 
NickHK
Guest
Posts: n/a
 
      4th Apr 2007
Mark,
If you know the points that are required to produce your scribble, you could
run code to create it.
However, Excel does not natively expose the mouse coordinates on a WS,
although could probably fake it with API calls.
Depends what you are trying to do, but providing a <canvas> for the user
that does expose mouse coordinates (a userform) and then transfer that to
the WS as a scribble may be easier.

NickHK

"mark" <(E-Mail Removed)> wrote in message
news:4612eab9$0$27110$(E-Mail Removed)...
> Is there a way to check the state (on or off) of the scribble tool and if
> off, turn it on. Also when using, normally it turns off when you release
> the mouse button. I need it to stay on until a button is clicked. so the
> state would be check and automaticall turned on until a button is clicked

to
> turn it off.
>
> Is this possible with code...if so, any ideas on the code?
>
> Thanks
>
>




 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      4th Apr 2007
It doesn't seem possible to programatically change the automatic state of
the scribble control (ID:=409). Maybe if you drag the Lines toolbar onto the
sheet it'll save you a few clicks (grab the thin caption at the top). With
code -

Application.CommandBars("Lines").Visible = True

Regards,
Peter T


"mark" <(E-Mail Removed)> wrote in message
news:4612eab9$0$27110$(E-Mail Removed)...
> Is there a way to check the state (on or off) of the scribble tool and if
> off, turn it on. Also when using, normally it turns off when you release
> the mouse button. I need it to stay on until a button is clicked. so the
> state would be check and automaticall turned on until a button is clicked

to
> turn it off.
>
> Is this possible with code...if so, any ideas on the code?
>
> Thanks
>
>



 
Reply With Quote
 
mark
Guest
Posts: n/a
 
      6th Apr 2007
Thanks to Peter and Nick... i guess I can stop racking my brain over this
on


"Peter T" <peter_t@discussions> wrote in message
news:(E-Mail Removed)...
> It doesn't seem possible to programatically change the automatic state of
> the scribble control (ID:=409). Maybe if you drag the Lines toolbar onto
> the
> sheet it'll save you a few clicks (grab the thin caption at the top). With
> code -
>
> Application.CommandBars("Lines").Visible = True
>
> Regards,
> Peter T
>
>
> "mark" <(E-Mail Removed)> wrote in message
> news:4612eab9$0$27110$(E-Mail Removed)...
>> Is there a way to check the state (on or off) of the scribble tool and if
>> off, turn it on. Also when using, normally it turns off when you release
>> the mouse button. I need it to stay on until a button is clicked. so
>> the
>> state would be check and automaticall turned on until a button is clicked

> to
>> turn it off.
>>
>> Is this possible with code...if so, any ideas on the code?
>>
>> Thanks
>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Checking a Windows Service State and Starting one John Wright Microsoft VB .NET 3 2nd Jan 2008 09:22 PM
freehand drawing tool sometimes changes to scribble pen??? =?Utf-8?B?R2VydmFpc2U=?= Microsoft Powerpoint 4 19th Jul 2006 08:21 PM
PowerPoint shouldn't highlight last scribble when tool is locked. =?Utf-8?B?U3RldmVuIExpbmRlbGw=?= Microsoft Powerpoint 0 22nd Nov 2005 03:40 PM
Checking the State of a URL before XML Read =?Utf-8?B?R2xlbm4gV2lsc29u?= Microsoft C# .NET 0 8th Feb 2005 02:19 AM
Checking state of object field at runtime? David Whitney Microsoft C# .NET 3 26th Jul 2003 01:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 AM.