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 » Combine Cells?
icon5.gif  Combine Cells? [message #3876] Wed, 05 July 2006 14:55 Go to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
Is there a way to combine cells eg:
assume this array
---------
| | | | |
---------
| | | | |
---------
| | | | |
---------

and combine two cells in one column:
---------
| | | | |
--| |----
| | | | |
---------
| | | | |
---------

I was unable to find something in the source, so i guess I will have to derive and rewrite some virtual methods like Paint() am i right?

[Updated on: Wed, 05 July 2006 15:31]

Report message to a moderator

Re: Combine Cells? [message #3919 is a reply to message #3876] Sun, 09 July 2006 16:01 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
There is no simple direct method.

This is not a typical ArrayCtrl usage scenario, so the first logical question is what you want to achieve? Wink

Anyway, the possible solution is to cancel the grid (ArrayCtrl::NoGrid) and use custom Displays to draw the grid lines where needed. I do not recommend overriding the Paint.

Mirek
Re: Combine Cells? [message #3927 is a reply to message #3919] Sun, 09 July 2006 22:31 Go to previous messageGo to next message
fallingdutch is currently offline  fallingdutch
Messages: 258
Registered: July 2006
Experienced Member
thanks for your answer, Mirek

what i want to achieve is spreading an ctrl over more than one cell, and have horizontal and vertical scroll.
But would like to have the grid as background.
And i would like another "headCtrl" on the left side, not only at the top.

so i guess the best would be to write my own control(s), right?

Bas

Re: Combine Cells? [message #3935 is a reply to message #3927] Mon, 10 July 2006 08:40 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Yes.

There is a separate discussion thread about "ScrollPane". I guess that is what you need. You can inspire yourself also studying PropertyPane class in ide/LayDes.

Some day something like that will be part of U++ - the obstacle here is to investigate all various usage scenarios, that is why so far we rather prefered to implement specific class for specific usage.

MIrek
Previous Topic: ArrayCtrl cell color
Next Topic: Is it possible to set the Font type for the arrayctrl?
Goto Forum:
  


Current Time: Sun Apr 28 21:36:33 CEST 2024

Total time taken to generate the page: 0.10365 seconds