الانتقال إلى المحتوى

وضع الايقونات على ال Button في 10g


omar_sabha

Recommended Posts

السلام عليكم ورحمة الله وبركاته
اخي العزيز اظن انه هذه هي الطريقة الصحيحة كوني حصلت عليها ولما اجربها بعد موجود التفصيل في ملف الاكروبات المرفق

رابط هذا التعليق
شارك

Oracle9LAS Forms Services
HowTo Deploy Icons
$Q_2UDFOH_:KLWHSDSHU_
-XQH______
_
????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__+
Oracle9LAS Forms Services – HowTo Deploy Icons
Introduction........................................................................................................3
Don’t want to learn about the details? Just get started! ...............................3
Entering the fast lane....................................................................................3
Best Practices .................................................................................................4
Using Icons in Oracle9L Forms applications .................................................5
The “imagebase” parameter ........................................................................5
Documentbase ..........................................................................................6
Codebase....................................................................................................7
Configuring Oracle9L Forms for Icon Deployment .....................................7
Using Icons that are stored in the default documentbase (Oracle9LDS
only).................................................................................................................7
Using Icons that are stored in a path defined in the Registry.dat file....8
default.icons.iconpath = / images/ ........................................................8
Defining virtual paths in Oracle9LDS....................................................8
Defining virtual paths in Oracle9LAS....................................................8
default.icons.iconpath = http:/ / myserver:port/ app1_images/ ........9
Icons deployed in Jar files............................................................................9
Troubleshooting...............................................................................................12
I cannot find Forms default icons shown in the smart toolbar............12
I cannot see my customs icons in Forms ................................................12
Check the icon configuration................................................................12
Verify that the correct icon name is referenced in Forms................12
Icons stored in JAR files are not shown when running in preview.....12
Icons stored in jar files don’t show in my Forms applications.............13
Make sure the Java archive file is accessible from the Web .............13
Check if your Forms application uses directory prefixes in icon
names........................................................................................................13
Make sure that icon names in the jar files have the right case.........13
Summary...........................................................................................................13
????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__,
Oracle9LAS_Forms Services – HowTo Deploy Icons
,1752'8&7,21_
Oracle9LAS Forms Services is a component of the Oracle9L Application Server
(Oracle9LAS) and represents the runtime framework to deploy Forms applications
on the Web.
Oracle9LAS Forms Services is also contained in the Oracle9L Developer Suite
(Oracle9LDS) for testing purposes while developing Forms applications.
Forms Applications deployed in Oracle9LAS Forms Services don’t use platform
specific image formats when displaying icons1 on buttons and tree item controls.
This Whitepaper explores various options of deploying icons in Oracle9L Forms
applications. In its first chapter this paper provides an end-to-end example as a
jumpstart to deploy icons in Oracle9L Forms.
This paper does not discuss the Oracle9LAS Forms Services architecture in detail,
but assumes a basic understanding of its architecture2.
'21¶7_:$17_72_/($51_$%287_7+(_'(7$,/6"_-867_*(7_67$57('__
You don’t have time to spend on learning about the background details but want
to get started immediately?
The following end-to-end example explains how to deploy icons in Oracle9L
Forms applications using Java Archive (Jar) files, to get you started immediately.
Oracle recommends deploying icons in Jar files.
(QWHULQJ_WKH_IDVW_ODQH_
You have an Oracle9L Forms application with many icons used on buttons and/ or
a hierarchical tree control. The icons are all in GIF format and are stored in the
c:\ myApp\ icons directory.
x_ On the command line, navigate to the c:\ myApp\ icons directory and issue the
following command to store the icons in a Java archive:
1 Throughout this paper the terms “image icons” and “icons” are use interchangeably.
Both terms refer to images in GIF or JPG format to show icons in buttons and tree
control items in Forms Web applications
2 A Whitepaper about the Oracle9LAS Forms Services architecture can be found at
otn.oracle.com/ products/ forms
????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__-
<Oracle Home>\jdk\bin jar –cvf myAppIcons.jar *.gif
x_ The myAppIcons.jar file, created in the c:\ myApp\ icons directory, needs to
be copied to the <Oracle Home>\ forms90\ java directory.
x_ Use a text editor to open the formsweb.cfg file in the <Oracle
Home>\ forms90\ server directory and add the myAppIcons.jar file in the
application section
[myApp]

archive_jini=f90all_jini.jar,myAppIcons.jar
imagebase=codebase
x_ Restart Form to see the deployed icons.
%HVW_3UDFWLFHV_
You should cleanly separate custom application files from the Forms default
installation directories by doing the following:
x_ Instead of storing the myAppIcons.jar file in the forms90/ java directory, copy
it to the directory storing all the other custom Forms application files (fmx,
pll). For this example, the directory is c:\ myApp.
x_ Modify the archive_jini value in formsweb.cfg file to ensure that all entries are
on one line
[myApp]

archive_jini=…3,/forms90/myApp/myAppIcons.jar
imagebase=codebase
x_ Configure the HTTP Server and map the c:\ myApp directory to the virtual
path “/ forms90/ myApp/ ”.
Note: To define a virtual directory such as / forms90/ myApp in Oracle9LDS,
open the orion-web.xml file in the <Oracle9iDS Home>\ j2ee\ Oracle9iDS\
application-deployments\ forms\ forms90web directory and add the following
line
<virtual-directory virtual-path="/myApp"
real-path=" c:\myApp" />
3 f90all_jini.jar goes here
????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__.
Note that the “/ forms90/ ” directory prefix is automatically added to the
virtual path in Oracle9LDS.
Note:To define a virtual directory / forms90/ myApp in Oracle9LAS, use a text
editor to open the forms90.conf file in the <Oracle9LAS
Home>\ forms90\ server directory and add the following line:
# Forms image path
AliasMatch ^/forms90/myApp/(..*) " c:\myApp/$1"
x_ Restart the HTTP Server for the virtual path “myApp” definition to become
active.
x_ Test the virtual path in a browser with the following URL:
http:/ / <host name>:<port>/ forms90/ myApp/ myAppIcons.jar
x_ If successful, the Browser prompts you to download the Jar file. Press cancel
to close this dialog.
x_ Next, restart Forms.
86,1*_,&216_,1_25$&/(_L_)2506_$33/,&$7,216_
To deploy Forms applications on the web that contain icons in buttons and in tree
control items, you’ll first need to convert the icon files into GIF (GIF 89a4) or JPG
format5.
Unlike the client/ server model of previous versions of Forms, in Oracle9L Forms
there is no UI_ICON variable to locate icons used in Forms applications. Instead,
image icons in Oracle9LAS Forms Services are referenced by a URL that is
constructed internally based on three things: the "imagebase" parameter in the
formsweb.cfg configuration file, the icon name in the items property palette, and
the default icon path setting in the Forms registry.dat properties file.
At runtime, icons in your Forms applications are referenced through the Forms
Java Applet.
7KH_³LPDJHEDVH´_SDUDPHWHU_
Forms application specific settings, as well as default settings, are stored in the
IRUPVZHE_FIJ configuration file, which islocated in the
<Oracle_Home>6\ forms90\ server directory. The LPDJHEDVH parameter specifies the
4 The older GIF 87a is not supported in Java
5 You can search the Internet for conversion tools that create the supported image files
from Windows .ico formats
6 The term <Oracle Home> refers to the Oracle9iDS Home and the Oracle9iAS Home
????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__/
location where Oracle9LAS Services looks for icons that are used in Forms
applications. The imagebase parameter can be set to one of the two values:
“documentbase” and “codebase”.
0_1_243_576_89;:=<?>=6
The default value of the imagebase parameter7 is GRFXPHQWEDVH, which means that
icons are looked up in a directory relative to the directory from where the Forms
start HTML file was downloaded. It looks like this:
[your_app_name]
form=…
imagebase=documentbase
Because Oracle9L Forms uses the Forms Servlet to dynamically render the Applet
start HTML file, the default icon location is the Forms Servlet root directory
_2UDFOH_L'6_+RPH!\ IRUPV__?M_HH?_IRUPV__DSS?IRUPV__ZHE. 8
If you don’t want to keep your icons there, you’ll need to specify a different
location by
x_ Using a directory that is virtually mapped in the HTTP server running the
Oracle9LAS Services;
x_ Using an absolute URL that points to a server that stores the icon images.
You specify these locations in the 5HJLVWU\_GDW properties file located in the
IRUPV__?MDYD_?RUDFOH?IRUPV?UHJLVWU\ directory.
At the bottom of the Registry.dat file the following two image properties can be
found: GHIDXOW_LFRQV_LFRQSDWK_and GHIDXOW_LFRQV_LFRQH[WHQVLRQ
The default value of default.icons.iconpath is left empty, which means that images
are expected to be in the Forms Servlet root directory, which is IRUPV__?M_HH?_
IRUPV__DSS?IRUPV__ZHE_in Oracle9LDS.
x_ default.icons.iconpath=/ virtual_image_path/
This setting expects image icons to be located in the physical directory
mapped to / virtual_image_path/ in the HTTP Server configuration,.
Forms uses the following path when searching for icons:
http:/ / <download host>:<port>/ virtual_image_path/ <image name>.gif
x_ default.icons.iconpath=http:/ / hostname:port/ virtual_image_path/
This setting looks for images in the virtual directory defined by the
7 The default value is set as a Forms Applet parameter in the “USER PARAMETERS”
section of the formsweb.cfg file
8 Because Oracle9LAS handles files using the Oracle HTTP Server and mod_oc4j, the
Servlet root directory cannot be accessed directly. Therefore, the default documentbase
setting only works within Oracle9LDS
????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__@
absolute URL. This option is useful if the image icons are not stored on
the same application server that runs the Forms application.
The default.icons.iconextensions property is defaulted to GIF and defines the
image format used in iconic buttons and tree item controls. To use the JPG image
format instead, change the value of this property to JPG.
A 1_B_6_:=<?>=6
imagebase=codebase
The codebase parameter points to the IRUPV__?MDYD directory of the Oracle9LAS or
Oracle9LDS installation that contains all the Jar files that are used to run Forms on
the Web. The codebase parameter can be used for referencing image icons in
Forms applications when they are contained in a Java Archive file (jar). To use the
codebase parameter for referencing images within a Forms application, the
following parameters need to be added in the formsweb.cfg file for the particular
application
[your_app_name]
form=…
imagebase=codebase
archive_jini=f90all_jini.jar,<your_image_archive>.jar

_
&21),*85,1*_25$&/(_L_)2506_)25_,&21_'(3/2<0(17_
This sections explains the icon deployment options for Oracle9LDS Forms
Developer and Oracle9LAS Forms Services.
8VLQJ_,FRQV_WKDW_DUH_VWRUHG_LQ_WKH_GHIDXOW_GRFXPHQWEDVH__2UDFOH_L'6_
RQO\__
Images are searched in this directory only if no changes have been added to the
Registry.dat file and no additional path information is provided in the Forms item
property LFRQ_)LOHQDPH.
To use this default configuration, you only need to copy the image icons used in
the Forms application to the IRUPV__?M_HH?_IRUPV__DSS?IRUPV__ZHE directory.
If you use directory name prefixes in the Forms icon Filename property, make sure
that the subdirectory of the forms90web directory has the same name9.
9 Customer used directory prefixing in client/ server Forms because the UI_ICON path
also only allowed one directory for storing icons
????__ _____ __ _ ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__C
8VLQJ_,FRQV_WKDW_DUH_VWRUHG_LQ_D_SDWK_GHILQHG_LQ_WKH_5HJLVWU\_GDW_ILOH_
The Forms Registry.dat file can be used to define an icon path that is relative to
the documentbase, an independent virtually mapped physical directory on the
application server, or another application server machine.
All changes applied to the Registry.dat file don’t require a restart of the HTTP
server.
B_6?D <_3_E 9;F G 21_8>_F G 21_8_H=<?9;I7JLK G 57<=M_6?>K
In this configuration, Forms expects the images to be stored in a physical directory
that is virtually mapped to the ‘images’ name in the configuration of the HTTP
listener.
When a separate physical server directory outside of the Forms installation is used
to store icon files it cleanly separates custom files from the Oracle9L Forms
installation directories.
0N6?D;G 8_G 84M7O_G P 9;3=<_E=H=<?9;I>QG 87RSP <=24E 6=TVU 0NW
In Oracle9iDS, the Oracle HTTP listener is not available; instead the OC4J HTTP
listener is used. Therefore, configuring the virtual path for images needs to be done
in the orion-web.xml file located in the <Oracle9iDS Home>\ j2ee\ Oracle9iDS\
application-deployments\ forms\ forms90web directory. The following setting
defines a virtual directory IRUPV___LPDJHV_that points to the icon directory c:\ temp
directory:
<virtual-directory virtual-path="/images"
real-path="C:\temp" />10
You may wonder where the IRUPV__ piece in the virtual path is coming from:
The name IRUPV___is the name defined for Forms during installation. In other
words, _IRUPV____creates a virtual mapping to the directory <Oracle9iDS
Home>\ j2ee\ Oracle9iDS\ application-deployments\ forms\ forms90web that
contains the orion-web.xml file.11
0N6?D;G 8_G 84M7O_G P 9;3=<_E=H=<?9;I>QG 87RSP <=24E 6=TVU X_W
Virtual path mappings in Oracle9LAS are configured in the IRUPV___FRQI_file12. The
IRUQV___FRQI_file is located in the <Oracle9iAS Home>\ forms90\ server directory of
the Oracle9L_Application Server installation and contains all configurations
required to run Oracle9LAS Forms Services.
10 Note that this needs to be provided in one single line
11 A more technical explanation is that Oracle9LAS Forms Services is installed as a Web
application in OC4J and runs within its own namespace. The Forms Servlet and the
Forms Listener Servlet are J2EE components that handle all Forms Web
communication. Both components are accessible through the namespace suffix _IRUPV__
12 The forms90.conf file does also exist in the forms90/ server directory of Oracle9LDS
but is not used there
????__ _____ __ _Y ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$__
The IRUPV___FRQI file is linked into the Oracle HTTP Server and read during
application server startup. This also means that the application server needs to be
restarted after changes have been added to the IRUPV___FRQI file for the changes to
take effect.
To create a virtual mapping, for example IRUPV___LPDJHV, for images used in
Oracle9LAS Forms Services, open the forms90.conf file with a text editor and add
the following line:
# Forms image path
AliasMatch ^/forms90/images/(..*) "D:\FormsIcons/$1"
The physical directory on the server machine is specified as D:\ FormsIcons. Both
the virtual path13 name and the physical icon directory can be freely chosen.
Don’t forget to restart the Oracle9i Application Server for the changes to take
effect.
The name of virtual directory path needs to be added as the value of the
GHIDXOW_LFRQV_LFRQSDWK parameter in the registry.dat file.
B_6?D <_3_E 9;F G 21_8>_F G 21_8_H=<?9;I7JQI9 9;H_Z K K 5\[_>=6_P O=6_P_Z H41_P 9 K <_H_H_]_^_G 57<=M_6?>K
This configuration is useful if you want to store all images on a central server
instead of locating them on all servers running a particular Forms Web application.
Using this approach, no changes are required on the Oracle9LAS Forms Services
machine or the Forms application modules. The virtual path to access the image
icons need to be configured on the server that hosts the images.
,FRQV_GHSOR\HG_LQ_-DU_ILOHV_
Saving the best for last, using a Java archive file (JAR) to store and deploy image
icons has some advantages over all the deployment options mentioned before:
x_ Deploying icons in a Java archive file works the same in Oracle9LAS
Forms Services as in Oracle9LDS and Oracle9LAS;
x_ The configuration is the same and no HTTP server file needs to be
changed;
x_ Jar files can be created for each application and therefore allow you to
group images by applications and avoid naming conflicts;
x_ Jar files are downloaded the first time they are requested by a client. After
this ‘initial’ download, the archive files are permanently cached on the
client and don’t need to be downloaded again.
13 Using _IRUPV___ as a prefix of the virtual path name ensures consistency in the
naming with all other mappings contained in IRUPV___FRQI file
????__ _____ __ _Y ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$_'_;a
Jar files are only renewed if the timestamp of the archive file has been
changed or the cached file is removed from the client side cache. This
approach may have a performance benefit for applications that have many
iconic buttons or run on networks with small bandwidth
Unlike Jar files that contain Java code, e.g. f90all_jini.jar, Jar files that contain
images don’t need to be signed.
Jar files that hold image icons must be copied to the forms90/ java directory in
both Oracle9LDS and Oracle9LAS installations.
To create a Jar files for images, you need a Java Development Kit (JDK)
installation, or a Java 2 Standard Edition Development Kit (J2SDK or SDK)
installation. J2SDK is the new name for what used to be called the JDK in older
Java releases.
It is important to note that you need to have a SDK or JDK installation and not
just the Java Runtime Installation (JRE) to create Jar files. The JRE contains only
runtime components that the “jar” command is not a part of..
Oracle9LDS and Oracle9LAS contain a JDK directory with the latest SDK in it.
The bin directory of this JDK directory contains the Jar utilities that are needed to
create or extract Jar files.
To create a Jar file for the icon images that are used in your Forms Web
application, issue the following command from the directory that contains the
images
jar –cfv <application_images>.jar *.gif
The output is a new Jar file that contains all the gif files in the current directory.
The basic parameters used within this command are:
x_ “c” for creating a new file
x_ “f” to specify a filename for the output
x_ “v” for a verbose output written to standard out
The following command creates a new Jar file with the name app1Images.jar that
contains all the GIF files in the current directory.
jar –cvf app1Images.jar *.gif
It is recommended to call the Jar command from the directory that contains the
application image icon files. Archives can be opened with the WinZip tool. Doing
this should only list the names of the image files contained in the archive without
any directory names.
????__ _____ __ _Y ________ _________ ___ ______________ __"!___#$_ _&%_' ____(__ )$__*$_'___
You may need to call the Jar command by specifying the JDK directory in the
Oracle9LDS installation. The following command creates a Jar file ‘app1Images.jar’
in the forms90\ java directory including all GIF files of the current directory
<Oracle9iDS Home>\ JDK\ bin\ jar –cvf <Oracle9iDS Home>
\ forms90\ java\ app1Images.jar *.gif
Now that you have created the app1Images.jar files with the images required for
your iconic buttons and tree item controls, the next step is to configure the
formsweb.cfg file to use this Jar in Forms.
Use a text editor to open the IRUPVZHE_FIJ_file located in the forms90/ server
directory of the Oracle9LDS or Oracle9LAS installation. If you are using
Oracle9LAS, you also can edit the formsweb.cfg file using Oracle9L Enterprise
Manager.
Forms applications are defined in named configuration sections within the
formsweb.cfg files. Named configurations are located on the bottom of the
formsweb.cfg file and inherit their default settings from the “System Parameter”
and the “User Parameter” sections. To create a new named configuration for your
Forms Services application, scroll to the bottom of the opened formsweb.cfg file
and add the following entry:
[myForms]
form=myModule.fmx
userid=scott/tiger@orcl
This application is called on the Web using the following URL
http:/ / <hostname>:<port>/ forms90/ f90servlet?config=myForms
For this application to read the images for iconic buttons from the Java archive
created, add the following lines to the Named User configuration:
[myForms]
form=myModule.fmx
userid=scott/tiger@orcl
DUFKLYHBMLQL I__DOOBMLQLW_MDU_DSS_,PDJHV_MDU_
LPDJHEDVH FRGHEDVH
The Forms archive tag, archive_jini in this example, references the f90all Jar file
and the Jar file containing the image icons.
The “imagebase” parameter is set to codebase which means that Forms looks for
the IRUP___MDYD URL when downloading images. Because Java first searches in Jar
b_c d_e_f g_h_Y ij_k_l_c m_n_j_g_c o_p e_g_n_q_r_l_s_t_l"u_g_v$f l&w_x e_l_y_n z$d_{$g'|;}
files that are located within the codebase directory, the images are read from the
app1Images.jar14 file.
7528%/(6+227,1*_
,_FDQQRW_ILQG_)RUPV_GHIDXOW_LFRQV_VKRZQ_LQ_WKH_VPDUW_WRROEDU_
The Forms standard icons for the smart bar are stored within the f90all_jini.jar file
and are already deployed.
,_FDQQRW_VHH_P\_FXVWRPV_LFRQV_LQ_)RUPV_
This can have many reasons. There are several actions that can fix this common
problem;
~€==.4...;=.. .._.7.._..;. ._._ .?.;. ._.
Check the configuration of your icons path. If your Forms application is using
icons that are referenced by the Forms documentbase, you should be able to
access the images from the following URL
Images located in the forms90web directory:
http:/ / <host>:<port>/ forms90/ <image name>.gif
Images located in a directory mapped in the registry.dat file:
http:/ / <host>:<port>/ forms90/ <virtual path><image name>.gif
For icons stored in Jar files, make sure that there is no directory information stored
within the Java archive file. Open formsweb.cfg file and make sure the imagebase
parameter is set to code base and the archive_xxx parameter contains the name of
the archive file holding the images. Finally verify that the image archive file is
stored in forms90/ java
_;. . ..;=.?._.;=\.._; =.V.N. .._.Q.=.4.7.. .Q ?. _ _.4.?=... .Q.4._..\.
Java is case sensitive which most often is a problem for users running on Windows
system. The case used in the “icon FileName” property in Forms must be the
same as shown in the image name. On Windows, select the icon name and press
F2 as if to edit the icon name. This shows the “real” case of the icon name, which
most often is the same as displayed in the Windows Explorer, but can differ.
,FRQV_VWRUHG_LQ_-$5_ILOHV_DUH_QRW_VKRZQ_ZKHQ_UXQQLQJ_LQ_SUHYLHZ_
The Run Form feature in Oracle9L Forms Developer allows you to run a Forms
application on the Web for testing. The Web URL is constructed based in the
Forms Builder setting in the EditÆPreferencesÆRuntime menu option. By
default, the URL does not contain the config=<named configuration> parameter
which means that the default imagebase setting, documentbase, is active. To show
14 Or whatever the name of your Java archive file is
b_c d_e_f g_h_Y ij_k_l_c m_n_j_g_c o_p e_g_n_q_r_l_s_t_l"u_g_v$f l&w_x e_l_y_n z$d_{$g'|;.
images that are stored in Jar files while using Run Form, create a named
configuration that contains the following entries
[preViewMode]
archive_jini=f90all_jinit.jar,app1Img.jar
imagebase=codebase
Edit the $SSOLFDWLRQ_6HUYHU_85/ setting on the Runtime menu option and append
‘?config=preViewMode’ to the URL shown. For example:
http:/ / <hostname>:8888/ forms90/ f90servlet?config=preViewMode
If no URL is shown in the $SSOLFDWLRQ_6HUYHU_85/_field, then press the ‘Set Default’
button to obtain this URL.
,FRQV_VWRUHG_LQ_MDU_ILOHV_GRQ¶W_VKRZ_LQ_P\_)RUPV_DSSOLFDWLRQV_
. ._._.._._ ..;=..=.?.=.L._.4_. .=..;. . .. .\.=..??.._. ._. ..;._. .;=.¡¢_.
Make sure that the Java archive file is accessible from the Web. Test it by entering
the URL into a browser:
http:/ / <host>:<port>/ forms90/ java/ <iconjar file>.jar
If this doesn’t open a download dialog in your browser then the Jar file cannot be
found. If you followed the best parctice tip that is mentioned earlier, replace
“/ java” with the virtual name you defined for images.
~€==.4.L. ._?._._N.4._..\.\._£_£_. . .?.?.;. ._.Q..=?.7._. =.V.._ \£_ ?.;. ¤=?.Q. .Q. .._.Q.=.4.7?.
If your application uses directory name prefixes in the icon names, then these
directories must either be removed or added to the Jar file.
. ._._.._._ ..;=.?.N. .._.Q.=.4.7?.Q. .L.;=.¥ .__.;. . ?.Q=.?.=..;=.;. ._._.?.?.=
Icon names in Java are case sensitive. Make sure that the case used for icon names
is the same in the Forms Developer and the Java archive. On Windows, select the
icon name and press F2 to see if the internal icon name is the same as the one
displayed in the Explorer.
6800$5<_
Because Web-based applications no longer use platform specific file formats for
iconic buttons and tree controls, icons first need to be converted into GIF or JPG
format. It is recommended to cleanly separate image locations from the Forms
installation directories if you’re not using Jar files.
b_c d_e_f g_h_¦ ij_k_l_c m_n_j_g_c o_p e_g_n_q_r_l_s_t_l"u_g_v$f l&w_x e_l_y_n
§&¨ y_g_}_©_©_.
i ¨_ª « l_c ¬&k&c d_y&­_®Vp m'v « p ¨ n
¯?l_y ª c p ° ¨_ª p y_{_i ¨_ª « l_c n_¬_±_c d_y ª_² l_y_d_f ³$´ ² l_°$p y_µ_p m'm_g_c m_d_y&y
b_c d_e_f g_¯?l_c v&l_c d ª p l_y
¶ l_c f ³"r_g_d_³$• ¨ d_c ª g_c n
¸ ©_©_b_c d_e_f g'z$d_c ­.s_d_w
² g_³_s_l$l$³Nj « l_c g_n_´_¯_i¹h_º_©_» ¸
¼V½ j ½ i ½
¶ l_c f ³_s_p ³$g_x y_• ¨ p c p g_n_¬
z « l_y_g$¬_¾$| ½ » ¸ © ½ ¸ ©_» ½ ¿ ©_©_©
k_d_À_¬_¾$| ½ » ¸ © ½ ¸ ©_» ½ ¿ }_©_©
s4s4s ½ l_c d_e_f g ½ e_l_m
b_c d_e_f g_¯?l_c v&l_c d ª p l_y'v$c l&o_p ³$g_n ª « g_n_l_Á ª s_d_c g
ª « d ª v&l_s_g_c n ª « g_p y ª g_c y_g ª ½
b_c d_e_f g_p n_d_c g_{_p n ª g_c g_³ ª c d_³$g_m_d_c ­_l_Á_b_c d_e_f g_¯?l_c v&l_c d ª p l_y ½. d_c p l ¨ n
v$c l$³ ¨ e ª d_y_³'n_g_c o_p e_g_y_d_m_g_n'c g;Á g_c g_y_e_g_³ « g_c g_p y'm_d_w_°&g ª c d_³$g_m_d_c ­;n
l_Á_b_c d_e_f g_¯?l_c v&l_c d ª p l_y ½ i=f _l ª « g_c_v$c l$³ ¨ e ª d_y_³'n_g_c o_p e_g_y_d_m_g_n
m_g_y ª p l_y_g_³_m_d_w_°&g ª c d_³$g_m_d_c ­;n_l_Á ª « g_p c_c g_n&v&g_e ª p o_g_l_s_y_g_c n ½
¯?l_v_w_c p { «_ª&Ã }_©_©_._b_c d_e_f g
i=f _c p { «_ª n'c g_n_g_c o_g_³ ½

رابط هذا التعليق
شارك

- أنشيء بتون (زر)
2 - خصاائص البتون يوجد Icon filename=
أضف إمتداد الصورة save.Gif فقط
3-إمتداد الصورة لا بد أن يكون Gif * مع الإنتباه لحالة الحروف كبيرة أم صغيرة عند حفظ الصورة أو كتابتها في Icon filename
4- الذهاب إلى الأمتداد هذا C:\OraHome2\forms90\java\oracle\forms\registry
وسوف تجد السطرين الأتيين :

default.icons.iconpath
default.icons.iconextension
وتظيف عليهما الأتي
بعد الأضافة تكون
default.icons.iconpath=/FORMS90/HTML
default.icons.iconextension=Gif

5 - ثم إظافة الصورة في هذا الأمتداد C:\OraHome2\tools\web90\html

ثم أعمل كومبايل

رابط هذا التعليق
شارك

ابدا معي خطوه خطوة
1- يجب ان تكون الايقونات من نوع GIF وكنت احب ان ارفق ملف به الايقونات ولكن الجهاز يرفض لا ادري لماذا
2- الذهاب الى المسار التالي HOM10G\FORMS90\SERVER
ثم نفتح الملف FORMSWEB ونذهب الى السطر ImageBase نكتب الجملة التالية
ImageBase=CodeBase
تكتب كما هي لا تغيير فيها شئ واكرر كما هي

3- ثم نقوم بنسخ المجلد الذى به icons من النوع gif فى المسار التالي
HOM10G\FORMS90\java\oracle\forms

اسف نكمل الخطوه التالية
4- نذهب الى المسار التالي
HOM10G\forms90\java\oracle\forms\registry
ونفتح الملف registry ونذهب الى السطر التالي ونكتب كما هو
default.icons.iconpath=oracle/forms/icons
حيث ان icons هو المجلد الذى به الايقونات gif حيث اننا لا نكتب كامل المسار الذى وضعنا فى الايقونات فقط من هذا المسار
ان شاء الله تعمل وتأكد انها تعمل عندى 100% وجربتها ولو لم تظهر يكون المشكلة فى نوع الايقونا لو احد يعرف كيفة تحميل الملفات ارسلك ملف به اكثر من 100 ايونة gif
وهذه اسهل طريقة من بين ثلاث طرق
ولا تنسانا فى الدعاء

رابط هذا التعليق
شارك

انضم إلى المناقشة

يمكنك المشاركة الآن والتسجيل لاحقاً. إذا كان لديك حساب, سجل دخولك الآن لتقوم بالمشاركة من خلال حسابك.

زائر
أضف رد على هذا الموضوع...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   تمت استعادة المحتوى السابق الخاص بك.   مسح المحرر

×   You cannot paste images directly. Upload or insert images from URL.

جاري التحميل
×
×
  • أضف...

برجاء الإنتباه

بإستخدامك للموقع فأنت تتعهد بالموافقة على هذه البنود: سياسة الخصوصية