New topic: 

Anyone interested in some iOS like buttons?

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

         Page 1 of 1
   [ 14 posts ]                 Previous topic | Next topic          Author  
Message        DaveS          Post subject: Anyone interested in some iOS like 
buttons?Posted: Sat Jan 28, 2012 4:27 pm                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 3406
Location: San Diego, CA                Thought this was a new control in 2011, 
but I guess I was thinking of the Segmented control.  So I wrote my own.  or a 
reasonable facsimile of it anyways.

Here is a picture of what they look like...  it is 2 classes and one module. If 
any interest I'll add a link to a copy of the project.

      
_________________
Dave Sisemore
MacPro, OSX 10.6.8 RB2011r3
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                swort          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 4:33 pm 
                        
Joined: Mon May 31, 2010 5:35 am
Posts: 1904
Location: Netherlands                looks very interesting dave!

please let me know how i can get those.      
_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source 
plugins)
For Dutch User Groups ask me to enter!  
                             Top                 eudosia          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 4:44 pm 
                        
Joined: Wed Oct 06, 2010 10:25 am
Posts: 57
Location: ---                Very very nice button control.
Good job Dave.
I think It would be very nice to share it with us.
Best regards,
Max (eudosia)
http://www.eudosia-systems.it      
_________________
Massimiliano Fabbri (Eudosia)
Freelance Programmer
http://www.eudosia-systems.it  
                             Top                 pixe656          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 4:46 pm 
                        
Joined: Wed May 20, 2009 11:02 am
Posts: 270                eudosia wrote:Very very nice button control.
Good job Dave.
I think It would be very nice to share it with us.

I agree.

Pixe      
_________________
Using RS2011r2 on Windows7.  
                             Top                 DaveS          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 5:04 pm 
                                
Joined: Sun Aug 05, 2007 10:46 am
Posts: 3406
Location: San Diego, CA                Zip file available here

http://www.rdsisemore.com/iOS_Button.zip

