$paintedocc and Grid

Author: i2stiller@gmx.de (istiller)

diseli said Hi Lars, The function $paintedocc returns the number of painted occurrences of the current or the specified entity. Hope this helps. Daniel  

If one use resizeable grids, what infomation does $paintedfields hold? Answer  : The number of occs at compiletime. Wish*)   : A few new functions 1. Which is the first (partial) occourence visible on a form 2. Which is the last (partial) occourence visible on a form 3. What a the actual horizontal dimension of the entity/grid 4. What a the actual vertical dimension of the entity/grid Ingo *) as the wishlist still not working :-)

4 Comments

  1. I've moved this post from here since it is a bit off-topic (HTML widget is not supported in a Grid). Thanks, Ingo. You are raising a valid wish here. But the name of the function $paintedocc already suggests that it will return the number of occurrences painted on the form (paint). You are looking for a function that returns the number of visible rows of (e.g.) a Grid (something like $visibleoccs or $visiblerows). Daniel


    Author: diseli (daniel.iseli@uniface.com)
  2. To add to this, I don't see it being technically realistic to add the HTML widget to the grid. It would imply that each cell would be it's own individual 'mini browser session' and would eat into windows client resources very quickly. We ran into exactly this issues with Uniface 10, and had to resolve using thinks like resource pooling, use of paging, JavaScript optimisation, etc, etc. Some of the enhancements were very application specific, in our case, the app is the Uniface 10 IDE, but some have (or are going to be) put into the product. I think the effect is more in the DSP layer than in the HTML control. 


    Author: Adrian Gosbell (adrian.gosbell@synapse-i.jp)
  3. Adrian Gosbell said To add to this, I don't see it being technically realistic to add the HTML widget to the grid. It would imply that each cell would be it's own individual 'mini browser session' and would eat into windows client resources very quickly. We ran into exactly this issues with Uniface 10, and had to resolve using thinks like resource pooling, use of paging, JavaScript optimisation, etc, etc. Some of the enhancements were very application specific, in our case, the app is the Uniface 10 IDE, but some have (or are going to be) put into the product. I think the effect is more in the DSP layer than in the HTML control.   

    There seems to be some confusion here. I've created a new topic for Ingo's post, since he's referring to using $paintedocc with the Grid. And in the topic he initially posted the discussion is about using the HTML widget in a mult-occ. form. It is not suggested to support the HTML widget in the grid.


    Author: diseli (daniel.iseli@uniface.com)
  4. Ingo, It probably does not cover exactly what you are looking for but for 3) and 4), if you want to know the size in pixels, you can get that in the Viewport_Resized extended trigger. Theo


    Author: Theo Neeskens (tneeskens@itblockz.nl)