SCOUG Logo


Next Meeting: Sat, TBD
Meeting Directions


Be a Member
Join SCOUG

Navigation:


Help with Searching

20 Most Recent Documents
Search Archives
Index by date, title, author, category.


Features:

Mr. Know-It-All
Ink
Download!










SCOUG:

Home

Email Lists

SIGs (Internet, General Interest, Programming, Network, more..)

Online Chats

Business

Past Presentations

Credits

Submissions

Contact SCOUG

Copyright SCOUG



warp expowest
Pictures from Sept. 1999

The views expressed in articles on this site are those of their authors.

warptech
SCOUG was there!


Copyright 1998-2024, Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.

The Southern California OS/2 User Group
USA

SCOUG-HELP Mailing List Archives

Return to [ 02 | April | 2003 ]

<< Previous Message << >> Next Message >>


Date: Wed, 2 Apr 2003 08:32:24 PST8
From: "Steven Levine" <steve53@earthlink.net >
Reply-To: scoug-help@scoug.com
To: scoug-help@scoug.com
Subject: SCOUG-Help: Saving custom icons (was: Fresh vs. Fixpak)

=====================================================
If you are responding to someone asking for help who
may not be a member of this list, be sure to use the
REPLY TO ALL feature of your email program.
=====================================================

In <3E8A7943.1A14@peterskye.com>, on 04/01/03
at 09:46 PM, Peter Skye said:

>Do these numbers refer to the OS/2 version which first supported the
>format?

I'm pretty sure that's the case.

>are different. PMView is able to open both of them. 2.0 must have some
>capability that 1.2 doesn't have.

Probably larger limits on colors and sizes and device types.

>I never played around with making unusual icon sizes because I never
>could figure out (through experimentation) how OS/2 decided which icon to
>display.

It's not entirely obvious. What you could do is make a simple icon and
use a different background color for each device. This combined with
reordering the devices in the select should give you some better data.

>of icons in 32-bit Windows"). Perhaps either the OS/2 1.2 or 2.0 format
>is the same as this?

The are close, but not the same. OS/2 supports Win icons. Here's some
more info on OS/2 icons:

http://www.edm2.com/0107/os2bmp.html

>extended attribute or in an icon .ico file), what determines which one
>will be displayed?

I don't know exactly myself. I'm sure the resolution and size are matched
against the PM device context capabilities.

>And if there isn't an exact match (on size and color
>depth apparently), is an existing one selected and resized or recolored
>on the fly?

Yes. Depending on the video driver, can be optional. This is was causes
the washed out icons some complain about.

>Curiously, when I use IconEdit I choose XGA/8514 Small Color Form -- but
>when I save to disk and then reopen in IconEdit they are still 20x20-16
>but are now called Independent Color Form.

The icon file stores a copy for each format. I suspect your setup
believes the Independent Color Form is the best.

>The list being the various icons stored in the resource, yes?

Has to be.

>What is the "device option"? Is the name ("XGA/8514 Small Color Form"
>etc) actually stored in the icon resource?

No, just a predefined id.

>How does PM determine what values it is looking for among the various
>icons in the resource? Does PM look at an object's Properties?

No. It looks a the the device context and the requested icon size. This
PM stuff, not WPS stuff. The WPS is just a PM application.

>Basically, here's the question: If I store my icons in disk files as Ray
>suggests, and I *only* store them as 20x20 16-color, and if an object
>points *only* to one of these icons, will the icon display no matter what
>the object's properties might be changed to in the future?

What you really want to ask is will the icon display properly on a screen
with a different resolution that may use a different video driver. The
answer is, it depends.

Basically what happens is PM knows the size in pels of bounding rectangle
that the icon is suppposed to display within. It loads chooses the bitmap
that fits best from those stored within the icon resource. Then, if
needed and if allowed, it has the GPI resize the icon to fit better. Then
it requests the GPI to display the bitmap.

Steven

--
---------------------------------------------------------------------
"Steven Levine" MR2/ICE 2.35 #10183 Warp4/FP15/14.085_W4
www.scoug.com irc.webbnet.org #scoug (Wed 7pm PST)
---------------------------------------------------------------------

=====================================================

To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-help".

For problems, contact the list owner at
"rollin@scoug.com".

=====================================================


<< Previous Message << >> Next Message >>

Return to [ 02 | April | 2003 ]



The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA

Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS RESERVED.

SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group. OS/2, Workplace Shell, and IBM are registered trademarks of International Business Machines Corporation. All other trademarks remain the property of their respective owners.