ChrisR wrote:On the containers, the selection is only available on the border or with SelectionStyle
Is there a way to select from the inner empty space?
It is possible, but then you can not select the child object with the selection frame or in your case, create new object with the selection frame, because whenever you click into the empty space the parent object is selected.
Therefore I decided to allow only the border. Should it be changed?
ChrisR wrote:In case the Parent is a Panel
I defined the Boundary iMinY with GetGadgetAttribute(GetObjectData(ParentObject), #PB_Panel_TabHeight),
looks good but I noted that the Y position is wrong. It ignores the Panel Tab Height (SetObjectY, SetObjectY, Object\iY)
Do you have an idea on how it could be done ?
Please wait for the next version, if the offset of drawing is included. Then you define in case of the panel gadget an y-offset of ... and the boundary can still be defined as y = 0 (but it is displayed shifted) and the return y-inner-position is 0 when the child gadget is on the top of the head.
But anyway, I have to check how we/you can handle that a child object is drawing over the parent empty space, but not over the scroll bars or the tabs in a panel gadget.
Probably I will include a function like SetObjectChildChipping(Object, Left, Top, Right, Bottom), where you can define the clip frame/padding for the drawing of inner objects.
In case of the PanelGadget: SetObjectChildChipping(Object, 0, 20, 0, 0)
In case of the ScrollAreaGadget: SetObjectChildChipping(Object, 0, 0, 20, 20)