You can send the 'click' message to the control with Hardware.SendMessageToControl:
Pressing Button1 will show the calendar or hide it if it is already opened.
B4X:
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
hardware.New1 'Hardware object
End Sub
Sub Button1_Click
hardware.SendMessageToControl("Calendar1",513,0,0) 'Change Calendar1 to your calendar name.
hardware.SendMessageToControl("Calendar1",514,0,0) 'Change Calendar1 to your calendar name.
End Sub
attached you find a small example maybe helps for better
understanding of my problem.
In this example the control calendar1 is visible=false, when you click on the button1 control beside the
TextBox1 Control the Calender1 control opens and now I want to change the date and the result
should be display in the TextBox1 control. But no reaction after clicking in the calender control
on a different date to today the calender1 control only close but not move throu the event value_changes.
Does it happen with the compiled executable?
I don't see any exception on my Vista computer, but our security settings may be different.
You can try to right click on the executable and choose Run As Administrator.
it happens in the basic4ppc developing UI desktop and when I start the compiled executeable file then I got message shown in attached printscreen
Translation:
DE = Fehler bei der Anforderung des Berechtigungstyps
EN = Error by request the authority types
When I do right click on executable file and execute as admin it popup with same error message !
Problem solved, it was a authority situation, source folder
located on a seperate drive on physical maschine and I have tied to work with a mapped root from virtual maschine running on physical maschine where source folder. Now I have copied complete source folder directly on the virtual maschine and all works fine.