COCKOS
CONFEDERATED FORUMS
Cockos : REAPER : NINJAM : Forums
Forum Home : Register : FAQ : Members List : Search :
Old 08-04-2016, 04:07 AM   #1
SaschArt
Human being with feelings
 
SaschArt's Avatar
 
Join Date: Aug 2013
Posts: 236
Default Get rect area of another control

How to get rect area of a control from another control ?

[code]
IControl* pControl = pGraphics->GetControl(idx);
IRECT* tmpRECT=&pControl->GetRECT();

debugPrint("mControls: ",tmpRECT->T);

[code]

This give error plugin when loading on host.
__________________
Audio plugins | BrainWaveProducer | EmRysRa

Last edited by SaschArt; 08-09-2016 at 02:05 AM.
SaschArt is offline   Reply With Quote
Old 08-04-2016, 04:30 AM   #2
Youlean
Human being with feelings
 
Youlean's Avatar
 
Join Date: May 2015
Location: Serbia
Posts: 654
Default

Quote:
Originally Posted by SaschArt View Post
How to get rect area of a control from another control ?

Code:
		IControl* pControl = pGraphics->GetControl(idx);
		IRECT* tmpRECT=&pControl->GetRECT();

		debugPrint("mControls: ",tmpRECT->T);
This give error plugin when loading on host.
Use:

Code:
		IControl* pControl = pGraphics->GetControl(idx);
		IRECT* tmpRECT = pControl->GetRECT();
Youlean is offline   Reply With Quote
Old 08-04-2016, 08:43 AM   #3
SaschArt
Human being with feelings
 
SaschArt's Avatar
 
Join Date: Aug 2013
Posts: 236
Default

Thanks
__________________
Audio plugins | BrainWaveProducer | EmRysRa

Last edited by SaschArt; 08-09-2016 at 02:05 AM.
SaschArt is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 10:41 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.