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 » Margin() for Edit()
Margin() for Edit() [message #4571] Tue, 15 August 2006 19:17 Go to next message
rbmatt is currently offline  rbmatt
Messages: 90
Registered: July 2006
Location: Tennesse, USA
Member

Edit() does not respect Margin(). Very simple example:
#include <CtrlLib/CtrlLib.h>

class TestArrayMargin : public TopWindow {
	ArrayCtrl array;
	EditString eString;
public:
	typedef TestArrayMargin CLASSNAME;
	TestArrayMargin();
};

TestArrayMargin::TestArrayMargin()
{
	array.SetRect(0,0,500,100);
	Add(array);
	array.AddColumn("test").Margin(0).Edit(eString);
	array.Add("item 1");
}

GUI_APP_MAIN
{
	TestArrayMargin().Run();
}

Reason this is not optimal for me: I basically have a date column with Edit(DateTimeCtrl). Since DateTimeCtrl has a drop button, I lose several pixels in width. Ideally, normal display would have a margin and Edit() would have no margin, allowing the control full width.
Re: Margin() for Edit() [message #4574 is a reply to message #4571] Tue, 15 August 2006 20:13 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Bug. Fixed, synced.

Mirek
Previous Topic: Multi-line entries
Next Topic: Does ArrayCtrl support Range Copy and Past?
Goto Forum:
  


Current Time: Sun Apr 28 23:59:44 CEST 2024

Total time taken to generate the page: 0.04517 seconds