Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #5990

Re: rightSLE - catch calender close event

From "Willie Moore" <williem@wmconsulting.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: rightSLE - catch calender close event
Date 2011-01-28 07:15 -0600
Organization Aioe.org NNTP Server
Message-ID <ihufgk$kr5$1@speranza.aioe.org> (permalink)
References <b624f$4d427677$53402903$936@news.inode.at>

Show all headers | View raw


Niko,

There is not a callback for the calendar closing but that is a good idea. 
Currently, when the calendar is closed, the showCalendar method will check 
to see if the date has changed and if it was, the SLE is updated with the 
date selected. The question would be do you want an even fired when the 
calendar dialog process the close method or when rightSLE regains control. I 
think that it should happen when the calendar dialog still has control but 
that can cause a delay if you do a lot of processing in the callback. Let me 
know what you think.

Regards,
Willie

"Nikolaus Kern"  wrote in message 
news:b624f$4d427677$53402903$936@news.inode.at...

Hello,

Did somebody catch the event when a DateSLE closes the attached calender
dialog window and the value was changed?

Maybe its there but unfortunatly I could not find it.

What I did is to insert a callback method in rightSLE:ShowCalender()

If the owner of the rightSLE control has a method sleDateCalenderClose()
then its called.

How did you solve this question?

Thanks

Niko

METHOD ShowCalendar() AS VOID PASCAL CLASS rightSLE
[...]
[line69] // If they doubled click on a date, we stuff that value back
into the Sle they double clicked on previously
IF ! Empty( oDlgPECalendar:dSelected )
SELF:Value := oDlgPECalendar:dSelected
SELF:textvalue := DToC(oDlgPECalendar:dSelected)
IF SubStr(SELF:textvalue,1,1) > " "
        SELF:ValueChanged := TRUE // wcm 9/27/2000

// Insert von NK: 26.01.2011
IF IsMethod(self:owner,#sleDateCalenderClose)
self:owner:sleDateCalenderClose(self)
ENDIF



METHOD sleDateCalenderClose(oControl) CLASS dtaWindow
* This is a new callback method for rightSLE
* Its called when the build in calender closed with a changed value

IF oControl == self:oDCGEPLANTES_STARTDATUM
// Whatever needs to be done
ENDIF

RETURN self 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

rightSLE - catch calender close event Nikolaus Kern <parzival1969@gmx.at> - 2011-01-28 08:55 +0100
  Re: rightSLE - catch calender close event "richard.townsendrose" <richard.townsendrose@gmail.com> - 2011-01-28 00:55 -0800
  Re: rightSLE - catch calender close event Nikolaus Kern <parzival1969@gmx.at> - 2011-02-02 11:12 +0100
  Re: rightSLE - catch calender close event "Willie Moore" <williem@wmconsulting.com> - 2011-01-28 07:15 -0600

csiph-web