Creating a Page with Two Frames |
Use os_frameset
to partition a single view area into multiple view areas. Every os_framed_page
object contains a frameset that partitions the available area.
The following example creates the
Web page page with two frames. The enumerator os_frameset::row()
is used to partition the browser display area into two row areas. One area is
set to 20% of the display area and the other is set to 80%. The contents of the
file image2.html are displayed in the first display area, and the contents of
the file image4.html are displayed in the second display area.
#include <iostream.h>
#include <ospace/web.h>
int main()
{
os_framed_page page( "Frame#1 Example", os_frameset::row, "20%", "80%" );
page << os_frame( "image2.html" )
<< os_frame( "image4.html" );
cout << page;
return 0;
}

Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.