Re: Jiri's Widgets Help
- Posted by jiri babor <jbabor at PARADISE.NET.NZ> Nov 21, 2000
- 424 views
Hi, ck, > I want to display a bitmap file in a window... Using jiri's widgets, > how would I go about doing that? > If not in a window, how about in a frame? You can place your bitmap anywhere you like, in a window or directly on the screen. But be warned, I have not implemented any sort of clipping so far. You can use the standard display_image(), or one of several routines built into the widgets that allow you to merge or xor your images. > If I'm using widgets.e, when I load a bitmap, do I have to set > all_palette 'n' stuff, or does widgets do that for me? Life is not supposed to be that easy, ck. Palette manipulation is usually quite tricky, but I believe it can also be fun, unless you are colorblind as I am. Just remember to reserve the first 16 colors as system colors, do not touch those, otherwise you will get some funny colored widgets. There are plenty of tools for color twiddling available in the archives, just from memory Colin Taylor made a set, Pete and Mic probably too, possibly several other, including mine. Do not use all_palette(), use my set_colors(), it's part of the widgets too. It is much faster and it allows you to selectively modify any part of the palette, as long as it is a *contiguous* range of colors. I would love to tell you to hold your horses, completely reworked, friendlier version of the widgets is on its way, but I can't. I had a stupid, dreadful disaster this morning: half asleep I wanted to copy my working directory on to the floppy to take it to work (for safety I usually store every thing important on at least two machines), but instead of typing copy *.* a:\ I typed copy a:\*.*. You guessed it, I copied an old version from the floppy over the new version. Almost a week of work up in smoke inside 20 seconds... jiri Btw, I think it was also you talking about cards, shuffling. Have a look at my deal.ex, a short bridge hand dealer. You will find it in my Euphoria pages. It's nothing much, just a simple illustration of some clever techniques of card handling, but it has also the best, fastest shuffle under the sun...;)