günther
10th April 2007, 16:11
I have got a very tricky session that uses timer.start() / timer.stop(). Therefore the mouse cursor flickers during each choice.interrupt; I guess that choice.interrupt/before.choice sets the hourglass cursor and choice.interrupt/after.choice restores the original mouse cursor. I would like to stop that flickering.
Any ideas are welcome.
My idea was to overload change.object() so that I could do some decisions and maybe to call the original function (or not, if I'm inside choice.interrupt ...).
Has ynybody done anything like that before?
george7a
10th April 2007, 16:31
Hi,
You can change the cursor back in that session. Check the DEV: Extend Baan code without sources (http://www.baanboard.com/baanboard/showthread.php?t=559) thread.
I hope it helps,
- George
günther
10th April 2007, 17:06
You can change the cursor back in that session.
I tested your tip the following way (to see if I can see any changes): In choice.interrupt/before.choice and choice.interrupt/on.choice I set the mouse cursor to a different one (DSCNMAGNIFY). The result is: flickers like hell.
Then I tried the default cursor (DSCNDEFAULT), but the flickering is still there.
günther
10th April 2007, 17:10
Check the DEV: Extend Baan code without sources thread.
I checked it (already knew about that). But my problem is somewhat different to extending 4gl events. I strongly believe that my problem needs something like "extend baan 3gl dll code" ...
günther
11th April 2007, 13:08
Okay, here is my solution to stop the flickering:
form.1:
init.form:
if srv.type(srv_data) = DSBW then
change.object(current.mwindow(), DsNsuperiorPointerCursor, DSCARROW)
| this looks like the DSCDEFAULT, but it stops flickering ...
endif
But my initial question continues. I would like to overload a function that comes from a DLL. Any ideas for that?
vahdani
11th April 2007, 17:48
Hi,
maybe this helps: Function Overloading (http://www.baanboard.com/programmers_manual_baanerp_help_dynamic_link_libraries_function_overloading)