Solved

Resiszing the header bar

Posted on 2006-10-20
6
186 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

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need to retreive data from .TFS file exported by DVR 8 198
Installing Microsoft R server on REDHAT or SUSE Linux 4 137
Adapt this command to show who installed 29 108
noX challenge 17 116
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

773 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