Hi, 1. use IupText, don't think the highlight would be possible 2. in the valuechanged_cb change the VISIBLECOLUMNS and VISIBLELINES attributes so they match the text 3. use IupImage and IupLabel 4. not simple
The canvas can be a IupCbox inside a IupBackground box or inside a IupFrame, but there is no support for dragging a control around. But it is possible by creating a custom box that has a handler that can be moved around and has some highlight feedback. For instance, a IupCanvas, inside a IupVbox where you add another element. Processing mouse callbacks on the IupCanvas is possible to move the box around. Best, Scuri On Tue, Aug 12, 2014 at 5:40 PM, Milind Gupta <[email protected]> wrote: > Hi, > I am looking to emulate a form which has boxes whose sizes can vary > as the text in them is written. These boxes have to handle text with > formatting (rich text). Is it possible and by any chance any example or > tutorial of such a program, hopefully in Lua? I would want to place these > boxes on a white background so that it gives an impression of writing on a > document. > The specific functionality would be: > > 1. These boxes are on a white canvas and want to highlight their boundary > with mouse over or they may have a visible border all the time > 2. Box grows in size to accommodate text as the text fills up the box > (scroll bars should not appear) > 3. Would want to place images as well on the same canvas in different areas > 4. Would want functionality to be able to drag these boxes around with a > mouse on the canvas > > Any suggestions and help would be really welcome. > > Thanks, > Milind > > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Iup-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/iup-users > >
------------------------------------------------------------------------------
_______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
