bb.donnay-software.com

Donnay Software Web Forums
It is currently Wed Dec 11, 2019 10:27 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Sep 09, 2011 5:18 am 
Offline

Joined: Thu Jan 28, 2010 1:22 am
Posts: 822
Location: Sijsele, Belgium
Hi,

With the DCPushButtons there is a CARGO 'CANCEL' which is really usefull to use with standard CANCEL-buttons.

This isn't working with CJPushButtons.

_________________
Best regards,

Chris.
www.aboservice.be


Top
 Profile  
 
PostPosted: Sun Sep 11, 2011 6:48 pm 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 4014
Location: Boise, Idaho USA
In _DCGETBX.PRG make the following code change:

Code:
lCancelled := nEvent == xbeP_SetInputFocus .AND. Valtype(oNextXbp) = 'O' .AND. ;
      (oNextXbp:isDerivedFrom('DC_XbpPushButton') .OR. ;
       oNextXbp:isDerivedFrom('DC_XbpRadioButton') .OR. ;
       oNextXbp:isDerivedFrom('DC_XbpPushButtonXP') .OR. ;
       oNextXbp:isDerivedFrom('DC_XbpCheckBox') .OR. ;
       oNextXbp:isDerivedFrom('CJ_PushButton') .OR. ;  <<<<<<<<<<<<<<<<<<<<<<<<<<< new
       oNextXbp:isDerivedFrom('XbpMenu')) .AND. ;
      ((Valtype(oNextXbp:cargo) = 'C' .AND. oNextXbp:cargo == 'CANCEL') .OR. ;
       (Valtype(DC_GetCargo(oNextXbp)) = 'C' .AND. Upper(DC_GetCargo(oNextXbp)) == 'CANCEL'))

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group