Forum > Android

LAMW jImageList

(1/1)

dseligo:
Is there something special going on with jImageList?
If I put jImageList on a form and choose some images and then put another jImageList on the same or another form: images are already there in the new jImageList!

Also, how can I have something like Data Module, to have things like this in one place?

rsu333:
Check path,
Or Talley with sharedemo app.
 

jmpessoa:

--- Quote --- how can I have something like Data Module ...

--- End quote ---

You can try add a secondary form and the set the property ActivityMode = actEasel
(this form can only be "create" and "init" .....[but  not "show"...]

dseligo:

--- Quote from: rsu333 on July 11, 2021, 06:01:08 pm ---Check path,

--- End quote ---

What path do you mean?


--- Quote ---Or Talley with sharedemo app.

--- End quote ---

I included test project (from jni directory).
If I add jImageList to unit1, it already has images in it - same as in unit2.
If I delete all jImageLists in project and add it again - it already has images in it.
Adding and removing in one jImageList affects other jImageList.
It's like that there is some global permanent jImageList for project.

dseligo:

--- Quote from: jmpessoa on July 12, 2021, 07:05:45 am ---
--- Quote --- how can I have something like Data Module ...

--- End quote ---

You can try add a secondary form and the set the property ActivityMode = actEasel
(this form can only be "create" and "init" .....[but  not "show"...]

--- End quote ---

I did that and then put jImageList on that form.
I have jImageView on main form and secondary form (with ActivityMode actEasel) in uses of main form.
I can't select property images in Object Inspector of jImageList. If I enter it manually (
--- Quote ---DM.jImageList1
--- End quote ---
), then I can select image and it is shown in design time. But in run-time image is not shown.
It works if properties are set in code:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---  jImageView2.Images:=DM.jImageList1;  jImageView2.ImageIndex:=3;
I attached example.

Navigation

[0] Message Index

Go to full version