Home » Community » Newbie corner » Grid Ctrl..How to find minimum and maximum element
Re: Grid Ctrl..How to find minimum and maximum element [message #33263 is a reply to message #33262] |
Thu, 21 July 2011 08:52   |
 |
koldo
Messages: 3437 Registered: August 2008
|
Senior Veteran |
|
|
Hello Monty
In this cases is good to include a full project as simple as possible including the error.
Anyway I imagine you are adding a GridCtrl named "grid" in a class named "GridTrial" generated using the Layout Designer.
In fact when you add the grid in your layout, in the .lay files it appears something similar to the "Add(grid.SizePos());" you said, as the .lay is converted to C++ code.
To be sure, when you are in the Layout Designer, key Ctrl-T to see your layout in text:
LAYOUT(MyLayout, 428, 268)
ITEM(GridCtrl, dv___0, HSizePosZ(116, 162).VSizePosZ(84, 84))
END_LAYOUT
and Ctrl-T again to see it graphically again:

If you use a class like this:
class GridTrial : public WithMyLayout<StaticRect> {
...
};
"grid" is already a member of GridTrial as it has been included in "WithMyLayout", so you would have to use it in your program with no problem.
-
Attachment: dib.PNG
(Size: 10.03KB, Downloaded 509 times)
Best regards
IƱaki
|
|
|
Goto Forum:
Current Time: Fri Jul 18 03:40:12 CEST 2025
Total time taken to generate the page: 0.04702 seconds
|