A message has been sent to the nsb-ce group and is awaiting approval. We've 
attached this message for your review.

This message requires approval because the message may be spam.

You can approve or reject this message online at:
http://groups.google.com/group/nsb-ce/pendmsg?hl=en

or

You can approve this message by replying to this email.

Thank you,

The Google Groups Team

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"nsb-ce" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en
-~----------~----~----~----~------~----~------~--~---

--- Begin Message ---
 A message has been sent to the nsb-ce group and is awaiting approval. We've 
attached this message for your review.

This message requires approval because the message may be spam.

You can approve or reject this message online at:
http://groups.google.com/group/nsb-ce/pendmsg?hl=en

or

You can approve this message by replying to this email.

Thank you,

The Google Groups Team
--- Begin Message ---
 A message has been sent to the nsb-ce group and is awaiting approval. We've 
attached this message for your review.

This message requires approval because the message may be spam.

You can approve or reject this message online at:
http://groups.google.com/group/nsb-ce/pendmsg?hl=en

or

You can approve this message by replying to this email.

Thank you,

The Google Groups Team
--- Begin Message ---
--- In [email protected], "enonod" <eno...@...> wrote:
>
> --- In [email protected], "enonod" <enonod@> wrote:
> >
> > --- In [email protected], "George Henne" <gh@> wrote:
> > >
> > > Have a look at the Login sample. It capture events from DialogX
> > > controls: notice it does something interesting with the "_"
character.
> > > 
> > > George Henne                                     
> > > NS BASIC Corporation
> > > http://www.nsbasic.com 
> > > 
> > > >I have been away a while and obviously suffer from a memory
problem.
> > > >I have a button declared on a DialogX form and the click event
> doesn't
> > > >work.
> > > >I put the button on the main form with the same name and it works.
> > > >
> > > >This says to me that there is a problem with my naming.
> > > >
> > > >The button was declared in a DialogX sub...
> > > >
> > > >  dTitle.AddObject "CommandButton", "bInfo", 210, 75, 45, 12
> > > >  dTitle.SetCaption "bInfo", "Info"
> > > >
> > > >sub bInfo_click
> > > >  MsgBox("OK")
> > > >end sub
> > > >
> > > >I tried sub dTitle.bInfo_Click but a message said "...expected
'(' "
> > > >
> > > >I am sure I have had this sort of thing working previously, any
> memory
> > > >jogger would be of great assistance. Thanks
> > > >
> > > >
> > > >------------------------------------
> > > >
> > > >Yahoo! Groups Links
> > > >
> > > >
> > > >
> > >
> > Thank you for the response George. This does not 'seem' to solve my
> > problem. As I see it the underscore on the end of the dialog name only
> > appears to permit the same name to be used for the variable holding
> > the dialog. If there is more to it I would like to know please.
> > 
> > That aside, The Login sample doesn't have any dialog buttons. My
> > dialogs work in that the textboxes etc. pass text back and forth. What
> > doesn't work is CommandButton events.
> > If I put a button with the same name on the main form, then the event
> > sub gets called, but when it is on the dialog (not a second form in
> > the normal sense) it is not called. This says to me that the naming of
> > the sub is wrong.
> > 
> > To add to my earlier example I now tried what I think you were
> > pointing me at and used dTitle_ for the DialogX name then...
> > Set dTitle_ = dTitle
> > 
> > Then
> > sub dTitle.bInfo_Click
> > etc.
> > I got the error 'Name Redefined'
> > 
> > I would appreciate further help please.
> > Thanks
> >
> 
> Perhaps I can put this in simpler terms and get some help...
> A button does not seem to respond to a click when on a DialogX dialog.
> The example quoted "Login" does not use a button on its dialog only on
> the main form, so the relevance escapes me.
>
I have managed to solve this, so no reply needed.


--- End Message ---

--- End Message ---

--- End Message ---

Reply via email to