Actually my problem is that the custom control I was trying to create using iupglcanvas is not possible with this limitation. I need to have a composition of controls like the text boxes, images, etc. on the canvas and scroll them. I am unable to find a solution to scroll these controls. Just the glcanvas scrolling also seems to behave weirdly when I just use the canvas scroll bar instead of a scroll box: it does not scroll the controls in the canvas box, just the canvas and if the canvasbox is large the canvasbox scrollbar somehow does not allow the mouse cursor over the scroll bar. As soon as the mouse goes over it the whole screen goes black and when it comes back the mouse cursor is on the center of the canvas rather than the scroll bar (attached script shows this issue). Also the scroll bar dx is not correct.
Any suggestions how I can implement this type of UI using IUP? I am trying to implement a test case using wxLua so we can compare IUP scrolling script with wxLua since both use native controls. Milind On Mon, Dec 1, 2014 at 4:12 PM, Antonio Scuri <[email protected]> wrote: > I think you should let the IupText do its job. As long as text is being > added to it it will program and expand its own scrollbar. The chances that > internally would overcame this limitation are much more possible. > > Best, > Scuri > > > On Mon, Dec 1, 2014 at 8:39 PM, Milind Gupta <[email protected]> > wrote: > >> Thanks for looking into this. I am curious how do programs get around >> this. For example Microsoft word can have a document with 100s of pages and >> it is still able to scroll to all of them. Same for say notepad. Do you >> know how to get around the limitation? >> >> Thanks, >> Milind >> >> On Mon, Dec 1, 2014 at 2:23 PM, Antonio Scuri <[email protected]> >> wrote: >> >>> It is a system limitation. Your control is too big and although its >>> size is correct, the windows scrollbar has some limitation that prevents >>> the scrollbox to work. >>> >>> This code: >>> >>> tb1 = iup.text{rastersize = "1131x8581",multiline="YES"} >>> >>> sb = iup.scrollbox{ >>> tb1 >>> } >>> dlg = iup.dialog{ >>> sb; >>> title="Dialog" >>> } >>> dlg:show() >>> >>> Works ok. But if you change 8581 to 38581 it will crop the visible >>> area. >>> >>> Best, >>> Scuri >>> >>> >>> On Fri, Nov 28, 2014 at 6:44 PM, Milind Gupta <[email protected]> >>> wrote: >>> >>>> I modified the test case to just have a text box instead of the canvas. >>>> After pasting a large text chunk in the text box it is more easily visible >>>> that the scroll box actually stops scrolling after the scroll thumb is >>>> about 9/10th of all the way down. Is this a limitation of the scroll box or >>>> is this a bug? >>>> >>>> Thanks, >>>> Milind >>>> >>>> >>>> On Fri, Nov 28, 2014 at 10:48 AM, Milind Gupta <[email protected]> >>>> wrote: >>>> >>>>> Hi, >>>>> I have attached a test case which on my system stops generating >>>>> the canvas action call back when the scroll box is about 9/10 ths of all >>>>> the way down. >>>>> Please let me know if I am doing something wrong or is there a >>>>> limitation on scroll box or the canvas in any way. >>>>> >>>>> Thanks, >>>>> Milind >>>>> >>>>> >>>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >>>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >>>> with Interactivity, Sharing, Native Excel Exports, App Integration & >>>> more >>>> Get technology previously reserved for billion-dollar corporations, FREE >>>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >>>> _______________________________________________ >>>> Iup-users mailing list >>>> [email protected] >>>> https://lists.sourceforge.net/lists/listinfo/iup-users >>>> >>>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >>> with Interactivity, Sharing, Native Excel Exports, App Integration & more >>> Get technology previously reserved for billion-dollar corporations, FREE >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >>> _______________________________________________ >>> Iup-users mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/iup-users >>> >>> >> >> >> ------------------------------------------------------------------------------ >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> >> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >> _______________________________________________ >> Iup-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/iup-users >> >> > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Iup-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/iup-users > >
glcanvasboxWscrollbar.wlua
Description: Binary data
------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________ Iup-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/iup-users
