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 » ArrayCtrl with vertical headers
ArrayCtrl with vertical headers [message #33468] Wed, 10 August 2011 11:41 Go to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
Hello,

I have a so weird wish that if nobody will answer I'll not complain Smile .
I want to use the SqlArray with build in sqlite facilities, but the table consist of one only row with 12 fields. They are too many to be displayed horizontally but would be ok if the they were displayed vertically... just a transposition of column and row.
I wonder if there is a simply trick that do the job.

Thank you,
Luigi
Re: ArrayCtrl with vertical headers [message #33481 is a reply to message #33468] Fri, 12 August 2011 12:07 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 736
Registered: January 2008
Location: Moscow, Russia
Contributor

I use GridCtrl + my own Display class of header. Even place Images in header.

Like this
index.php?t=getfile&id=3416&private=0


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: ArrayCtrl with vertical headers [message #33483 is a reply to message #33481] Fri, 12 August 2011 14:36 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
sergeynikitin wrote on Fri, 12 August 2011 12:07

I use GridCtrl + my own Display class of header. Even place Images in header.

Like this ...


It is very nice. But I have not seen a SqlGrid control equivalent to SqlArray.
I would like to bind the data to the table and sqlarray looks perfect.
Now I am doing some test... EditCtrl in SqlArray via AddCtrl but the SqlArray is set to Hide().

Luigi
Re: ArrayCtrl with vertical headers [message #33484 is a reply to message #33483] Fri, 12 August 2011 14:41 Go to previous messageGo to next message
sergeynikitin is currently offline  sergeynikitin
Messages: 736
Registered: January 2008
Location: Moscow, Russia
Contributor

Can you use custom Display() for HeaderCtrl?
It will be same way.


SergeyNikitin<U++>( linux, wine )
{
    under( Ubuntu || Debian || Raspbian );
}
Re: ArrayCtrl with vertical headers [message #33489 is a reply to message #33484] Fri, 12 August 2011 21:08 Go to previous messageGo to next message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
sergeynikitin wrote on Fri, 12 August 2011 14:41

Can you use custom Display() for HeaderCtrl?
It will be same way.


I used in the past Display() to customize background and font in columns and cells. But never tried with HeaderCtrl. I will look for examples in the forum as at the moment I have no idea how to display a row as a column.

Spasiba,
Luigi
Re: ArrayCtrl with vertical headers [message #33598 is a reply to message #33489] Sun, 28 August 2011 19:29 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 12063
Registered: November 2005
Ultimate Member
forlano wrote on Fri, 12 August 2011 15:08

sergeynikitin wrote on Fri, 12 August 2011 14:41

Can you use custom Display() for HeaderCtrl?
It will be same way.


I used in the past Display() to customize background and font in columns and cells. But never tried with HeaderCtrl. I will look for examples in the forum as at the moment I have no idea how to display a row as a column.

Spasiba,
Luigi


HeaderCtrl tabs do not have Display (yet?).

But it should be possible to achieve what you want using the SetImage... Not very elegant, but possible Smile

Mirek
Re: ArrayCtrl with vertical headers [message #33609 is a reply to message #33598] Tue, 30 August 2011 10:44 Go to previous message
forlano is currently offline  forlano
Messages: 1071
Registered: March 2006
Location: Italy
Experienced Contributor
mirek wrote on Sun, 28 August 2011 19:29


HeaderCtrl tabs do not have Display (yet?).

But it should be possible to achieve what you want using the SetImage... Not very elegant, but possible Smile

Mirek


Any solution, even the weirdest, would be in this moment the most elegant.
That could be called SqlColumn ctrl useful to keep easily together the many variable stored in one row table.

I was thinking at these steps to modify the look of ArrayCtrl:

1) hide Header;
2) realize a two columns array with a row for each field of the one row table;
3) in the left column set via SetCtrl a button not clickable just to use its label and give us the look of the left header;
4) in each row of the right column set a proper ctrl.
5) collect all the values of the right column and send to the table.
Perhaps GridCtrl could be more useful with regard the left column that I should get for free.

I'll try to perform some test.
Are there better solution to use the built in capability of SqlArray?

Luigi
Previous Topic: ArrayCtrl and accept row
Next Topic: GridCtrl/DropGrid problem: Value related.
Goto Forum:
  


Current Time: Tue Oct 22 23:07:39 CEST 2019

Total time taken to generate the page: 0.01219 seconds