Results 1 to 4 of 4

Thread: Bigger "jelly-bean" buttons?

  1. #1
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867

    Bigger "jelly-bean" buttons?

    Anyone know how to change the height of the "jelly-bean" buttons in IB? The height attribute in the size tab is disabled for me.

    I know I can use the other style buttons, but they look severly un-Maclike and the standard Aqua button is too small at 800x600 on my Lilli.

    How about the Tab Buttons on a NSTabView too?

    Thanks,
    -dave

  2. #2
    Admin. Linux loser.
    Auto Apps:loading...
    Bugbyte's Avatar
    Join Date
    Sep 2004
    Location
    Corning, NY
    Posts
    7,364
    Blog Entries
    2
    If you are programming in Applescript, sometimes you can fish the properties out of Cocoa and set them using Applescript. Try doing something like this:

    1. Make an Applescript application in Xcode. You probably are working on one right now.
    2. Get the name of the button you want to resize.

    Tell application "yourapplicationnamehere"
    set myButton to button "yourbuttonnamehere" of window "yourwindownamehere"
    properties of myButton
    end tell

    (or maybe "get properties of myButton")

    Start your app, then run this script in Script editor. It ought to dump the properties of your button to the results window. Sometimes, once you know the name of the property you want to alter you can access it through applescript.

    So if the property was called "height", you might try

    "set height of button x to 35"

    Hope that helps.
    Quote Originally Posted by ghettocruzer View Post
    I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
    Want to:
    -Find out about the new iBug iPad install?
    -Find out about carPC's in just 5 minutes? View the Car PC 101 video

  3. #3
    CarFrontEnd Creator iamgnat's Avatar
    Join Date
    Jul 2004
    Location
    NoVA
    Posts
    867
    Quote Originally Posted by Bugbyte
    If you are programming in Applescript, sometimes you can fish the properties out of Cocoa and set them using Applescript. Try doing something like this:
    Objective-C just to be difficult

    Actually I thought about that (in Obj-C terms) and poked around the NSButton, NSControl, and NSView objects in the docs and didn't see anything that jumped out at me as the answer.

    I'm sure I am being a bad developer for even entertaining the notion that Apple didn't design something perfectly in the first place

    -dave

  4. #4
    Registered User
    Join Date
    Dec 2005
    Posts
    5
    Quote Originally Posted by iamgnat
    Objective-C just to be difficult

    Actually I thought about that (in Obj-C terms) and poked around the NSButton, NSControl, and NSView objects in the docs and didn't see anything that jumped out at me as the answer.

    I'm sure I am being a bad developer for even entertaining the notion that Apple didn't design something perfectly in the first place

    -dave
    Actually, you can't resize the push buttons because resizing them (at least for height) doesn't change their appearance. To see what I mean, call
    Code:
    [myButton setFrameSize:NSMakeSize(80.0, 80.0)];
    [myButton setNeedsDisplay:YES];
    on a push button and a square button. The push button just moves upwards to center in the 80 pixel tall frame, whereas the square button resizes to fill it. You'll probably have to roll your own button, as the end caps for the push button are bitmaps (I think), and won't scale up without looking pixelated.

Similar Threads

  1. How-To: Relocating Screen Buttons
    By Altimat in forum Fabrication
    Replies: 41
    Last Post: 11-07-2007, 03:48 PM
  2. Labelling buttons for an OEM look - how?
    By Gibson99 in forum Fabrication
    Replies: 28
    Last Post: 02-17-2006, 07:20 PM
  3. Replacing gain/xenarc buttons?
    By Will Albers in forum LCD/Display
    Replies: 12
    Last Post: 09-08-2005, 10:23 AM
  4. Brushed Skin Needs Some Editing (Bigger Buttons)
    By Chita79 in forum Road Runner
    Replies: 15
    Last Post: 02-20-2005, 07:37 PM
  5. Replies: 7
    Last Post: 02-05-2005, 06:41 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •