• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Expanding a window and adding controlls dynammicaly.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Expanding a window and adding controlls dynammicaly.


  • Subject: Re: Expanding a window and adding controlls dynammicaly.
  • From: Mike Abdullah <email@hidden>
  • Date: Thu, 4 May 2006 17:55:06 +0100

Just initialise the controls like you would any other Cocoa Object, and perform the appropriate methods on them, such as:

[[myWindow contentView] addSubview: myControl];

Mike.

On 4 May 2006, at 17:17PM0, Anoop wrote:

Hai all,

My window controller contains Arrow type NSButton "|>" I Need to expand the
Window region just bellow the button ,while clicking it should show the
Labels bellow it and hide those labels in the second click.



I could expand the window region just above the Button how is it possible
for me to Expand and hide a window region.
I tried set Frame method but its resizing is not performed as I desired.


I used these codes to resize the window

   frame.size.height -=200;
    frame.origin.y =200;
    [objPanel setFrame:frame display:YES animate:YES];

I Need to add some controls dynamically at a specified location of my window
controller. How is it possible for me to add my button to a location without
using interface builder.


--
With Regards,
             Anoop


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40gmail.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Expanding a window and adding controlls dynammicaly.
      • From: Anoop <email@hidden>
References: 
 >Expanding a window and adding controlls dynammicaly. (From: Anoop <email@hidden>)

  • Prev by Date: Re: Newbe Question: Searching Address Book
  • Next by Date: Problem with "whose clause" resolution
  • Previous by thread: Expanding a window and adding controlls dynammicaly.
  • Next by thread: Re: Expanding a window and adding controlls dynammicaly.
  • Index(es):
    • Date
    • Thread