ListView scroll with different cell sizes
Hello,
my application changes the size of (some) cells in a listview.
Now in my case the scrolling of the listview becomes a problem. Because a larger cell is passed much faster than smaller cells - so the scrolling speed is not constant anymore.
But I need the scrolling to stay contant. Is that possible?
I hope this explanation was understandable ...
thanks!!!
Thanks for your answer!
Unfortunately I don't really understand your solution...
But let me show you my problem a little more precisely:
When you try the following code a listview will appear. Double clicking an item will expand the item's size. Now try to drag the scroll bar and you will see what i mean (the expanded item is passed very fast). Unlike that when clicking the arrows of the scrollbar, the behaviour is as I want it.
So does your solution fix that?
thanks!!!!
import javafx.animation.KeyFrame;
import javafx.animation.Timeline;
import javafx.scene.layout.Stack;
import javafx.scene.control.Label;
import javafx.scene.control.ListCell;
import javafx.scene.control.ListView;
class ExpandablePane extends Stack {
var expanded = false;
var expanding = false;
var prefHeight:Number;
var h:Number on replace {
if (expanding) requestLayout();
public function toggle() {
if (not expanding) {
if (expanded) {
contract();
} else {
expand();
function expand():Void {
expanding = true;
h = prefHeight = height; // store off the old height
Timeline {
keyFrames: KeyFrame {
time: 250ms
values: [
h => 200,
expanding => false,
expanded => true
}.play();
function contract():Void {
expanding = true;
Timeline {
keyFrames: KeyFrame {
time: 250ms
values: [
h => prefHeight,
expanding => false,
expanded => false
}.play();
override function getPrefHeight(width) {
if (expanded or expanding) {
return h;
} else {
return super.getPrefHeight(width);
ListView {
items: for(i in [1..20]){
ListCell {
var ep:ExpandablePane;
node: ep = ExpandablePane {
content: Label {
text: "{i}"
onMouseClicked: function(e) {
if (e.clickCount == 2) {
ep.toggle();
}
Similar Messages
-
Credits scroll with different colors and txt size
I am trying to do a credits scroll with different text color and size How do I best do this. I understand how to do it with text/scroll but that doesn't allow me to do different text colors and size. How do I do it with Boris Crawl?
Message was edited by: Tony BraveHi -
Mark an In and Out where you want the roll to roll.
Load Boris Crawl in to the viewer and edit to the timeline.
Double click on the clip in the timeline.
On the control tab for Boris Crawl you can set it to roll your text:
!http://www.spotsbeforeyoureyes.com/Boris%20Crawl%20Set%20Roll.jpg!
Then click on the box above that where it says click for options and create your roll:
!http://www.spotsbeforeyoureyes.com/Boris%20Type%20Example.jpg!
Once you have typed and formatted your text, click apply and you should be able to see the roll.
The speed of your roll is basically determined by the length of the clip on the timeline, the Controls tab for the clip gives you lots of subtle and not so subtle adjustments - like a soft wipe at the top and bottom of the crawl, etc.
Hope this helps. -
Hi guys n girls. How do you copy a whole table to create a new table with all cell sizes in tact? Thanks for your help. Jason.
when you copy n paste into a new table, all the cell sizes are changed.
is there a way to put in a new table from your templates into an existing file, different to the standard very basic ones in insert table.
I look forward to your answers. Your help is very much appreciated.
Also how do you search for question answers already written in this support area please.Hi Jason,
In Numbers 3, you can select a whole table by clicking once in the table to make it active, then click once on the "bull's eye" at the top left.
Now copy and paste. All formatting (and any cell content) is pasted intact. In Numbers 2.3 (Numbers '09) it is a little different for selecting a whole table. But I won't go into that unless you are using Numbers '09. Please reply.
I don't like the look of the tables in Insert Table. I keep custom tables in My Templates. I have set Numbers > Preferences > General > For New Documents > Use template: (name of my favourite custom template)
That opens when I launch Numbers, or ask for a new document (command n). Note that if you follow this preference setting, then Menu > File > New From Template Chooser (for another template) requires you to hold down the option key in that menu.
Regards,
Ian.
Message was edited by: Yellowbox. All formatting (and any cell content) is pasted intact. -
How to create a report with different page sizes
Hi,
I would like to create a report with different page sizes, it's possible to do it with diadem?
When I change the layout parameters, changes afect to all sheets...
Is there a way to change page size individually for each sheet?
Thanks in advance.
MarcHi Marc,
You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach. This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
' Print PDF Page by Page.VBS
OPTION EXPLICIT
Dim i, Path, OldPrintName
Path = AutoActPath & "2D Stacked"
Call DataDelAll
Call DataFileLoad(Path & ".TDM")
PDFFileName = Path & " Page by Page.pdf"
IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
OldPrintName = PrintName
PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
PDFResolution = "72 DPI" ' "2400 DPI" , "default"
PDFOptimization = TRUE
PDFFontsEmbedded = FALSE
PDFJPGCompressed = "high"
PrintOrient = "landscape" ' orient paper
Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
PrintLeftMarg = 0.181
PrintTopMarg = 0.181
PrintWidth = 10.67
'PrintHeigth = 7 (read-only)
Call WndShow("REPORT")
Call DocStart ' Begin multi-page document/print job
FOR i = 1 TO 4
Call PicLoad(Path & ".TDR")
Call GraphSheetNGet(1)
Call GraphSheetRename(GraphSheetName, "Page " & i)
Call PicUpdate
Call PicPrint("WinPrint") ' Add a page to be printed
NEXT ' i
Call DocEnd ' End multi-page document/print job
PrintName = OldPrintName
Call ExtProgram(PDFFileName)
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
Creating a document with different page sizes.
I'm trying to produce a leaflet with different pages sizes. To try and explain what I mean I have included a picture of what I'd like the front cover to look like. When producing a booklet there doesn't seem to be a provision to individually alter each page size in the pages or document set up panel. Is there anyway around this or do I have to create each page seperately, export to pdf and then combine into the leaflet? Help gratefully received. tomas
The build booklet feature is for very basic booklets, not something like this.
Sorry, but you’ll need to make everything full size and then do the cutting.
Bob -
Creation of PDF with different page sizes
I am generating PDF using Acrobat Distiller from my application from the .ps file. From one machine, the PDF is generated with different page sizes.one page with 8.5*12.99 and other pages with 8.5*11 in the same PDF. However the PDF is created with correct page sizes for all the pages in another machine. The only difference between the machines is the Internet Explorer version. I am using Internet explorere 11.0 and the other machine have a version of 8.0 installed.
Why the difference in page size occured? Is there any dependency on the Internet explorer used while creating the PDF using Distiller? Any help for the issue with the discrepancy in the page sizes is really appreciated.
Thanks!Acrobat Distiller uses the page size in the PS file. May be a problem of your application which create the PS file.
-
Tablespace creation with different block size
OS - rhel 4.3
kernel - 2.6.9
Oracle - 10.2
Hardware - IBM X series 346.
Defined block size for the db - 8kb.
Question: Can I create a tablespace with 16k?
regards,
LilyYou can create a tablespace with 16k blocks if, as Daljit suggests, you create a 16k block buffer cache.
I would, however, ask why you would want to create such a tablespace? The ability to have tablespaces with different block sizes in a single database was created primarily to allow the use of transportable tablespaces in situations where different databases had different block sizes. If you are trying to create a 16k block size for a different reason, there are a couple of things to be aware of
- While there are theories out there that tablespaces with different block sizes can have dramatic effects on performance, I've never seen any solid evidence that backs up this theory.
- Using different block sizes in the same database can significantly increase the complexity of managing a database. You'll have multiple buffer caches that you'll have to size, for example, automatic SGA management doesn't work with non-standard block size buffer caches, etc.
Justin -
Database Tablespaces with different block sizes...
Hi ,
What are the pros and cons of setting different block sizes to tablespaces, and where may be this useful???
Thanks,
Simonhttp://asktom.oracle.com/pls/ask/f?p=4950:8:101384681997409236::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:44779427427730
generally speaking tablespaces with different block sizes than the db standard are for transportable tablespaces only.
however,
Burleson will tell you to micromanage your memory allocations with multiple block sized tablespaces and various keep/recycle caches.
http://www.dbazine.com/oracle/or-articles/burleson2
I think its overkill and you can most likely get performance improvements from looking at other things such as the SQL your applications are running against the db. My rule of thumb is that 70% of your performance improvements are going to come from sql tuning. You can focus on the other 30% when the vast majority of your queries use 5 LIO per row per join. (Milsap's ratio not mine) -
Material Cost Estimate with different lot size.
What happens if the material cost estimate is run twice using different lot sizes each time (all other parameters unchanged) for the same period?
Will the cost estimate run later overwrites the results from cost estimate run earlier (though the lot size is different)? What is the role of lot size in a material cost estimate?The costing lot size impacts your cost estimate if you have lot size independent costs (i.e. setup cost). Those fixed costs are spread over the costing lot sizee to give you a cost per unit.. Larger costing lot sizes can also help you minimize rounding issues.
You can only have one marked cost estimate in a given period. However, you can create and save a cost estimate as many times as you want as long as you have not marked it for release. When you save the estimate it will overwrite an existing estimate. You also have the option of creating multiple estimates under different versions or with different costing variants. -
Loading images with different horizontal sizes
I would like to load images with different horizontal
resolutions (vertical resolution to be the same) dymanically into
an empty movie clip. I would like them to load with the right hand
side of the image lined up with the right hand side of my site. I
have seen many tutorials about how to accomplish the loading of the
movies, but I cannot figure out how to make them open with the
right hand side always lined up on the right.
To be more specific, let's say I have three images of the
varying pixel resolutions (1200x600, 800x600, and 400x600 for
example). I would like the horizontal size to always extend away
from the right hand side of the site with the right hand edge of
the images always lined up.
Is this possible to do by loading them into an empty movie
clip?
thanksWhen you load an image file into an empty movieClip, that
clip takes on the dimensions of the loaded content. The
registration point for the clip is set to the upper left corner.
So, once the new image is loaded, just set that clip's .x to the
stage width - the width of the clip. -
Material number for chemical with different packing sizes
A same chemical that we purchase from supplier can be in 25Kg bag, 1000kg bag and 50 kg bag. When we receive the chemicals, the physical goods of the chemical are in 25 KG Bag, 1000kg Bag and 50Kg bag store in the warehouse.
When we sell to customer, it can be in those 3 standard bag size or in KG depend the order quantity from customer.
For the above Chemical what is the best way to catalogue the material number, should it be 3 material numbers for the 3 different pack size, or 1 material number only?you can have two solution for this with both pros & cons with one material master:
1. You can have three different unit of measure for 25KG, 1000KG & 50KG bag and you can maintain the relationship in the material master. This will help you to get the total stock in KG in your company and you can sell to the customer. Only problem is you will not be able to determine how much of each type of packaging you have.
2. You can define the material relevant for batch management. Create three batches 25KG,1000KG & 50KG, also create three different unit of measures as explained above. Now whenever you are doing the GR just put the material in correct batch, by doing this you can easily track you material along with the type of packaging. Also you can sell the material, while delivery you can use the functional of batch determination based on some log. Only problem is manual intervention which can be covered if you use some exit while doing GR so that correct batch is selected based on the Order Unit.
Hope this will help you..
Enjoyyyyyyyyyyyyy
Akshit -
Crystallize same image to different cell size automated
Hi, I am looking to findout if there is a way to automate the process of editing the same photo multipul ways. What I want to do is take one image then apply the pixelate, crystallize feature to an image but I need to to apply every cell size from 3 to 300. I want to automate this process as to do it by hand would be a very long job
Any help would be much appreciatedSuch a workflow is too advanced to do in Photoshop Elements. While Elements does support some automation, this is automation of applying the same thing to multiple files, it does not allow you to make multiple changes to a single file. This couldn't even be accomplished with Actions, which Elements does have some support for (you can use them, but you cannot create them). To accomplish this, you would need to use Scripting in the full version of Photoshop.
-
Add table with uneven cell sizes
Hi,
I want to add tables at specified coordinates on the page whose various columns have different number of cells of different unevenly sizes.
The picture below illustrates what I mean.
Would be most happy if someone can tell me the words so that I can make a thousand pictures.
Thanks
TrevorRegarding the different size cells, can it be done other than using the merge feature?
@Trevor:
no, if you speak of one plain table.
Of course you can consider tables inside cells if you like it complicated.
Uwe -
Creating a list with different row sizes...
I'm new to AS 3.0 and CS4 and I've been getting up to speed
on all of it. I've used the List component before with my own
CellRenderer. I now need to create a list with different row
heights. The List component is great and does everything that I
want but it requires all rows to be the same height.
I'm unsure of where to go. Creating my own class seems like a
lot of work. The TileList and Grid components don't allow different
sized (and dynamically changing) row heights either. Is there some
base class (SelectableList? BaseScrollPane?) that I should extend
or do I need to just bite the bullet and write it all from scratch?
I need each row to have it's own height and interaction with
a row could change the height of the row. The main use is a list of
data. If the user clicks in an item, it turns the display into
something they can edit (which will need more height).
Thanks for any thoughts on a direction I should think about.
By the way, I really like that AS 3.0 is much more consistent of a
programming language than previous MX versions that I've used.
We're doing a lot of AS/Flash/AIR work with it and it's turning
into a wonderful environment...Any ideas about this??
-
Fail to create PDF from 2 templates with different page sizes
Hi,<br /><br />I am having problems to create a PDF with multiple page sizes and using 2 templates.<br /><br />I have to create a PDF using two dynamic templates. The second template has multiple pages, some A4 some A3, which I select through subforms (A3 specific subforms are on an A3 page).<br /><br />So:<br />^job <mdf1> -zOut.pdf<br /><fields><br />^form <mdf2>.mdf<br />^page 2<br />^group G_heading_A3<br /><fields><br /><br />The templates on their own are ok, but when I combine them the second is always A4, even if a) the subforms are on A3 (heading_A3) and if b) the page is A3 (page 2).<br /><br />I couldn't find anything on the web nor in the documentation. Does anyone have a clue?<br /><br />Thanks, Edward
The build booklet feature is for very basic booklets, not something like this.
Sorry, but you’ll need to make everything full size and then do the cutting.
Bob
Maybe you are looking for
-
Syncing iPod with iTunes using Windows Vista
I bought my iPod last December and had an Hp Laptop using Windows Xp. Recently I bought a new computer that has Windows Vista on it and since then I can't sync my iPod. iTunes won't recognise that it's even connected. I have transfered all my music a
-
Hopefully someone can help with the IF AND functions in Numbers for iPad. The formula(s) that I am using works fine in both Excel and in Numbers, but I am not able to make them work as a combine entity in Numbers for iPad and wonder if someone have a
-
How to create split development directory environment using Eclipse Galileo
Hello there! Well my question is on the subject... i want to use my Eclipse Galileo IDE to develop applications but i don't know hoe to set the develop structure for that... how can i set the build path? Should i add al the *.jar on weblogic lib? I k
-
I get caught in a loop when trying to log into my account in iTunes and redeeming cards. When i enter my password i get stuck in a loop where i kept getting asked for it over and over again. The weird thing is intermittently - maybe after 20 or 30 ti
-
Schemes Cost/price cost how to capture
Hi Experts, I have the below intersting topics which need to map in to SAP FICO. 1. There is one scheme saying that if customer is purchase qty 3o, there is one qty is obsulutly free. The above case, billing will be only for qty 30 but delivering 31