General question for plucker developers..

While fixing the problem of plucker running on the NR70 device, I've
come across a stupid issue. If you change your toolbar to appear at
the bottom, and lower the virtual silkscreen the lower toolbar will
infact appear about 2/3 down the screen and be overwritten by text.
All the buttons and the extent is in the proper location, but its the
definition of forms that is screwing up.

In order to fix this, the only way to do so is to dynamically draw the
images using sony's hires api in the right spot. Just by simply
defining them in the RCP file is moot and doesn't work properly.

The good thing about drawing the images manually is that now we can
support hires images (rather than the blotty 160x160 looking images
common on sony hires devices)..

I decided to kill two birds with one stone, get hires toolbar images
while fixing the nr70 problem. The big issue with this is that a
completly new set of resources would need to be defined for each image
for each size. For example, right now there are 9 bmp resources
defined for each of the 9 toolbar images.

Defining hires sony image resources brings that up to 18. Then when we
want hires OS5 images we're already at 27.

My solution is this (which is what I need an opinion on). Rather than
defining each image individually, include all the buttons themselves
onto a single image that happens to be 160x15, or 320x30, etc. That
way instead of having 27 seperate little image resources, we have 3.

Code would need to be changed a little bit, as well the usage of
GetControlBounds() in mainform.c would need to be changed (almost
hardcoded, but not really:) But it should work.

I tried mocking this up on my own device (yes, even spent the time
making hires images et al) and overall it looks very good.

My question though, does anyone have a problem in changing things to
be done in this way?

-- 
Adam McDaniel
Array.org
Calgary, AB, Canada
_______________________________________________
plucker-dev mailing list
[EMAIL PROTECTED]
http://lists.rubberchicken.org/mailman/listinfo/plucker-dev

Reply via email to