Solved

Changing Forms Runtime Icon

Posted on 2004-03-30
6
1,773 Views
Last Modified: 2010-05-18
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
Comment
Question by:riazpk
  • 3
  • 3
6 Comments
 
LVL 5

Expert Comment

by:mudumbe
ID: 10715744
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
 
LVL 13

Author Comment

by:riazpk
ID: 10716140
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
 
LVL 5

Expert Comment

by:mudumbe
ID: 10716213
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 13

Author Comment

by:riazpk
ID: 10721629
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
 
LVL 5

Accepted Solution

by:
mudumbe earned 200 total points
ID: 10729808
Actually you will need d2kwut60.dll installed in ORACLE_HOME\bin directory.  Also make sure you place d2kwutil.plx in FORMS path directory.
0
 
LVL 13

Author Comment

by:riazpk
ID: 10884020
I couldn't find d2kwutil.plx anywhere...where it is located ?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question