It SHOULD work on OSX and WIN  (but I've only tried it under OSX)

there are no fancy non-RealStudio code, declares etc....  it actually is rather 
basic once you peek under the hood.      
_________________
Dave Sisemore
MacPro, OSX 10.6.8 RB2011r3
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                swort          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 5:10 pm 
                        
Joined: Mon May 31, 2010 5:35 am
Posts: 1904
Location: Netherlands                DaveS wrote:Zip file available here

http://www.rdsisemore.com/iOS_Button.zip

It SHOULD work on OSX and WIN  (but I've only tried it under OSX)

there are no fancy non-RealStudio code, declares etc....  it actually is rather 
basic once you peek under the hood.

it seems to be just made right, how apple likes it... 
simple-productive-smart-usable.
Thanks dave !

ps, tell me what name should be in the about box of my apps..      
_________________
SWORT™
- Windows Vista, Windows XP, Windows 7, Linux Mint 11 and Mac OSX Lion
- REAL Studio Enterprise(latest) and WEB Edition(latest)
- Plugins (MBS Complete, ToringoLib, Einhugur, VanHoek + Some open source 
plugins)
For Dutch User Groups ask me to enter!  
                             Top                 eudosia          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 5:21 pm 
                        
Joined: Wed Oct 06, 2010 10:25 am
Posts: 57
Location: ---                Thanks Dave I will give you credits.
Regards,
Max.      
_________________
Massimiliano Fabbri (Eudosia)
Freelance Programmer
http://www.eudosia-systems.it  
                             Top                 pixe656          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 6:09 pm 
                        
Joined: Wed May 20, 2009 11:02 am
Posts: 270                Thank you Dave.

Pixe      
_________________
Using RS2011r2 on Windows7.  
                             Top                 Akiland          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 6:14 pm 
                                
Joined: Tue Jan 04, 2011 3:02 am
Posts: 502
Location: Jönköping, Sweden                DaveS wrote:Zip file available here

http://www.rdsisemore.com/iOS_Button.zip

It SHOULD work on OSX and WIN  (but I've only tried it under OSX)

there are no fancy non-RealStudio code, declares etc....  it actually is rather 
basic once you peek under the hood.

Dave, this is just what I was looking for! Great Job.
Any idea how to turn this into a WE control? 

I'm thinking iOS web apps     
_________________
Dev. iMac 27" + 2x22" LG (2.8GHz Intel Core i7, 12GB RAM, 120GB SSD) OS X 10.7
Using Subversion on a Synology DS409+
REAL.Studio Web Edition 2011r3  
                             Top                 Dale          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 6:17 pm 
                                
Joined: Thu Mar 01, 2007 2:02 pm
Posts: 170
Location: Sunny (generally!) Southern California                Nice, Dave. 
Thanks.

And they work nicely on Window 7.

- Dale      
_________________
-----
Real Studio 2011r3 on Windows 7 (64 bit)  
                             Top                jetpr          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 9:24 pm 
                                
Joined: Wed Sep 20, 2006 5:12 pm
Posts: 402
Location: Puerto Rico                very Good Jobs

Dave

Thanks
 

i love to lear to manager the Graphics so can made some good buttons but i do 
now where to start.

if you have a tutorial please send the link.      
_________________
Thanks for any contribution  and  God blesses all (I start Using RS in 
10/12/2010)
 Mac Mini with Snow Leopard v10.6.8 and Real Studio 2011r4 Pro And Windows 7 
RS2011r3 Personal Register user 
   my Hobbies R/C Turbines Jets Models      

    Last edited by jetpr on Sat Jan 28, 2012 9:36 pm, edited 1 time in total.   
                             Top                 DaveS          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 9:29 pm 
                                
Joined: Sun Aug 05, 2007 10:46 am
Posts: 3406
Location: San Diego, CA                Make this change to iOS_Label_Draw, and 
it looks better with ROUND labels... doesn't affect the appearance of Square 
ones

Code:  Dim r As Integer
  Dim x As Integer
  g.ForeColor=kCOLOR_BACKGROUND
  r=(btn_height+8)
  If style Then 
  x=r\2
  g.FillRoundRect 0,0,g.width,r,r,r
  g.ForeColor=kCOLOR_BORDER
  g.DrawRoundRect 0,0,g.width,r,r,r
  Else
  x=8
  g.fillrect 0,0,g.width,r
  g.ForeColor=kCOLOR_BORDER
  g.drawrect 0,0,g.width,r
  End If
  iOS_Button_Draw g,g.width-btn_width-7,4,style,value,LabelasYesNo,enabled
  If enabled Then 
  g.ForeColor=&c000000
  Else
  g.ForeColor=kCOLOR_DISABLED
  End If
  g.textsize=16
  g.bold=False
  //
  r=((r-g.TextHeight)\2)+g.TextAscent
  g.drawstring caption,x,r,(g.width-btn_width-x-7),True


mostly the code that calculates "x"      
_________________
Dave Sisemore
MacPro, OSX 10.6.8 RB2011r3
Note : I am not  interested in any solutions that involve custom Plug-ins of 
any kind  
                             Top                jetpr          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 9:53 pm 
                                
Joined: Wed Sep 20, 2006 5:12 pm
Posts: 402
Location: Puerto Rico                hi DaveS  how to load the Picture to 
manager and put it in the correct area .

in the Picture you have some buttons so how you cut and move to the text box .  
    
_________________
Thanks for any contribution  and  God blesses all (I start Using RS in 
10/12/2010)
 Mac Mini with Snow Leopard v10.6.8 and Real Studio 2011r4 Pro And Windows 7 
RS2011r3 Personal Register user 
   my Hobbies R/C Turbines Jets Models  
                             Top                 DaveS          Post subject: 
Re: Anyone interested in some iOS like buttons?Posted: Sat Jan 28, 2012 11:18 
pm                                 
Joined: Sun Aug 05, 2007 10:46 am
Posts: 3406
Location: San Diego, CA                jetpr wrote:hi DaveS  how to load the 
Picture to manager and put it in the correct area .

in the Picture you have some buttons so how you cut and move to the text box .


Everything you want to know is in the code.....  Look at the IOS_BUTTON_DRAW 
routine      
_________________
Dave Sisemore
MacPro, OSX 10.6.8 RB2011r3
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
   [ 14 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