• 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: Forcing AU window to redraw
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Forcing AU window to redraw


  • Subject: Re: Forcing AU window to redraw
  • From: Marc Poirier <email@hidden>
  • Date: Wed, 29 Jan 2003 10:00:48 -0500 (EST)

> With the release of the latest AudioUnits SDK this week I'm finding that
> under the Logic 6.0 beta my PictureControls and BevelButtons are not
> drawing until they receive a screen update event from the system (by
> bringing another application to the foreground). Everything works fine
> under Logic 5.5.
>
> How can I get the Carbon Window to update? I've tried
> InvalWindowRect(mCarbonWindow, rect) but this doesn't help.

Yes, a lot of peoples AU GUIs are not working correctly in Logic 6, but I
think that most of you will solve your problems if you simply add this to
the end of AUCarbonViewControl::Bind()

Update(true);

That will set the CarbonControl value of your controls as you embed them
into your GUI. The default behaviour is that those control values are not
set until some update occurs, which works fine in most hosts, but not
Logic 6.

But if that doesn't help you, you can try Control Manager routines like
UpdateControls or Draw1Control (for each each control). Another hackish
trick that works (but I wouldn't recommend) is to call SizeWindow at the
end of your CreateUI and give some totally wrong dimensions (this is why
the Emagic AU SDK examples work ;). Logic will just resize the window
back to the correct size anyway so you won't do any real damage, but in
the process your window will get an update.

Marc
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Forcing AU window to redraw (From: Malcolm Haylock <email@hidden>)

  • Prev by Date: Forcing AU window to redraw
  • Next by Date: Audio File Formats
  • Previous by thread: Forcing AU window to redraw
  • Next by thread: Re: Forcing AU window to redraw
  • Index(es):
    • Date
    • Thread