Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Changing Forms Runtime Icon

Posted on 2004-03-30
6
Medium Priority
?
1,873 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
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
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 800 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

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!

Question has a verified solution.

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

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

618 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