scalefactor and autoresize gives an error

This forum is for eXpress++ general support.
Message
Author
Wolfgang Ciriack
Posts: 484
Joined: Wed Jan 27, 2010 10:25 pm
Location: Berlin Germany

Re: scalefactor and autoresize gives an error

#11 Post by Wolfgang Ciriack »

Hi Roger,
can this technic also be used to terminate running threads ?
Or what is the preferred technic for that ?
_______________________
Best Regards
Wolfgang

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: scalefactor and autoresize gives an error

#12 Post by rdonnay »

can this technic also be used to terminate running threads ?
Yes. You must remember though that you can only send events to threads in which there is a running event loop.

eXpress++ windows automatically handle events that are defined by the DCUSEREVENT command.

If you want to send a TERMINATE event to a thread you would do it like this:

#define TERMINATE_THREAD_EVENT xbeP_User + 101
// Window receiving the event
DCUSEREVENT TERMINATE_THREAD_EVENT ACTION {||DC_ReadGuiEvent(DCGUI_EXIT_OK,GetList)}

// Thread sending the event
PostAppEvent( TERMINATE_THREAD_EVENT, , , oReceivingWindow )
The eXpress train is coming - and it has more cars.

Post Reply