New topic: 

Bevel Buttons in cocoa broken

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

         Page 1 of 1
   [ 2 posts ]                 Previous topic | Next topic          Author  
Message        lajdesign          Post subject: Bevel Buttons in cocoa 
brokenPosted: Sat Nov 10, 2012 11:32 pm                         
Joined: Tue Aug 07, 2012 9:46 pm
Posts: 3                I have a program that uses the bevel button in the 
toggle mode, but with 2012 r1.2 and cocoa it is broken or I don't know how to 
use it. This code has worked for a long time. If I toggle a button, the logic 
in the background untoggles other buttons. Is there something I am missing or 
is this a big bug?

Code like the below doesn't fire correctly

  for i = 0 to 3  //set all to false
  if i = index then
  else
    ROTBevel(i).Value = False
  end if
  next


Thanks

Luke   
                             Top                DaveS          Post subject: 
Re: Bevel Buttons in cocoa brokenPosted: Sun Nov 11, 2012 12:35 am              
                   
Joined: Sun Aug 05, 2007 10:46 am
Posts: 4243
Location: San Diego, CA                Two things...

1.... this is a better way to do it

for i = 0 to 3  // make sure only selected is toggled.
  ROTBevel(i).Value = (i=index)
next


2.... You are right ... it works in Carbon... but not in Cocoa.      
_________________
Dave Sisemore
MacPro, OSX Lion 10.7.4 RB2012r1
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 2 posts ]      
-- 
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