Android Question tranparent label or button into B4XMainpage

fgh3966

Active Member
Licensed User
How to set transparent label or button into b4xmainpage, because b4A talk to me : undeclared variable, why ?

B4X: Copy
Public Sub Initialize
'    B4XPages.GetManager.LogEvents = True
    label6.Color = color.transparent
End Sub

B4A say : B4XMainPage - 25: Variable non déclaréee 'color' elle est utilisée avant de lui avoir attribuée une valeur.


Thanks
 
Last edited:
How to set transparent label or button into b4xmainpage, because b4A talk to me : undeclared variable, why ?
HOW can anyone help here? You are not providing ANY useful info here.
Where is the small project showing the problem?
 
Upvote 0
Variable non déclaréee 'color' elle est utilisée avant de lui avoir attribuée une valeur
Do you have some variable called "color"?

Maybe you want to use: "xui.Color_Transparent" (you must have the library XUI checked in the library tab)
 
Upvote 0
How to set transparent label or button into b4xmainpage, because b4A talk to me : undeclared variable, why ?

B4X: Copy
Public Sub Initialize
'    B4XPages.GetManager.LogEvents = True
    label6.Color = color.transparent
End Sub

B4A say : B4XMainPage - 25: Variable non déclaréee 'color' elle est utilisée avant de lui avoir attribuée une valeur.


Thanks
Make sure label6 is added in the designer and declared in class Global as
B4X: Copy
Dim label6 as B4XView

Then put your Code in the B4XPage Created

B4X: Copy
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("LayoutName")
   
    label6.Color = colors.transparent
End Sub
 
Upvote 0
The problem is only about the (green) label4 at the middle left of interface, you can only increment this label.text
I want add transparent interface (button or other) at the bottom of this label for decrement us label.text
It run wel with another program that not use b4xmainpage
 

Attachments

Upvote 0
Back
Top