Solved

Resiszing the header bar

Posted on 2006-10-20
6
183 Views
Last Modified: 2013-11-20
Hi all.
I have a MDI application which display data in a list of Columns .

Eg, when you open MyDocuments and view the folders in Detail View, you will notice that the data is displayed under each colums.
_________________________________________________
Name       |   Size   |   Type     |               Data Modified
---------------------------------------------------------------------
My Music    ....               .....                 ................
.....            ....           .......                  ..................

Now each of the Columns can be resized by Draggin the Division back and forth (eg, division between Name and Size).

In one the windows in my app, i am unable to resize the Columns .  How should i go about doing this......

Thanks
0
Comment
Question by:jhav1594
6 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 17774479
To prevent controls resizing list control must be customized:
http://www.codeguru.com/cpp/controls/listview/columns/article.php/c1065/

Maybe program code contains something like this?
0
 

Author Comment

by:jhav1594
ID: 17774731
Well,
in my case i have a cutom window app and the header widths are already fixed depending on the number of colums.
Does anyone have code or point me to some code so that i can make the headers resizable during run time
0
 

Author Comment

by:jhav1594
ID: 17775583
it is basically a UGrid and i need to able to resize the UGrid using the mouse at run time. Right now The Grid headers are of fixed length.
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 17778218
Are you attempting to make some other application program do this?  
Or...
Do you have the source code of this application and you want to change its behavior?
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 17779044
UGrid - if you mean ultimate grid (Dundas software) then you should have the source code.  You will need to investigate that to find out why it can't be resized (possibly a flag needs to be set)
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
repeatSeparator  java  challenge 13 56
post4 challenge 28 82
wordmultiple challenge 12 90
unix example issues 18 46
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now