1. Black Friday Sale - 50% off

    B4A Standard for $29 instead of $59!
    Buy Now
    Dismiss Notice

Android Question Unknown member: showcalendar (Dialogs2.94 and B4A 6.80)

Discussion in 'Android Questions' started by vecino, Mar 3, 2017.

  1. vecino

    vecino Well-Known Member Licensed User

    Hello, I have a problem with ShowCalendar.
    The problem is with the new version 6.80
    I installed Dialogs2.94
    The error is: Unknown member: showcalendar
    What I can do?

    Sample Code:
    Code:
    Sub lbHasta_Click
      
    Dim dd As DateDialog
      dd.DateTicks = 
    DateTime.DateParse(lbHasta.Text)       
      dd.ShowCalendar = 
    False   '  <---  ERROR
      ...
    End Sub
     
  2. DonManfred

    DonManfred Expert Licensed User

    vecino likes this.
  3. LucaMs

    LucaMs Expert Licensed User

    vecino likes this.
  4. LucaMs

    LucaMs Expert Licensed User

    upload_2017-3-3_16-10-5.png
     
    vecino likes this.
  5. vecino

    vecino Well-Known Member Licensed User

    Hi.
    What I can do?
    Now I have to go back to version 6.50 to use old Dialogs :(
     
  6. LucaMs

    LucaMs Expert Licensed User

    I don't know, I don't have the new version (6.80)
     
    vecino likes this.
  7. Erel

    Erel Administrator Staff Member Licensed User

    How should the dialog look with ShowCalendar = False ?
     
  8. vecino

    vecino Well-Known Member Licensed User

    Hello:

    ShowCalendar = True
    ShowCalendar = False
     

    Attached Files:

  9. Erel

    Erel Administrator Staff Member Licensed User

    Which device are you using? Why are you setting the targetSdkVersion 8- ?

    On newer devices (when using modern themes) this property will not do anything anyway as the calendar is the only way to choose the date.
     
  10. vecino

    vecino Well-Known Member Licensed User

    Hi.
    It's because my client does not want the calendar to show up.
    Is there any other solution?
     
  11. Erel

    Erel Administrator Staff Member Licensed User

    I think that it is a mistake to use the Android 2.x theme. It makes your app looks old. There is also potential to all kinds of strange layout errors.

    Please try the attached library (v2.96).
     

    Attached Files:

    vecino likes this.
  12. vecino

    vecino Well-Known Member Licensed User

    PERFECT!!!
    Many thanks.
    :):):)
     
  13. vecino

    vecino Well-Known Member Licensed User

    How can I change that option?
    Any thread that talks about that?
    I do not know the operation of that matter.
     
  14. DonManfred

    DonManfred Expert Licensed User

    Use a newer Theme i guess.

    You can not change the behaviour from android.

    What you can do is to define your own theme. But i´m not sure what exactly you can change using a own theme.. I never tried to build my own theme...

    Look at https://developer.android.com/index.html for documentation
     
  15. vecino

    vecino Well-Known Member Licensed User

    Sorry.
    I am sure that this issue has been addressed before. I tried not to repeat another thread.
     
  16. DonManfred

    DonManfred Expert Licensed User

    i guess you have had a look already on the old answers then.. What does they say?
     
  17. vecino

    vecino Well-Known Member Licensed User

    Hi, I can not find the thread, I saw it long ago, but I was not interested in that time. Now I can not find it.
    Thank you.
     
  18. vecino

    vecino Well-Known Member Licensed User

    I have already found it.
    Thanks for... everything.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice