Home » U++ Library support » TabCtrl » TabBar crash fix (very crude one, needs author to rewrite it)
Re: TabBar crash fix (very crude one, needs author to rewrite it) [message #30669 is a reply to message #30643] |
Sun, 16 January 2011 11:23 |
|
mirek
Messages: 13984 Registered: November 2005
|
Ultimate Member |
|
|
Well, I have another serious issue with TabBar.
I have noticed that changing text editor color in theide/environment sometimes goes awfully wrong.
After a while, I have relized it is caused by
void Ide::UpdateFormat(CodeEditor& editor, EditorTabBar& tabs)
{
......
tabs.Stacking(tabs_stacking);
the reason being that Stacking calls SetData, which in turns calls SetCursor, which invokes WhenAction.
Now, WhenAction is fundamentally reserved for situation when widget detects USER action. It should never be invoked by action of code, such as SetData! (That should do Update to signal modified state; it can invoke some other callback like WhenCursor or WhenSel if needed).
Now, should I sort this out? (I guess given we have SetCursor0, it is just matter of some slight refactoring..)
Mirek
|
|
|
|
|
TabBar crash fix (very crude one, needs author to rewrite it)
By: mr_ped on Wed, 12 January 2011 14:49
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: mr_ped on Wed, 12 January 2011 17:23
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: unodgs on Wed, 12 January 2011 22:36
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: mirek on Wed, 12 January 2011 22:52
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: unodgs on Thu, 13 January 2011 08:44
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: mr_ped on Thu, 13 January 2011 10:03
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: unodgs on Thu, 13 January 2011 11:29
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: mirek on Sun, 16 January 2011 11:23
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: unodgs on Sun, 16 January 2011 18:17
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: mirek on Mon, 17 January 2011 21:38
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: unodgs on Mon, 17 January 2011 22:34
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: mrjt on Sat, 26 March 2011 09:59
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: mirek on Sun, 17 April 2011 22:01
|
|
|
Re: TabBar crash fix (very crude one, needs author to rewrite it)
By: mr_ped on Mon, 18 April 2011 09:47
|
Goto Forum:
Current Time: Tue Jun 04 08:32:34 CEST 2024
Total time taken to generate the page: 0.02315 seconds
|