support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > isCOBOL General > User Interface > How to deploy bitmaps when running in application server
Question Title How to deploy bitmaps when running in application server

Consider the following situation; a customer develops a graphical program, either using the Screen Painter of the IDE or coding everything by hand. The program contains an Screen with several bitmaps on the push-buttons that are entered as relative paths, they work ok if the program is running standalone however running on a client/server environment (Thin Client or WebClient for instance) there are more things to take into account. What are the options to make these bitmaps available to the program no matter where it's run?

The options for making your bitmaps available to W$BITMAP load at run time are:

  1. Use a relative path and start iscserver from the same folder as the bitmaps
  2. Put the path to the bitmaps in the CLASSPATH (in isserver.vmoptions in case of Windows service)
  3. Use a configuration variable for the root directory, reference the variable, and build the full path to pass to W$BITMAP (iscobol.mybmppath=c:mainroot - Accept bit-root from environment mybmppath)

The #3 is the best practice, especially for ISVs that will be installing on different systems.

Also, there is a way to load a bitmap from the client machine, approach that has two considerations: it can be faster because the request doesn't go to the server, however there is a caveat, this option needs to have the bitmaps in all the client machines.

Following some code snippets to illustrate the above suggestions:

Using relative path

    CALL "W$BITMAP" USING WBITMAP-LOAD
                          "resources	ool.png"
                   GIVING h-tool
Using only the bitmap name:
    CALL "W$BITMAP" USING WBITMAP-LOAD
                          "tool.png"
                   GIVING h-tool
Loading the bitmap from the client:
    CALL "W$BITMAP" USING WBITMAP-LOAD-FROM-CLIENT
                          "my-logo.png"
                   GIVING h-logo

Authored by: Veryant Support This question has been viewed 465 times so far.
Click Here to View all the questions in User Interface category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. How do I center a window on the desktop?
  2. Does isCOBOL provide GUI design support?
  3. iscobol.font.default and DEFAULT-FONT
  4. What are the specific fonts that isCOBOL uses by default?
  5. Can I have an entry-field that more or less works the same as Google Search? So I would like to be able to change the contents of the list while the user is typing...
  6. Does isCOBOL provide Graph modules to show statistics?
  7. Did you know isCOBOL has the Accordion control?
  8. Is it possible to sort dates in a grid control?
  9. Working with a grid control is there a way to get the double-click event?
  10. How can I refresh the current contents of the paged grid?
  11. Is there a way to show leading zeros when numeric data items are displayed on a character based screen?
  12. How can I show an animated gif with isCOBOL?
  13. Did you know isCOBOL supports a tip inside the entry-field and combo-box controls when they are empty?
  14. Is it possible to configure the color of the read-only entry-fields?
  15. Did you know how to customize color of the borders of some controls?
  16. UNC Paths with Browser Control don't work. What can I do to solve it?
  17. Did you know that you can protect a Grid from editing without coding any event?
  18. How to copy data from the clipboard
  19. How to detect if a computer has more than one monitor and use any of them?
  20. Gradient effects
  21. How may I display a notification window that requires no user intervention?
  22. Do isCOBOL GUI Screens have resizing capabilities?
  23. How to add pages and GUI controls inside them to a tab control dynamically?
  24. Can I modify the GUI controls of a Screen program from a called routine?
Article Information Additional Information
Article Number: 314
Created: 2020-11-26 4:58 AM
Rating: No Rating
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.