[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Problem with nano-x: scrolling pixmap through window (pixmap width > window width) will cut string
From: "Andreas Schwinghammer" ####@####.#### Date: 3 Jul 2013 13:48:54 -0000 Message-Id: <0326F7003E716B4D8567431FD874480880182B@NEW-5000-GRAF.Newlift.local> Hi all, I have a problem with scrolling pixmaps. I want to scroll an individual string text through a window with a pixmap. The pixmap has the dimensions following dimensions => width = stringlen in px, and the height of the display window My display window has the dimension 800x140. Now I want to write the string via GrText in the pixmap. The problem is, that my text will cut after 800 px. Is the text string smaller than 800 px it works. Could it be that the pixmap is restricted by screen width? How can I fix it or do anyone know a workaround. The scrolling itself works, only the cut of the text string is the problem. Many thanks. Andi | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: [nanogui] Problem with nano-x: scrolling pixmap through window (pixmap width > window width) will cut string
From: Greg Haerr ####@####.#### Date: 9 Jul 2013 06:21:15 -0000 Message-Id: <66CD018C-23E5-41BC-A7DA-2CA6F19781FF@censoft.com> Andreas, What exact code are you using to create the pixmap? Also what version of nano-X/mwin are you using. You must use the function that specifies a pixel count that is large enough for your text string. Do not specify a parent window, or that window will be used for the default clip region. It sounds like your pixmap is either being created the wrong size, or it is being assigned a clip region that is based on a physical window, which will then clip to screen boundaries. Regards, Greg > Hi all, > > > > I have a problem with scrolling pixmaps. > > > I want to scroll an individual string text through a window with a > pixmap. > The pixmap has the dimensions following dimensions => > > width = stringlen in px, and the height of the display window > > My display window has the dimension 800x140. > > > > Now I want to write the string via GrText in the pixmap. > > The problem is, that my text will cut after 800 px. > > Is the text string smaller than 800 px it works. > > Could it be that the pixmap is restricted by screen width? How can I fix > it or do anyone know a workaround. > > > > The scrolling itself works, only the cut of the text string is the > problem. > > > > Many thanks. > > > > Andi > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |