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:
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:

DonManfred

Expert
Licensed User
Longtime User
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

josejad

Expert
Licensed User
Longtime User
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

mcqueccu

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

B4X:
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:
Dim label6 as B4XView

Then put your Code in the B4XPage Created

B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("LayoutName")
   
    label6.Color = colors.transparent
End Sub
 
Upvote 0

fgh3966

Active Member
Licensed User
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

  • pbtransparent.zip
    14.3 KB · Views: 63
Upvote 0
Top