Solved

Changing Forms Runtime Icon

Posted on 2004-03-30
6
1,801 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
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 how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

691 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