[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference unxa::cde

Title:CDE on Digital UNIXonment - CDE
Notice:CDE on Digital UNIX - for CDE on VMS, please see Note 1.3
Moderator:UNXA::SYSTEM
Created:Tue Nov 23 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:660
Total number of notes:2674

586.0. "CDE Dtbuilder question" by CSC32::P_HILL () Tue Jan 21 1997 18:30

T.RTitleUserPersonal
Name
DateLines
586.1dtbuilder - replyNETRIX::"[email protected]"Wayne BarlowFri Jan 24 1997 10:5620
Can you provide more details as to what you are seeing?
I cannot reproduce what I believe you are describing.  The
stubs that I generate look like this:

void
testButton(
    Widget widget,
    XtPointer clientData,
    XtPointer callData
)
{
    /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
    /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/

    /*** DTB_USER_CODE_START vvv Add C code below vvv ***/
    /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
}

Do your stubs look different?
[Posted by WWW Notes gateway]
586.2cde dtbuilderCSC32::P_HILLFri Jan 24 1997 12:568
    Hi wayne,
    
       the stubs that I am getting look just like the
    example you showed. My question is after you created
    the first stubs and know that they work, every time
    you create more it still produces the message everytime
    and was wondering if there was anyway to turn the confirmation
    message off. 
586.3Request for more info - dtbuilderNETRIX::"[email protected]"Wayne BarlowFri Jan 24 1997 14:498
Which message are you referring to as a confirmation message?
Is this message being written to the stubs file, console, dialog 
window, Code Generator window, etc.?  I just want to make sure we 
are talking about the same message.

-Wayne.

[Posted by WWW Notes gateway]
586.4Need to use the "execute code" buttonPEACHS::LAMPERTPat Lampert, UNIX Applications Support, 343-1050Mon Feb 03 1997 15:2532
The needless printf gets placed in your callback only if you 
use the "Execute Code" button when producing the callback.


Here is an extract from my stub...


The line the reads..

" printf("action: main_dialog_button1_CB1()\n"); "

was inserted by cde.



void
main_dialog_button1_CB1(
    Widget widget,
    XtPointer clientData,
    XtPointer callData
)
{
    /*** DTB_USER_CODE_START vvv Add C variables and code below vvv ***/
    /*** DTB_USER_CODE_END   ^^^ Add C variables and code above ^^^ ***/

    {
int i;
i = 0;
}/*** DTB_USER_CODE_START vvv Add C code below vvv ***/
    printf("action: main_dialog_button1_CB1()\n");
    /*** DTB_USER_CODE_END   ^^^ Add C code above ^^^ ***/
}
586.5cde dtbuilderCSC32::P_HILLTue Feb 04 1997 17:3025
    the needless printf statements are being produced
    by the dtcodegen executable which is hardcoded into
    the dtbuilder application. by using the strings command
    
    strings /usr/dt/bin/dtcodegen |grep "action:"
    
    produces the file that displays all the printf statements
    when selected code is generated;
    
    bilP_load_att_action: %d/%s
        printf("action: dtb_default_dragCB(DTB_DND_DRAG_START)\n");
        printf("action: dtb_default_dragCB(DTB_DND_CONVERT)\n");
        printf("action: dtb_default_dragCB(DTB_DND_DELETE)\n");
        printf("action: dtb_default_dragCB(DTB_DND_DROPPED_ON_ROOT_WINDOW)\n");  printf("action: dtb_default_dragCB(DTB_DND_FINISH)\n");
        printf("action: dtb_default_dropCB(DTB_DND_REGISTER)\n");
        printf("action: dtb_default_dropCB(DTB_DND_RECEIVE_DATA)\n");
        printf("action: dtb_default_dropCB(DTB_DND_ANIMATE)\n");
    printf("action: %s()\n");
    
    
    I am going to submit a SPR to request this be removed or have an option
    added to have the ability to turn this feature off
    
    
       paul hill osappl