Jump to content


Photo

nxAlertWindow and close click


  • Please log in to reply
23 replies to this topic

#1 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 October 2006 - 01:09 AM

hi

the event for clicking the close button
so i can tell the window to close smoothly is missing

did u not add it yet or is it sth wrong at my place?

thanks

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 October 2006 - 02:17 AM

Hello emailaya,

I didn't add smooth closing, only instant. I have try to mimic MSN Messanger popup alert.

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 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 October 2006 - 12:59 PM

u have a method that closes the alert window smoothly
b4 the last release some ppl (including me) asked for an event for pressing the close button and then in this event we will call the method that closes the window smoothly

it surely not critical issue, just nice to have smile.gif

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 28 October 2006 - 03:38 PM

Hello,

There is a method for it, but after clicking on X sign it is closed instantly. If I have time, I will add a property for controling this.

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.

#5 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 28 October 2006 - 04:15 PM

from looking in the code
there are mentions for close click events

FOnCloseClick: TNotifyEvent;

property OnCloseClick: TNotifyEvent read FOnCloseClick write FOnCloseClick;

procedure TNxAlertWindow.DoCloseClick;
begin
if Assigned(FOnCloseClick) then FOnCloseClick (Self);
end;

but its not published to the out world

#6 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 October 2006 - 01:48 PM

Hello,

This is a event. To use a method for closing window call NxAlertWindow1.Close;

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.

#7 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 29 October 2006 - 02:45 PM

that was exactly the plan
i wanted in OnCloseClick to call the Close event
in order to close it smoothly

but there is no close click smile.gif

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 October 2006 - 03:30 PM

Hello,

I have check it now and all work fine smile.gif Check this code:

CODE
procedure TForm1.NxAlertWindow1CloseClick(Sender: TObject);
begin
  NxAlertWindow1.Close;
end;


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.

#9 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 29 October 2006 - 03:37 PM

i'm sure i didn't see CloseClick event
but i will check it again
(later today)

#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 29 October 2006 - 03:42 PM

No problem 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.

#11 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 29 October 2006 - 09:40 PM

hi
i just checked
there OnClick
OnDblClick
OnOptionsClick

no CloseClick

#12 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 30 October 2006 - 04:50 AM

Hello,

Maybe this happen because you didn't do a clean install. Try to recompile NxCollectionRun package again.

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.

#13 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 30 October 2006 - 10:17 AM

b4 the new install i made a change about the position of the popup
in this version u added a property for the popup location
and that property exists now
so how come the new property is ok
but the new event isnt?

clean install meaning:
closing Delphi
uninstall next suite
install next suite
open Delphi

or should i do sth from inside Delphi as well?

#14 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 31 October 2006 - 12:51 AM

just made a clean install
im sorry but OnCloseClick event is missing

#15 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 31 October 2006 - 01:40 PM

Hello Emailaya,

can you please open NxCollection.pas file and go to NxAlertWindow declaration. Can you please tell me if is this event there.

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.

#16 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 31 October 2006 - 08:12 PM

the only occurences of close click is as follow:
FOnCloseClick: TNotifyEvent; (under private)
property OnCloseClick: TNotifyEvent read FOnCloseClick write FOnCloseClick;
(under published)


it doesnt appear in the events list though of the alert window
im using bds2006

#17 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 31 October 2006 - 08:32 PM

Hello Emailaya,

Event is here, maybe you need to compile and install NxCollectionRun.dpk package again.

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.

#18 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 31 October 2006 - 09:02 PM

trying to compile nxCollectionRun.dpk by itself fails cause it doesnt recognize Lighten function
(installing the regular way has no problem)

b4 the last release
i made some changes to alertwindow to make popup on the left side

and when i installed your last release, it did override my changes
which means the installation was ok

mayb installation under bds2006 causes this?

#19 Boki (Berg)

Boki (Berg)

    Boki (Berg)

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

Posted 01 November 2006 - 12:23 AM

Hello Emailaya,

I have no problems with BDS2006. Maybe you may clean all files from disk of NextSuite and then install new version again.

Probably some conflict has maden with old version.

I have already add this feature in new version smile.gif

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.

#20 emailaya

emailaya

    Master Member

  • Members
  • PipPipPipPipPip
  • 984 posts

Posted 01 November 2006 - 12:28 AM

i know u added it that's why i didnt mind overriding my changes
now it works perfect as well with your changes

u r using bds2006 and u have the CloseClick event?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users