U++ framework
Do not panic. Ask here before giving up.

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 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Cross-platform TabBar issue (revision 3063)
Next Topic: How to highlight particular tab when corresponding button is clicked
Goto Forum:
  


Current Time: Sat May 16 12:25:20 GMT+2 2026

Total time taken to generate the page: 0.00637 seconds