Hi Fredrik,
I see qutie clearly now. Thanks very much for your detailed answer!

Best wishes 
Wei xuqiang
----- Original Message ----- 
From: "Fredrik Haegg" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, April 28, 2008 4:03 PM
Subject: Re: [qa-dev] [Automation]a question about buttons method tearsoff of 
toolbar


> Hi Weixq,
> 
> 
> weixq wrote:
>> Hello all,
>> I want to ask the use of the method 'TearsOff' of toolbar. And an example is 
>> that when you open the Font color window through clicking the Font color 
>> button of Text Formatting toolbar. I find we always use it. And can I guess 
>> that if a button can be clicked to pop up a dialog, we can use this method?
>>   
> Click works to click the button. TearOff to open the menu/dialog which
> has the "small triangle".
> Then you can select the color or whatever thing you want to select in
> the dialog/menu.
> If you then click on something in the office, the dialog will close. If
> you want the opened dialog
> to stay open you have to move it a little first, then it stays open
> until you ".close" it.
> 
>> But I don't understand something. For example, there are two kinds of 
>> buttons that can be clicked to make a dialog or window show out. But 
>> sometimes we can just click the button itself, just like the Character of 
>> Text Formatting toolbar. But sometimes we should click a small triangle 
>> button beside the button itself to let the window open, like the button Font 
>> color. So which one is this method be used usually? Is the second kind? But 
>> what can I do to the first one, use the click method only?
>>   
> TearOff is the method for Toolbars. If it doesn't work it's probably no
> Toolbar but a button. Which you have to ".OpenMenu" to open instead.
> 
> 
> Best regards
> / Fredrik
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to