1. Calendar activating alone
- Posted by sergelli Aug 02, 2013
- 1409 views
I am using this line in a very long code:
SetHandler (CAL1, w32HChange, routine_id ("onSelectDate")) - select dates in the calendar
The Routine "onSelectDate" is running (more or less at every minute), unless I press the mouse over the calendar and there is also no line that is calling this routine.
Like to know if this is a feature of the calendar or is a hidden problem in my program (very hidden :) )
Perhaps, you have something to instruct me Thanks for patience
2. Re: Calendar activating alone
- Posted by sergelli Aug 02, 2013
- 1381 views
in addition: The calendar is exactly triggered every 60 seconds
3. Re: Calendar activating alone
- Posted by BRyan Aug 02, 2013
- 1366 views
I am using this line in a very long code:
SetHandler (CAL1, w32HChange, routine_id ("onSelectDate")) - select dates in the calendar
The Routine "onSelectDate" is running (more or less at every minute), unless I press the mouse over the calendar and there is also no line that is calling this routine.
Like to know if this is a feature of the calendar or is a hidden problem in my program (very hidden :) )
Perhaps, you have something to instruct me Thanks for patience
The sethandler statment comment above has only one dash instead of two.
4. Re: Calendar activating alone
- Posted by useless_ Aug 02, 2013
- 1352 views
I am using this line in a very long code:
SetHandler (CAL1, w32HChange, routine_id ("onSelectDate")) - select dates in the calendar
The Routine "onSelectDate" is running (more or less at every minute), unless I press the mouse over the calendar and there is also no line that is calling this routine.
Like to know if this is a feature of the calendar or is a hidden problem in my program (very hidden :) )
Perhaps, you have something to instruct me Thanks for patience
The sethandler statment comment above has only one dash instead of two.
There was a short discussion on this a short while ago. I have the same problem on a clock app, when i grab the titlebar as if to move the window, the clock will stop updating the display until i let go of the window. I cannot locate the discussion here.
useless
5. Re: Calendar activating alone
- Posted by sergelli Aug 02, 2013
- 1366 views
The sethandler statment comment above has only one dash instead of two.
The lack of double dash was motivated by my haste to show the problem. But I don't use that comment into the code.
Please, use this line without the coment.
6. Re: Calendar activating alone
- Posted by andi49 Aug 02, 2013
- 1356 views
There was a short discussion on this a short while ago. I have the same problem on a clock app, when i grab the titlebar as if to move the window, the clock will stop updating the display until i let go of the window. I cannot locate the discussion here.
useless
Hi
I have put togehter an ugly, quick and dirty hack to keep this clock running,even if you move it (or open the popupmenu). It's 2 little programs clock.exw and clock_slave.exw.
clock.exw offers the Display and clock_slave.exw draws on it. I have bound clock_slave becouse of the startup time.
http://euphoria.indonesianet.de/multi_proc_clock.zip
As Euphoria does not support threads, i do not know a better way....
Andreas
7. Re: Calendar activating alone
- Posted by useless_ Aug 02, 2013
- 1305 views
There was a short discussion on this a short while ago. I have the same problem on a clock app, when i grab the titlebar as if to move the window, the clock will stop updating the display until i let go of the window. I cannot locate the discussion here.
useless
Hi
I have put togehter an ugly, quick and dirty hack to keep this clock running,even if you move it (or open the popupmenu). It's 2 little programs clock.exw and clock_slave.exw.
clock.exw offers the Display and clock_slave.exw draws on it. I have bound clock_slave becouse of the startup time.
http://euphoria.indonesianet.de/multi_proc_clock.zip
As Euphoria does not support threads, i do not know a better way....
Andreas
It dies for no "SetCanvas()".
useless
8. Re: Calendar activating alone
- Posted by andi49 Aug 02, 2013
- 1288 views
It dies for no "SetCanvas()".
useless
Sorry, changes in tinEWG. I like to get rid of some EuWinGui things that do not make any sense for new tinEWG programs.
Use SetDrawingControl() or SetDrawingMB() instead or get the last tinewg.https://bitbucket.org/andiwagner/tinewg
There are all the same (with tinEWG) and just here for compatibilty with EuWInGui.
Andreas
9. Re: Calendar activating alone
- Posted by useless_ Aug 02, 2013
- 1306 views
It dies for no "SetCanvas()".
useless
Sorry, changes in tinEWG. I like to get rid of some EuWinGui things that do not make any sense for new tinEWG programs.
Use SetDrawingControl() or SetDrawingMB() instead or get the last tinewg.https://bitbucket.org/andiwagner/tinewg
There are all the same (with tinEWG) and just here for compatibilty with EuWInGui.
Andreas
Ok, i thought this was a finished lib, i did not know so many changes would happen.
useless
10. Re: Calendar activating alone
- Posted by andi49 Aug 02, 2013
- 1286 views
Ok, i thought this was a finished lib, i did not know so many changes would happen.
useless
A finished lib? Impossible. Every lib needs to change.
If a lib does not change the lib wil be outdated real soon.
But,for tinEWG the old procedures are still there to stay compatible, but they make no sense.
public procedure SetDrawingControl(atom control) DC_DefaultControl=control end procedure public procedure SetDrawingMB(atom bitmap) DC_DefaultControl=bitmap end procedure public procedure SetCanvas(atom canvas) DC_DefaultControl=canvas end procedure
That's the code in tinEWG, EuWinGui needs to distinguish between a MemoryBitmap and a Control (aka Button etc.) tinEWG does internally not care about it. So i think for a new tinEWG proc it is easier to use just one function SetCanvas(). The old functions are still here for compatibility reasons.
Andreas