Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Margin() for Edit()
Margin() for Edit() [message #4571] |
Tue, 15 August 2006 19:17 |
|
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.
|
|
|
|
Goto Forum:
Current Time: Mon Apr 29 04:44:57 CEST 2024
Total time taken to generate the page: 0.95723 seconds
|