Go Back   Cockos Incorporated Forums > REAPER Forums > REAPER Bug Reports

Reply
 
Thread Tools Display Modes
Old 02-17-2014, 09:07 PM   #1
Argitoth
Human being with feelings
 
Argitoth's Avatar
 
Join Date: Feb 2008
Location: Phoenix, AZ
Posts: 2,054
Default Project is not updated when using "InsertTrackAtIndex()"

"Update" API broken when it comes to adding tracks. Python and EEL have same behavior.

does not update the scroll bar, cannot scroll (except with mousewheel) to lowest track unless I do something to force scroll bar update (add track via actions, do some kind of zoom action)

Code:
 // update functions are useless here.
loop(30,
	index = CountTracks();
	InsertTrackAtIndex(index, 0);
);

UpdateArrange();
UpdateTimeline();
TrackList_AdjustWindows(False); // <-- not useless actually
__________________
Soundemote - Home of the chaosfly and pretty oscilloscope.
MyReaperPlugin - Easy-to-use cross-platform C++ REAPER extension template
Argitoth is offline   Reply With Quote
Old 08-02-2017, 10:58 AM   #2
bFooz
Human being with feelings
 
bFooz's Avatar
 
Join Date: Jul 2010
Location: Slovakia
Posts: 466
Default

This is still present in v5.40. And there seems to be a bigger problem than this which can lead to deletion of items as I reported here:

https://forum.cockos.com/showthread.php?p=1871787
__________________
Donations | Mixing & Mastering Services
bFooz is offline   Reply With Quote
Old 08-06-2017, 10:49 AM   #3
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 10,520
Default

Yeah, we can improve this.

For best compatibility with old versions, I suggest adding:
Code:
 Undo_OnStateChangeEx("whatever",-1,-1)
Justin 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 01:30 PM.


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