No Sir example did not work, I look again later and let you know.My example doesn't work? On my device it works...
Otherwise in fact now you just set your clock as string in a Label, it's easier effectively![]()
thats OK Sir. I have got it working Panel and the button works great. Blind Manns Luck. I've been up all night so have learnd something.I meant ImageButton sorry, it's easier than draw it to a bitmap...
Update: Klaus, this is very interesting indeed ! I've tested your Clock and it is GREAT. If I could get a Panel to slide in from the bottom of frm now... what do you think about it Klaus ?
Sub btnMenuUpDown_Click
If Timer1.Enabled=false Then
btnMenuUpDown.Image = IL1.Item(1)
pnlTime.Visible = True
pnlTime.Top = 240
Timer1.Enabled = True
Timer5.Enabled = True
Timer1_Tick
pnlTime.Visible=True
Else
Timer1.Enabled = False
Timer5.Enabled = False
pnlTime.Visible = False
End If
End Sub
Normaly your program should not working...
You've written twice "Else"...
And I think that your code can be much shorter...
But maybe it's wrong, I don't know exactly what Timer5 do on your program...[/code]B4X:Sub btnMenuUpDown_Click If Timer1.Enabled=false Then btnMenuUpDown.Image = IL1.Item(1) pnlTime.Visible = True pnlTime.Top = 240 Timer1.Enabled = True Timer5.Enabled = True Timer1_Tick pnlTime.Visible=True Else Timer1.Enabled = False Timer5.Enabled = False pnlTime.Visible = False End If End Sub
I do not know how the quotes work but; tmr5movespnltop
Normaly your program should not working...
You've written twice "Else"...
And I think that your code can be much shorter...
But maybe it's wrong, I don't know exactly what Timer5 do on your program...[/code]B4X:Sub btnMenuUpDown_Click If Timer1.Enabled=false Then btnMenuUpDown.Image = IL1.Item(1) pnlTime.Visible = True pnlTime.Top = 240 Timer1.Enabled = True Timer5.Enabled = True Timer1_Tick pnlTime.Visible=True Else Timer1.Enabled = False Timer5.Enabled = False pnlTime.Visible = False End If End Sub
I do not know how the quotes work but;
tmr5movespnltop
I am really sorry about this mess ! Dont get teed at me folks OK.to much JD- Wiskey.