Jump to content


Photo

Count is not count all the time...


  • Please log in to reply
3 replies to this topic

#1 Qwazerty

Qwazerty
  • Members
  • 73 posts
  • Gender:Male
  • Location:France

Posted 22 March 2016 - 11:59 PM

Hello Boki

I have some trouble with TNxPropertyItem.count.

The property "Count" give the number of Item's childItem.

But in TNxToolbarItem (= class(TNxPropertyItem)), you have rewrite a "count" property that give the number of buttons.

I use a TNxCheckBoxItem (= class(TNxToolbarItem)) and i'm not able to know how many child he has.

If you use transtyping, it's very complicated to do a polyvalent code.

TNxCheckBoxItem(Sender).Count .......

Thanks for your helps

 

Qwaz

 



#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 31 March 2016 - 10:04 PM

Hi Qwaz,

I will think about this. Maybe I can rename it to ButtonCount instead.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,191 posts
  • Gender:Male

Posted 02 April 2016 - 12:05 AM

I have renamed it. It will be in next update.
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#4 Qwazerty

Qwazerty
  • Members
  • 73 posts
  • Gender:Male
  • Location:France

Posted 03 April 2016 - 12:57 AM

Thanks you, I will try it as soon as possible ;)

 

Bye






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users