10.07.2015 Views

Programming Guide - Actian

Programming Guide - Actian

Programming Guide - Actian

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

How You Can Build a Frame DynamicallyThe fieldtop variable designates the starting position of the top of each field onthe form. It is incremented by the size of each field and some predeterminedamount (identifying the amount of space between fields) in each iteration ofthe select loop. The example frame sets this variable at this point so that if theuser selects the Go menu item more than once, to create more than oneframe, the top field on each new frame starts in the correct position.How You Can Set the FrameSource AttributesAfter the starting frame's Go operation creates the FrameSource object, it setsthe following frame attributes:NameSpecifies the name of the frameDatatypeSpecifies the data type of the frame's return valueIsNullableSpecifies whether the return value is nullableWindowTitleDefines the title that appears on the frame's windowCurModeDefines the frame's modeWindowPlacementDefines the location of the frame's window when the frame is called oropenedThe sample application assigns the following values to these attributes:/* Fill in the Frame Information */test_frame_name = table_choices + '_frame';test_frame.Name = test_frame_name;test_frame.DataType = 'integer4';/* This is default */test_frame.IsNullable = TRUE;/* This is default */test_frame.WindowTitle = 'Edit Data For Table: ' +table_choices;test_frame.CurMode = FM_UPDATE;test_frame.WindowPlacement = WP_FLOATING;Some frame attributes, such as StartMenu, are set later in the program (afterthe code creates the objects contained by the attributes). Other frameattributes are left at their default values. For an example of creating theStartMenu object, see How You Can Create the Frame Menu Items (seepage 411).404 <strong>Programming</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!