[Gambas-user] Re: Using "MyProgram"
Brant Wells
bwells at ...475...
Mon Jul 12 20:16:09 CEST 2004
Sorry...
The problem I am having is that when the other program hits the RAISE
DaySelected() line in the control, it's not triggering the
frmCalendar_DaySelected code in my main app...
~Brant
Brant Wells wrote:
> Hey All:
>
> I have been tinkering with the "Use" feature of Gambas: I really like
> it a lot...[it is really kool if you want to create your own 'control'
> for Gambas, but it doesn't show in the Toolbox yet...]
>
> Anyhow... I have developed my 'Control' [a calendar], and I want it to
> trigger an event called DaySelected...
>
> So in my main program, I:
>
>
> [CODE]
>
> Public Calendar as frmCalendar
> Sub Form_Open() 'This is the form of the main APP
>
> USE "CalendarControl" '<-- is the 'Control' that I want to raise an
> event from...
> Calendar=NEW frmCalendar(frmMain) AS "frmCalendar"
>
> Calendar.top=1
> Calendar.left=1
>
> frmmain.width=calendar.width
> Calendar.form_open'Initializes and Displays Calendar
> END
>
> PUBLIC PROCEDURE frmCalendar_DaySelected(sDate AS Date)
>
> PRINT "DaySelected: " & sdate
>
> END
> [END CODE]
>
> Am I missing something?? I have the source to both apps if anyone
> needs to see...
>
> Thanks!
> ~Brant
>
>
More information about the User
mailing list