Adsense Ad

Wednesday, 8 March 2017

Oracle Forms 10G: Displaying Icons on Push Buttons

Forms 10g no longer supports ICO files as icons for the buttons. You will 
need to convert your icon files into GIF or JPG format. 

Design time Configuration 
To display the icons in your Forms builder, modify your windows registry 
Hkey_Local_Machine\Software\Oracle\<Forms10 g_Home>\UI_ICON by entering the
path of your GIF/JPG files for e.g. C:\MY_APP\ICONS. 
and create ui_icon_extension and give it value GIF 

Runtime Configuration 

1) Creating Jar file 
i) Once you are ready with your GIF files or JPG files, create a folder 
called ICONS. You can create this folder anywhere. For e.g. you can create 
ICONS folder on a C drive under root directory or as a sub-folder under any 
folder. 
ii) Assuming you have created ICONS folder as a root folder on C drive, now 
copy all your GIF files in this folder. 
iii) Go to the DOS prompt and enter cd\ 
iv) At C:\ prompt enter the following command to create Java Archive File 
(JAR) called my_icons 
Jar -cvf my_icons.jar icons 
v) Copy this file in <Forms10g_Home>\Forms\Java folder. 

Please remember that having the name of the folder holding GIF/JPG files as 
ICONS is very important. Because if the folder name is something else, icons 
will not be displayed in your form at run time. This reason is not mentioned 
anywhere in Oracle's documentation. I learnt about this through metalink 
(Service Request no. 6602276.993) after struggling for more than one day to 
display the icons. 

2) Modify REGISTRY.DAT file 
i) Open this file located in 
<Forms10g_Home>\forms\java\oracle\forms\reg istry folder. 
ii) Append the existing parameter default.icons.iconpath as follows: 
default.icons.iconpath=icons/ 
iii) If you are going to use GIF files as image files for icons, then leave 
the existing parameter default.icons.iconextension=gif as it is. If you want 
to use JPG files instead of GIF files, replace GIF with JPG as shown below: 
default.icons.iconextension=jpg 

3) Modify FORMSWEB.CFG file 
This file exists under <Forms10g_Home>\Forms\Server folder. 
Append the following existing parameters: 
i) imagebase=codebase 
ii) archive_jini=frmall_jinit.jar,my_icons.jar




For animated .gif(s)

a> Modify FORMSWEB.CFG file 
This file exists under <Forms10g_Home>\Forms\Server folder. 
Append the following existing parameter: 
imagebase=codebase 

b> Copy/paste .gif(s)
Copy paste all animated .gif(s) file in following location
<Forms10g_Home>\forms\java\

c> Set property on button
Now open form builder 10g. Built new form, Design Canvas, create button and set its property as mentioned in below attached image


Note: Always mention complete name of icon image file including full extension.
for e.g. animated_image.gif  

4 comments:

Atif Zafar said...

To display the icons in your Forms builder, modify your windows registry
Hkey_Local_Machine\Software\Oracle\\UI_ICON

** UI_ICON not showing in this directory. Please guide.

Hasan Jawaid said...

Create it!

Unknown said...

Hkey_Local_Machine\Software\Oracle\\UI_ICON whwere is his file in our pc

Hasan Jawaid said...

Review following link
https://www.computerhope.com/issues/ch001348.htm