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 » Community » Newbie corner » GridCtrl Cannot Resize Column (The resize cursor does not show to resize the column width)
GridCtrl Cannot Resize Column [message #48596] Fri, 04 August 2017 14:20 Go to next message
pfsdanny is currently offline  pfsdanny
Messages: 26
Registered: December 2011
Location: Hong Kong
Promising Member
UPP 10940
Windows 10
MinGW

I have two application with GridCtrl, Application A is ok but Application B cannot resize the column at runtime, the resize cursor does not show up. Attached picture indicate the 2 screen capture of the applications.

The following is the screen captured, the upper part is Application A that the resize cursor display, the lower part is Application B that the resize cursor does not show.

index.php?t=getfile&id=5360&private=0

Both application uses the same coding method and library. Does anyone has any idea? Thanks.

Here is my code
	datalist.AddIndex(pfs_rid);
	datalist.AddIndex(pfs_type);
	datalist.AddColumn(pfs_num, t_("No."), 1);
	datalist.AddColumn(pfs_date, t_("Date"), 2);
	datalist.AddIndex(pfs_client);
	datalist.AddColumn(pfs_name, t_("Name"), 3);
	datalist.AddIndex(pfs_address);
	datalist.AddColumn(pfs_contact, t_("Contact"), 1);
	datalist.AddColumn(pfs_phone, t_("Phone"), 1);
	datalist.AddIndex(pfs_email);
	datalist.AddIndex(pfs_acref);
	datalist.AddColumn(pfs_sales, t_("Sales"), 1);
	datalist.AddIndex(pfs_salesphone);
	datalist.AddColumn(pfs_total, t_("Total"), 1).SetConvert(Single<ConvDouble>()).AlignRight();
	datalist.AddColumn(pfs_ledger, t_("Ledger"), 1).AlignRight();
	datalist.AddColumn(pfs_cury, t_("Cury"), 1);
	datalist.AddIndex(pfs_rate);
	datalist.AddIndex(pfs_gltotal);
	datalist.AddColumn(pfs_os, t_("O/S"), 1).SetConvert(Single<ConvDouble>()).AlignRight();
	datalist.AddIndex(pfs_osgl);
	datalist.SetToolBar(false).ColorCols().ColorRows().EvenColor();

Danny

  • Attachment: sample.png
    (Size: 205.46KB, Downloaded 339 times)
Re: GridCtrl Cannot Resize Column [SOLVED] [message #48699 is a reply to message #48596] Fri, 25 August 2017 11:57 Go to previous message
pfsdanny is currently offline  pfsdanny
Messages: 26
Registered: December 2011
Location: Hong Kong
Promising Member
Problem solved. I found the statement that cause the error.

virtual void Close() {
    OverrideCursor(Image::Arrow());  << I remove this line and it works!
    ...
    TopWindow::Close();


Danny
Previous Topic: Multiple objects and only one window with multiple DataPusher
Next Topic: Ftp
Goto Forum:
  


Current Time: Tue Apr 16 06:11:37 CEST 2024

Total time taken to generate the page: 0.02087 seconds