Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl - crashes on UBUNTU.
GridCtrl - crashes on UBUNTU. [message #19598] Mon, 22 December 2008 10:26 Go to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

I find it unpleasant behavior CridCtrl.

If the cell can not contain it based text, the GridCtrl paints a right triangle, which shows that not everything fits. When we hold the mouse on top of the cell - that is showing the entire contents in the pop-up window.

But this happens only in Windows.
When I try to do the same in UBUNTU - I failed.
System crashes with message:
Assertion failed in ..../upp-svn/CtrlCore/X11Wnd.cpp, line 380


As TestCase can get tutorial Grid01.

I think this is an error in the basic functionality.

Maybe advise how to correct, or even how to hide this functionality?

Thanks in advance.

PS.
In ArrayCtrl - nothing of the sort not seen.
To analyze the differences in approach on my lack of experience. Please help.


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}

[Updated on: Mon, 22 December 2008 10:29]

Report message to a moderator

Re: GridCtrl - crashes on UBUNTU. [message #19599 is a reply to message #19598] Mon, 22 December 2008 10:54 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Yep, it's possible. I haven't tested this feature on X11. You can turn popups off using Popups or CellPopups method (I don't remember exactely);

BTW: In dev version popups works on header too.

PS: Thanks for finding bugs! It makes my apps more stable Smile
Re: GridCtrl - crashes on UBUNTU. [message #19601 is a reply to message #19599] Mon, 22 December 2008 11:17 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Razz Always a please!

SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: GridCtrl - crashes on UBUNTU. [message #19602 is a reply to message #19599] Mon, 22 December 2008 12:59 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

unodgs wrote on Mon, 22 December 2008 12:54

Yep, it's possible. I haven't tested this feature on X11. You can turn popups off using Popups or CellPopups method (I don't remember exactely);

BTW: In dev version popups works on header too.


I could not find anything similar. This must be set for the entire Ctrl or on the Cell?

During debug GridCtrl I noticed that happens twice a call GridPopUp::PopUp. I replaced the call GridPopUp::PopUp on GridPopUp::PopUpWnd (I rename anywhere) but now everything is occurs twice call GridPopUp::PopUpWnd - and the second time - the crash happens.

Maybe second time during draw shadow or anything not open window (create but not open)???


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: GridCtrl - crashes on UBUNTU. [message #19607 is a reply to message #19602] Mon, 22 December 2008 17:34 Go to previous messageGo to next message
unodgs is currently offline  unodgs
Messages: 1366
Registered: November 2005
Location: Poland
Ultimate Contributor

Quote:

I could not find anything similar. This must be set for the entire Ctrl or on the Cell?

Sorry for misleading you. There is no such a method.. I'll provide one.
Re: GridCtrl - crashes on UBUNTU. [message #19613 is a reply to message #19607] Mon, 22 December 2008 23:21 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

I'll try to add variable property
bool popupex;
and I'll try add popupex(bool b = true){}.


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: GridCtrl - crashes on UBUNTU. [message #19614 is a reply to message #19613] Tue, 23 December 2008 00:33 Go to previous message
sergeynikitin is currently offline  sergeynikitin
Messages: 748
Registered: January 2008
Location: Moscow, Russia
Contributor

Done. Temporary Solved.

Changed files in Attachment (based on svn-643)

There are 2 files in upp/uppsrc/GridCtrl/ :
GridCtrl.h
and
GridCtrl.cpp

I did not very accurately, perhaps popups banned in the Drag and Drop.
But it WORK!!!

However, is hopefully to resolve the problem.

Thank you Daniel for tips and idea.


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}

[Updated on: Tue, 23 December 2008 00:37]

Report message to a moderator

Previous Topic: ColorRows() in GridCtrl - Strange code. Help pls.
Next Topic: GridCtrl - WhenRemoveRow doesn't work
Goto Forum:
  


Current Time: Mon Apr 29 03:59:23 CEST 2024

Total time taken to generate the page: 0.03640 seconds