There is now a new API in Gnoga.Gui.View

   procedure Fill_Parent (View : in out View_Base_Type);
   --  Cause View to expand its height and width to fill its parent's client
   --  area. View's parent must have Position set to Absolute, Fixed or
   --  Relative for Fill_Parent to work properly.
   --  Note:
   --     Position will be modified for View to either Absolute or Relative
   --     if Absolute positioning fails (i.e. on IE)

Not bad that this is the first time I've had to truly write "work arounds"
for different browsers. I did have to deal with IE returning floats for
mouse locations, but that doesn't count, just needed to trunc results for
that.

I will say I did spend hours on the issue of using only CSS and/or HTML to
get this to work but I have a very clear understanding of the layout models
and sadly the quarks between browsers now.

I have tested Fill_Parent on Chrome, Opera, Firefox and IE. Opera is webkit
based (Chrome is now Blink based) so native gtk and safari should work like
Opera as well, but I haven't had a chance to test yet either.
(test/pack.adb uses Fill_Parent, a black border will appear around the
right middle panel with the button in side the panel  when working).

Of course this makes the Grid_View_Type a complete replacement for the
Docker. Just create child views with the Panel of the Grid you want it to
fill and then on the child view call Fill_Parent.

I will expand test/pack.adb with a bit more, like using Layout_Float to
show packing controls and using Grid_View_Type for laying out forms.

David Botton
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Gnoga-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnoga-list

Reply via email to