Changing Forms Runtime Icon

Hello Experts !

Is there some way that i can change the forms runtime icon (diplayed at the top left of form) when we run the form, with anohter icon ???
LVL 13
riazpkAsked:
Who is Participating?
 
mudumbeCommented:
Actually you will need d2kwut60.dll installed in ORACLE_HOME\bin directory.  Also make sure you place d2kwutil.plx in FORMS path directory.
0
 
mudumbeCommented:
Yes, you can use set_window_property built-in:

SET_WINDOW_PROPERTY(<WINDOW>, ICON_NAME, <icon file name>)

Note that icon file name is just the file name without the path.  Form will find the icon file using the path in UI_ICON  environment variable/registry entry
0
 
riazpkAuthor Commented:
Thanks for your response.

I was actually talking about forms_mdi_window. Your code doesn't seems to work for that (i even tried by giving the file name with full path but couldn't succeed).
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
mudumbeCommented:
If you want to change FORMS_MDI_WINDOW use the following:

declare

h_mdi pls_integer := to_number(get_window_property(FORMS_MDI_WINDOW, WINDOW_HANDLE));

begin

win_api_session.change_mdi_icon(h_mid, 'C:\test\test.ico', 0);

end;

win_api_session is included in d2kwutil.pll.  Make sure you attach this pll in your fmb.  Also make sure you have d2kwutil.dll installed.
0
 
riazpkAuthor Commented:
I tried the following (after attaching library you specified) in When-New-Form-Instance trigger:

declare

h_mdi pls_integer := to_number(get_window_property(FORMS_MDI_WINDOW, WINDOW_HANDLE));

begin

win_api_session.change_mdi_icon(h_mdi, 'd:\favicon.ico', 0);

end;


But i am getting the following error when i run my form:

FRM-40734: Inter Error: PL/SQL error Occured

Any Suggestions ???

0
 
riazpkAuthor Commented:
I couldn't find d2kwutil.plx anywhere...where it is located ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.