Never mind, I've mocked-up the buttons using glpixels to draw on an
isigraph. Much more robust, cross-platform, and no external pic-files:
everything's in a J script.

But it does feel funny :) composing icons by-hand like this:

icoDIVITEMS=: 0 : 0
////////////////////////////////
.............................../
.............................../
.............................../
..............====............./
.............=bbbr=............/
............=bbbbrr=.........../
............=bbbbrr=.........../
............=bbbbrr=.........../
.............=bbbr=............/
..............====............./
.............................../
.............................../
....========================.../
....=bbbbbbbbbbbbrrrrrrrrrr=.../
....=bbbbbbbbbbbbrrrrrrrrrr=.../
....=bbbbbbbbbbbbrrrrrrrrrr=.../
....=bbbbbbbbbbbbrrrrrrrrrr=.../
....========================.../
.............................../
.............................../
..............====............./
.............=bbbr=............/
............=bbbbrr=.........../
............=bbbbrr=.........../
............=bbbbrr=.........../
.............=bbbr=............/
..............====............./
.............................../
.............................../
.............................../
.............................../
)


On Thu, Sep 22, 2011 at 2:59 AM, Ian Clark <[email protected]> wrote:
> Heritage j602 question...
>
> I'm trying to draw a 31x31 px bitmap on a square button, defining the
> button this way:
>
> xywh 240 16 16 16;cc bn31 button bs_ownerdraw;
>
> On the Mac it works fine and covers the button neatly. But on Windows
> (and I can only try Win2000) the same code insists on drawing a border
> round the picture, shrinking and truncating it.
>
> Menu Studio > Demos... > control -shows an icon (big J) on a button,
> with exactly the same width border. Is there a way of getting rid of
> the border?
>
> And where can I find bs_ownerdraw documented?
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to