1. Calendar activating alone

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

new topic     » topic index » view message » categorize

2. Re: Calendar activating alone

in addition: The calendar is exactly triggered every 60 seconds

new topic     » goto parent     » topic index » view message » categorize

3. Re: Calendar activating alone

sergelli said...

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.

new topic     » goto parent     » topic index » view message » categorize

4. Re: Calendar activating alone

BRyan said...
sergelli said...

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

new topic     » goto parent     » topic index » view message » categorize

5. Re: Calendar activating alone

BRyan said...

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.

new topic     » goto parent     » topic index » view message » categorize

6. Re: Calendar activating alone

useless_ said...

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

new topic     » goto parent     » topic index » view message » categorize

7. Re: Calendar activating alone

andi49 said...
useless_ said...

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

new topic     » goto parent     » topic index » view message » categorize

8. Re: Calendar activating alone

useless_ said...

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

new topic     » goto parent     » topic index » view message » categorize

9. Re: Calendar activating alone

andi49 said...
useless_ said...

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

new topic     » goto parent     » topic index » view message » categorize

10. Re: Calendar activating alone

useless_ said...

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu