Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1908
  • Last Modified:

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 ???
0
riazpk
Asked:
riazpk
  • 3
  • 3
1 Solution
 
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
 
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
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
 
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
 
riazpkAuthor Commented:
I couldn't find d2kwutil.plx anywhere...where it is located ?
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now