Re: Forcing AU window to redraw
Re: Forcing AU window to redraw
- Subject: Re: Forcing AU window to redraw
- From: Bill Stewart <email@hidden>
- Date: Mon, 3 Feb 2003 14:28:54 -0800
As Logic 6 isn't completed yet, it seems to me that the correct fix is
to have Logic fix their drawing... Why hack around bugs in a beta
version:)
Bill
On Wednesday, January 29, 2003, at 07:00 AM, Marc Poirier wrote:
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.
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
"Much human ingenuity has gone into finding the ultimate Before.
The current state of knowledge can be summarized thus:
In the beginning, there was nothing, which exploded" - Terry Pratchett
________________________________________________________________________
__
_______________________________________________
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.