Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find the Console Window at runtime in Forms 6i

Status
Not open for further replies.

djmartin

Programmer
Mar 26, 2001
27
AU
I am trying to resize a form at startup based upon the size of the window listed in the 'Console Window'
property at the Form level.  But I can't find its name at runtime.  I don't want to have to edit each
form individually if I can help it.

Alternatively, how to find the first window in the list of Windows in a form?

David
 
Try to use the following:

declare
mfirst_block varchar2(40);
mfirst_item varchar2(40);
mfirst_view varchar2(40);
mfirst_window varchar2(40);
begin

mfirst_block := get_form_property:)system.current_form, first_block);
mfirst_item := get_block_property(mfirst_block, first_item);
mfirst_view := get_item_property(mfirst_item, item_canvas);
mfirst_window := get_view_property(mfirst_view, window_name);

end;
 
Not exactly what I was looking for, but a great start. Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top