1. Re: Jiri's Widgets Help - Disproved theory
- Posted by tacitus <indor at PRIMUS.COM.AU> Nov 20, 2000
- 380 views
I'm wrong so long as the image is displayed over (and after) the window, either display_image() or show(pic) will create image as child of window without any further coding required. here's my example: include screen.e include pic.e include window.e integer win integer picture sequence bmp bmp = read_bitmap("circles.bmp") bmp = bmp[2] -- ROBERT, we should be able to subscript a function. win = window("Window for Pic Test", 150, 100, 400, 300) picture = pic(200, 175, bmp, -1) --affix(win, "par", picture) --bind(win, "ima", bmp) set_screen("Pic Test", 18, WHITE) show(win) show(picture) --display_image({200, 175}, bmp) loop() set_text_mode() ---------------- i thought either the affix or bind lines were required, but not so. the display_image line works instead of show(picture). have i got it now jiri? cheers