New topic: 

enable/disable webtoolbar button in code

<http://forums.realsoftware.com/viewtopic.php?t=46447>

         Page 1 of 1
   [ 1 post ]                 Previous topic | Next topic          Author  
Message        Bodevinaat          Post subject: enable/disable webtoolbar 
button in codePosted: Sat Jan 05, 2013 9:14 am                         
Joined: Tue Aug 28, 2012 3:52 am
Posts: 12                Hi,

I tried to enable a disabled webtoolbar button in code. What seems logical to 
me:

if useraction() then
  mainToolbar.ItemAtIndex(1).Enable = True
end if


or following Realbasic logic:

if useraction() then
  mainToolbar.Button(1).Enable = True
end if


Unfortunately, it doesn't work.

Do you have to find the correct button via enumeration? If so, why do you have 
to find the correct button via Item.Name in case of a 
sub ButtonAction(Item as WebToolbarButton)
  if item.name = "copyButton"  then
  doThisaction()
  end if


This doesn't sound logical to me.

Thanks.   
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 1 post ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to