Hi,
I've been playing with the 'MobileDatePicker' function. Superb.
Is there such a function for the Windows and / or Mac OSes ?
I've searched the forum and found various 'workarounds' but just wondered (looking at the dates of those) if there is now something similar to 'MobileDatePicker' for the Windows and Mac platforms integral to LiveCode ?
TIA
Regards.
DatePicker
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
DatePicker
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Re: DatePicker
Hi Trxgeek,
http://droptools.sonsothunder.com
Best
Klaus
not build into the OS like on iOS!Traxgeek wrote:Hi,
I've been playing with the 'MobileDatePicker' function. Superb.
Is there such a function for the Windows and / or Mac OSes ?.
There are several useful "Calender" stacks around, check "Rev Online" (Menu: Development) or here:Traxgeek wrote:I've searched the forum and found various 'workarounds' but just wondered (looking at the dates of those)
if there is now something similar to 'MobileDatePicker' for the Windows and Mac platforms integral to LiveCode ?
http://droptools.sonsothunder.com
Best
Klaus
Re: DatePicker
Thanks for that Klaus.
I've been 'up to no good' with some example Date Picker stacks and scripts I've found and have knocked up something that'll do just fine. Not 'tuned' for iOS or Android but a generic date picker... Thanks for the pointers...
I've created a generic DatePicker and want it to operate on various buttons on a particular card. I have scripted that the Picker 'pops up' kinda 'attached' to the field it's about to update (just set its top right to the initiating controls bottom right) and set the hilite of the selected date input control to suit my DatePicker group whilst the two are displayed - effectively, to help visual 'pairing' of the popped up DatePicker to the selected date input control. All very well and good BUT... (you knew it was coming
!)...
I'm trying to remove / hide the popped-up DatePicker and reset the 'hilite' property (or whatever other hilighting idea I may get !) of the control that called it (not part of my DatePicker group) when I click anywhere ouside/off the DatePicker IF the DatePicker is currently visible... (make sense ?)
So... Is there a really generic method to detect clicking on 'ANY' control on a card and even the card itself and also of detecting that the click WASNOT on a SPECIFIC control ?
My idea : card level script :
on ClickOnANYControl (ControlName)
If ControlName is not "myDatePicker" then
Set the visible of group "myDatePicker" to false
Set the threeD of field "myDateInputField" to true [false]
end if
end ClickOnANYControl
As an asside - is there any way to 'Dim' the parts of a card that currently don't have 'focus' in an attempt to focus the users attention on the popped up control / group of controls ? I've looked for dim, focus and rest but to no avail...
Hope that all makes sense...
TIA
Regards.
I've been 'up to no good' with some example Date Picker stacks and scripts I've found and have knocked up something that'll do just fine. Not 'tuned' for iOS or Android but a generic date picker... Thanks for the pointers...
I've created a generic DatePicker and want it to operate on various buttons on a particular card. I have scripted that the Picker 'pops up' kinda 'attached' to the field it's about to update (just set its top right to the initiating controls bottom right) and set the hilite of the selected date input control to suit my DatePicker group whilst the two are displayed - effectively, to help visual 'pairing' of the popped up DatePicker to the selected date input control. All very well and good BUT... (you knew it was coming

I'm trying to remove / hide the popped-up DatePicker and reset the 'hilite' property (or whatever other hilighting idea I may get !) of the control that called it (not part of my DatePicker group) when I click anywhere ouside/off the DatePicker IF the DatePicker is currently visible... (make sense ?)
So... Is there a really generic method to detect clicking on 'ANY' control on a card and even the card itself and also of detecting that the click WASNOT on a SPECIFIC control ?
My idea : card level script :
on ClickOnANYControl (ControlName)
If ControlName is not "myDatePicker" then
Set the visible of group "myDatePicker" to false
Set the threeD of field "myDateInputField" to true [false]
end if
end ClickOnANYControl
As an asside - is there any way to 'Dim' the parts of a card that currently don't have 'focus' in an attempt to focus the users attention on the popped up control / group of controls ? I've looked for dim, focus and rest but to no avail...
Hope that all makes sense...
TIA
Regards.
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Re: DatePicker
Further to my last :
It would seem that I can use a mixture od FocusIn/FocusOut, OpenField/CloseField and ExitField to achieve this - each one has it's uses in certain circumstances...
BUT, I'd need to add these scripts to each 'control' on my card... seems a little cumbersome BUT it does work...
I was trying to think back to how I achieved this in 'other' languages / days gone by and it was probably something similar although - to be totally frank I can't remember...
Anyway - please consider my last two posts here as 'ramblings' and take no further action UNLESS - of course - there is a really slick way of doing this.
FYI, I also looked at the
repeat for each element/control "E" in card "myCardName"
...
end repeat
kind of idea but... I couldn't get the repeat to work for the various controls on my card (my poos syntax) and I'm not sure it would have worked anyway !!
Onwards and upwards...
Have a great weekend all !
Regards.
It would seem that I can use a mixture od FocusIn/FocusOut, OpenField/CloseField and ExitField to achieve this - each one has it's uses in certain circumstances...
BUT, I'd need to add these scripts to each 'control' on my card... seems a little cumbersome BUT it does work...
I was trying to think back to how I achieved this in 'other' languages / days gone by and it was probably something similar although - to be totally frank I can't remember...
Anyway - please consider my last two posts here as 'ramblings' and take no further action UNLESS - of course - there is a really slick way of doing this.
FYI, I also looked at the
repeat for each element/control "E" in card "myCardName"
...
end repeat
kind of idea but... I couldn't get the repeat to work for the various controls on my card (my poos syntax) and I'm not sure it would have worked anyway !!
Onwards and upwards...
Have a great weekend all !
Regards.
I'm 'getting there'... just far too slowly !
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Mac (Siera) and PC (Win7)
LiveCode 8.1.2 / 7.1.1
Re: DatePicker
To know which control was clicked, see the "target" in the dictionary.
You can usually dim things by setting their "enabled" property. The visual result varies by control, but try it.
You can usually dim things by setting their "enabled" property. The visual result varies by control, but try it.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com