Jump to content


Photo

TNxOutlookBar how to add controls to an Item


  • Please log in to reply
7 replies to this topic

#1 yursoft

yursoft
  • Members
  • 10 posts

Posted 22 September 2007 - 01:11 PM

Hi,

I'm trying to put controls inside the TNxOutlookbarItem that I created but I can't do it because of the control doesn't seems to accept it... What is it wrong?

I develop under Delphi 2007 Update 3.

Thank you very much!
Wilhelm

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 22 September 2007 - 01:22 PM

Hello Wilhelm,

If you want to do this in run-time, use similar code like:

CODE
procedure TForm1.Button1Click(Sender: TObject);
var
  Button1: TButton;
begin
  Button1 := TButton.Create(Self);
  Button1.Parent := NxOutlookBar1;
  Button1.SetBounds(10, 10, 75, 23);
  Button1.Caption := 'Abc';
end;


I hope that it helps,

Best regards
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,289 posts
  • Gender:Male

Posted 22 September 2007 - 01:25 PM

Update,

I am not sure, maybe you want to have efect similar like in MainDemo:
http://www.bergsoft....os/maindemo.zip

This is archieved with placing NxNotebook control inside NxOutlookBar and using OnSelect event to change ActivePage of NxNotebook.

Best regards
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 yursoft

yursoft
  • Members
  • 10 posts

Posted 22 September 2007 - 05:29 PM

Hi Berg!! thank you for reply me fast!!

Actually, my problem is at design time when I try to drop off a component inside a TNxOutlookBarItem, because the component can't stay inside de outlookbaritem like as in a panel. Strange, nop?? smile.gif

Thank you very much Berg!!! By the way, I recently purchased your component!! Its really handful!! biggrin.gif:D

Wilhelm

#5 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 22 September 2007 - 06:21 PM

Hello Wilhelm,

Unfortunatelly, this is not possible automatically because each Item is not a component itself.

If you want, I may add one new event OnResizeBar and then you will be able to adjust additional components (set Top property, or hide them) on Items.

Thank you smile.gif

Best regards
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.

#6 yursoft

yursoft
  • Members
  • 10 posts

Posted 22 September 2007 - 07:20 PM

Thanks!! I've just done the thing that I want! smile.gif

See U!!

#7 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 22 September 2007 - 07:29 PM

Hello,

In new version there will be OnChange event added, when DisplayCount (number of Items wisible on screen) is changed.

Best regards
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.

#8 yursoft

yursoft
  • Members
  • 10 posts

Posted 23 September 2007 - 04:14 PM

Thanks again!

Wilhelm




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users