Menu

TDPFUITableView in a TDPFUITableView cell ?!

2013-10-26
2013-10-30
  • Pierre Moati

    Pierre Moati - 2013-10-26

    Hello,
    I use a TDPFUITableView which is setting with tvsPlain style.
    In the last cell, I want to put a TDPFUITableView with a tvsGrouped style.

    I know this is possible in XCode by addind a subview, but I don't know how to create it with a TDPFUITableView.
    Please, can you show me how to process ?

    Thanks a lot !

     
  • Pierre Moati

    Pierre Moati - 2013-10-28

    So,
    I found a way to draw a specific cellular :

    1 - I put the height that I want with the OnGetRownHeight event
    2 - I use the onNeedCellIdentifier event to manage a specific identifier for my special cell (if I do not do that, element is reuse in other cell, and there is a bug)
    3 - I use the onDrawCell event to draw another thing that the original thing. I success to display a TDPFUIView.

    Bytheway, TDPFUITableView is not showing at all, and I don't know why :(
    Is there something specific to do in order to view a TDPFUITableView in a TDPFUITableView cell ?
    I try with a TDPFButton, but it's not working either...

    I'm close to the goal, but if you can help me, it will be great :D

    Thanks

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-10-29

    Hi Pierre

    Give me your sample project for checking.

    Regards

     
  • Pierre Moati

    Pierre Moati - 2013-10-29

    Hello,
    this is my sample projet.
    If you fix it, you can distribute it ^^

     
  • Pierre Moati

    Pierre Moati - 2013-10-29

    ha ha !
    I need to use AddSubView or something like this, right ? :D

    Button showing after loading a Loaded. No need to call "parent"...
    But the list never show...

     

    Last edit: Pierre Moati 2013-10-30
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-10-30

    Hi Pierre Moati

    Fixed Bugs. And added in the demos.
    First download last source [code] then compile your demo.

    Regards

     

    Related

    Code: code

  • Pierre Moati

    Pierre Moati - 2013-10-30

    Very nice work babak, thank you so much !

    Thanks to you, I'm really close to finalize my application.
    Please, may you see the screenshot, and tell me how to do for the last item ?

    This green rectangle is a picture draw with the onDrawCell event. As you can see, the picture is drawing over the rounder corner border... I try to use MasksToBounds on the TDPFUITableView, but it's not working.
    I don't show other property like that.

    This is just a cosmetic stuff, but if you know how to fix it, it will be great !

    Have a nice day,
    Thanks

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.