Android Question Questions - Menu,Edittext,image position

grifoDev

Member
Licensed User
Longtime User
Hi,

Menu> I would like to change the items of Menu on event ( example: change Panel)..
is it possible ?

EditText> Can I digits in UpperCase ?

Image> Panel1.addview("img1",....) follow I want insert into "Panel1" again "img1".
What I can use for insert multiple "img1"?

thanks
grifoDev
 

klaus

Expert
Licensed User
Longtime User
1) Menu, unfortunately you cannot change menu items.

2) EditText1.Text = EditText1.Text.ToUpperCase

3) Panel1.addview("img1",....) should be Panel1.addview(img1,....)
What do you mean with ... follow I want insert into "Panel1" again "img1" ?
You can add other ImageViews the same way as the first one but must also you Dim and Initialze them.
 
Upvote 0

grifoDev

Member
Licensed User
Longtime User
I must reinsert "img1" in other position of "panel1" - in the "panel1" I must position two "img1"
(sorry for my bad english..)
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
As I already told you, you can add other ImageViews, even with the same name but you must Dim and Initialize each of them.
B4X:
Dim img1 As ImageView
img1.Initialize("")
Panel1.AddView(img1, 10dip, 10dip, 150dip, 100dip)
'
'
Dim img1 As ImageView
img1.Initialize("")
Panel1.AddView(img1, 10dip, 170dip, 150dip, 100dip)
 
Upvote 0

grifoDev

Member
Licensed User
Longtime User
Hello,
only information....CodeSnippets.pdf
reading this pdf file, I see that the description in point 2.26 it is identically to point 2.39.

Hi
grifoDev
 
Last edited:
Upvote 0

grifoDev

Member
Licensed User
Longtime User
e' un file ufficiale della b4a per principianti come me....
adesso non ho sottomano il link ... ci sono brevi esempi che spiegano
le cose basilari...
grifo
 
Upvote 0

grifoDev

Member
Licensed User
Longtime User
tranquillo, volevo solo far notare ( credo l'abbia fatto Klaus ) che c'e'
un capitolo ripetuto 2 volte... Se volessi inviare un post ad un membro specifico
come si fa'??
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
....CodeSnippets.pdf
reading this pdf file, I see that the description in point 2.26 it is identically to point 2.39.
Thank you, I will change it for the next edition.
These code snippets are even somewhat old because Erel added in the LayoutValues object ApproximateScreenSize.
So the code can be changed to :
B4X:
Sub GetDevicePhysicalSize As Float
    Dim lv As LayoutValues
    lv = GetDeviceLayoutValues
    Return lv.ApproximateScreenSize
End Sub
You should have posted this in a new thread because it's not the subject of this thread.

For your ImageView problem couldn't you post a small project as a zip file, so we could look at it?
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
Vado troppo di corsa e non ho letto che ti riferivi al CodeSnippets.pdf... guardo, provo a capire a cosa ti riferisci e ti rispondo


In effetti, sono identici. Ti confesso che la grafica, col designer e lo script designer, mi uccide.

Io ho trovato una mia soluzione, che adotto in una mia app e quindi lo considero un problema risolto (ma a modo mio!).

E' molto meglio, per te, studiare il Designer e i Designer Scripts.

(Così poi me li spieghi, hehehe)


ciao
 
Upvote 0
Top