TextBox losing its text when focus changed?

Hi all,
Im developing a plugin in Illustrator CS3 using VisualStudio 2005.
I design my dialog using ADM in VS.
The textbox losing its text when focus is changed.
In my dialog i have a textbox,checkbox and a ok and cancel button.
In case, if i enter the text and press tab or the checkbox (before moving the focus to ok or cancel button) the text remains uncleared.
But if i enter the text and move the mouse to ok or cancel button the text box value gets cleared.
Please someone guide me to solve this problem.
Thanks in advance,
Poovili

Yeah its working when removing the setdrawproc..
But we need this setdrawproc..Because we save the project settings and next time we load the project the values'll automatically come up using this dialogdrawproc in setdrawproc..the following is our dialogdrawproc code
static void ASAPI DialogDrawProc( ADMDialogRef dialog,ADMDrawerRef drawer)
    ADMItemRef ItemRef;
    if(dialog==g->qcCheckDialog )
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtOverprint);
        sADMItem->SetText(ItemRef,g->BlackValues);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtTintValues);
        sADMItem->SetText(ItemRef,g->TintValues  );
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtRuleThickness);
        sADMItem->SetText(ItemRef,g->RuleThickNess  );
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtDashGap1);
        sADMItem->SetText(ItemRef,g->DashGapValues  );
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtPatterns);
        sADMItem->SetText(ItemRef,g->PatternValues  );
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtLeadTextSize);
        sADMItem->SetText(ItemRef,g->LeadTextSize  );
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtSuperscript);
        sADMItem->SetText(ItemRef,g->SupValue );   
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtSubscript);
        sADMItem->SetText(ItemRef,g->SubValue );
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtBitmapResFrom);
        sADMItem->SetText(ItemRef,g->BitmapResFrom);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtGrayScaleResFrom);
        sADMItem->SetText(ItemRef,g->GrayscaleResFrom);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtCMYKResFrom);
        sADMItem->SetText(ItemRef,g->CMYKResFrom);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtBitmapResTo);
        sADMItem->SetText(ItemRef,g->BitmapResTo);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtGrayScaleResTo);
        sADMItem->SetText(ItemRef,g->GrayscaleResTo);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtCMYKResTo);
        sADMItem->SetText(ItemRef,g->CMYKResTo);
        //-------------TYPE AREA---------------------------------
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtAreaWD);
        sADMItem->SetText(ItemRef,g->TAreaWD);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtTAHeight2);
        sADMItem->SetText(ItemRef,g->TAAreaHt);
                        //column size
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn1Height);
        sADMItem->SetText(ItemRef,g->Column1Height);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn1Width);
        sADMItem->SetText(ItemRef,g->Column1Width);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn2Height);
        sADMItem->SetText(ItemRef,g->Column2Height);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn2Width);
        sADMItem->SetText(ItemRef,g->Column2Width);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn3Height);
        sADMItem->SetText(ItemRef,g->Column3Height);
        ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn3Width);
        sADMItem->SetText(ItemRef,g->Column3Width);
        //sADMDialog->Draw(drawer);
        //admDialog->Draw(drawer);
        //-------------SAVE SETTINGS--------------------------------
    if(dialog==g->LoginSaveSettingsDialog)
        ItemRef=sADMDialog->GetItem(g->LoginSaveSettingsDialog ,txtLSSUser1);
        sADMItem->SetText(ItemRef,g->TxtLSSUser1);
        ItemRef=sADMDialog->GetItem(g->LoginSaveSettingsDialog ,txtLSSPassword);
        sADMItem->SetText(ItemRef,g->TxtLSSPassword);
    //-----------------ADD NEW USER-----------------------------------
    if(dialog==g->AddNewUserDialog)
        ItemRef=sADMDialog->GetItem(g->AddNewUserDialog ,txtLogin1);
        sADMItem->SetText(ItemRef,g->TxtLogin1);
        ItemRef=sADMDialog->GetItem(g->AddNewUserDialog ,txtPassword);
        sADMItem->SetText(ItemRef,g->TxtPassword);
    if(dialog==g->AddingUsertoDBDialog)
        ItemRef=sADMDialog->GetItem(g->AddingUsertoDBDialog ,txtNeuUser);
        sADMItem->SetText(ItemRef,g->TxtNeuUser);
        ItemRef=sADMDialog->GetItem(g->AddingUsertoDBDialog ,txtCreateNewPassword);
        sADMItem->SetText(ItemRef,g->TxtCreatePassword);
    //-------------------------Change Password-----------------------
    if(dialog==g->ChangePasswordDialog)
        ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPLogin);
        sADMItem->SetText(ItemRef,g->TxtCPLogin1);
        ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPOldPass);
        sADMItem->SetText(ItemRef,g->TxtCPOldPass);
        ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPNewPass);
        sADMItem->SetText(ItemRef,g->TxtCPNewPass);
        ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPConfirmPass);
        sADMItem->SetText(ItemRef,g->TxtCPConfirmPass);
    if(dialog==g->SelectProjDialog)
         if (CyanToMagBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        /*else if(RasterColorsBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        else if(RasterColorsBool==true)
            dialog = sADMItem->GetDialog(ItemRef);
            if (ItemRef==sADMDialog->GetItem(dialog, txtAssessmentPath1))
                sADMItem->GetText(ItemRef,g->ConversionFolderPath ,1024);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
                //MessageBox(NULL,g->BlackValues,"Txt",0);
       else if(SaveAdvancedAssessBool == true)
           ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->AssessmentFolderPath);
        else if(ConvertSwatchBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath);   
        else if(DrawBBBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtBBSpacing);
            sADMItem->SetText(ItemRef,g->BBSpacing );
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtBBStrokeWidth);
            sADMItem->SetText(ItemRef,g->BBStrokeWidth );   
        else if(ConvertGradientBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        else if (PantoneToCyanBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        else if (QceraBatchConversionBool1==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        else if (PantoneToMagentaBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        else if(SaturationBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        else if(ColorOverprintBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        //else if(ColorsBatchBool==true)
        if(sADMItem->GetBooleanValue( sADMDialog->GetItem( g->SelectProjDialog, CHK_CheckColors1 ))==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        else if (ConvertFontsBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(FontCorrectionBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        else if(ScalingBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->ConversionFolderPath );
        else if(SaveAssessBool==true)
            ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
            sADMItem->SetText(ItemRef,g->AssessmentFolderPath);
            //MessageBox(NULL,g->AssessmentFolderPath,"Assess",0);
//MessageBox(NULL,g->ConversionFolderPath,"Assess",0);
    if(dialog==g->CleanDialog)
        if(CleanArtBatchConversionBool==true)
        ItemRef=sADMDialog->GetItem(g->CleanDialog ,txtLeadingValue);
        sADMItem->SetText(ItemRef,g->leadingValue  );
        ItemRef=sADMDialog->GetItem(g->CleanDialog ,txtBlackValues);
        sADMItem->SetText(ItemRef,g->ApplyBlackValues  );
        ItemRef=sADMDialog->GetItem(g->CleanDialog ,txtCleanArt_SpecifyFolder1);
        sADMItem->SetText(ItemRef,g->CleanArtFolderPath );
Let me know if i'm not clear. Thanks in advance..

Similar Messages

  • Hiding a Menu when Focus changes

    Right now I have a Swing GUI with three MenuItems on the JMenuBar. If I highlight one (Edit, for instance) the options (Copy and Paste) popup below.
    My question is this....
    When I change the focus to another application, the Copy and Paste options are still visible in the GUI. Is there a way to hide them once I have shifted the focus to another app?
    Thanks!

    [url http://java.sun.com/docs/books/tutorial/uiswing/events/windowlistener.html]How to Write a Window Listener. Your code would go in the windowDeactivated() method.

  • Losing written text when screen rotates

    Several times now I have composed an email....when I inadvertantly turned my Ipad, causing the screen to turn, all of the written text disappeared. I'd appreciate any input, thoughts, or direction.
    Thank you

    Are you sure that you are not hitting the undo key on the keyboard or accidentally selecting the text and deleting it? I know that sounds far fetched but I have seen crazier things happen.
    If you are sure that you are not causing this to occur, reboot your iPad and see if that makes this issue disappear.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • Mail eats final mails text when you change account or sign

    Waiting for an update since 10.4 introduced this annoying bug and nothing at all. Each new System update leave this bug there as a no importance or very rare bug. But I can assure you I have twitched myself every time I needed to rewrite near the whole letter just after at the end of it I needed to change the account or the sign usign the popup menus :((
    Does anyone knows this bug or the way Apple can be notified about it?

    1.      From the Admin Console, open the Expert Features tab.
           2.      In the left-hand navigation pane, choose Email Alerts.
           3.      Select the root category or any other category or forum.
           4.      Enable and set e-mail alerts for the category or forum selected.
           5.      Manage the templates for e-mail alerts.
    Refer: http://help.sap.com/saphelp_nw70/helpdata/en/8f/fb5464e3382f4482833a28af8896a3/frameset.htm
    Mr.Chowdary

  • Chnage in Header text when changing the customer

    Dear Experts,
    When i change the customer in sales quotation all the text in header text fields remove. i want to retain this text while change the customer. Can anybody help me who can i retain the Header Text when i change the customer.
    Best regards,

    Hi,
    Even it is the document text which is maintained by you in quotation,will be changed if you change the sold-to-party.
    The text that is maintained either at the Header level or at the item level will be changed if you change the sold-to-party.
    It is the standard setting in SAP.
    Because Sold-to-party is the key field which controls the whole document.So if you change the sold-to-party means every thing will be redetermined.So that the text will be changed.
    For maintaining the text as not changeable,in standard there is no setting.I think with ABAP coding it may be possible.
    Ask you ABAPer to check whether there is any thing that will be used to check this text.
    Regards,
    Krishna.

  • How do I select the entire text when the focus is moved to one TextBox?

    How do I select the entire text when the focus is moved to one TextBox?
    There are three TextBoxes.  I use <TextBox TabIndex="1"/> to set the order they are selected.  When I enter one specific TextBox, I would like to have the entire text selected ... one key stroke removes all of the text in that TextBox.
    bhs67

    I do it the following way:
    1.  Override the OnStartup for the application.  Use the following code: (VB.NET)
    EventManager.RegisterClassHandler(GetType(TextBox), TextBox.GotFocusEvent, New RoutedEventHandler(AddressOf TextBox_GotFocus))
    2.  In the event handler use this code (again VB.NET)
    Private Sub TextBox_GotFocus(ByVal sender As Object, ByVal e As RoutedEventArgs)
    _theTextBox = CType(sender, TextBox)
    If setFocusTimer IsNot Nothing Then
    RemoveHandler setFocusTimer.Tick, AddressOf setFocusTimer_Tick
    End If
    setFocusTimer = New DispatcherTimer
    setFocusTimer.Interval = TimeSpan.FromMilliseconds(10)
    AddHandler setFocusTimer.Tick, AddressOf setFocusTimer_Tick
    setFocusTimer.Start()
    End Sub
    Private Sub setFocusTimer_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
    setFocusTimer.Stop()
    _theTextBox.SelectAll()
    End Sub
    What this does is register a handler for every textbox in your application.  This will execute when the GotFocus event is raised and will allow you to do whatever (in this case select all) you want.  A great way of handling things at the application
    level.
    Lloyd Sheen

  • How control can be customized so that it changes its picture when mouse moves over it

    How control can be customized so that it changes its picture when mouse moves over it. As it happens in other develpment enviroments that one can customized the look 'n feel of any thing during the mouse movement over that very thing. Moreover can any body plz tell me that how one can modify the funtionality of a control by him self (not selecting the available functionalities of controls and indicators)

    The attached LV 7.1 code uses an event configured to trigger on two controls when a "Mouse Enter" or a Mouse Leave" event occurs. Depending on the type key focus is either assigned or removed.
    Please elaborate on the Q re: customizing a control.
    Ben
    PS Do NOT change the boolean to an indicator, save, run, change to control, save run again. That is bad.
    Forgot to attachMessage Edited by Ben on 05-05-2005 09:30 PM
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction
    Attachments:
    MouseOver.vi ‏28 KB

  • Change PR item short text when created from Work Order

    Hello,
    Is there a way to edit the PR item short text when the PR is generated from a Work Order. When we open the PR, the item short text is grayed out.
    We have created Material Master Number for Contract/ BPA items. When we input that particular material number under the components tab on the WO then release it ,it creates a PR. The Material Master description gets transfered to the PR.
    Our issue is that the Material Master is to generic and we would like to change the description on the PR level.
    Is this possible?
    Thanks,

    Hi
    I think neither there is any way to change the Material Description in PR nor its a good SAP Practise as it is having lot of implecations of stocking , physical inventory , reconciliation etc .
    If Item codes are generic suggest if u can use the PR or PO long text to enable the buyer for the procurement & supplier for supply the material as per long text specifications .
    Regards
    Sameer

  • How can I autosize a text box and when I change text the objects below it got auto pushed down and up?

    Now the text box seems at absolutely position and fixed size.
    What I need is when I change text it grows or shrinks accordingly. And all objects after it also move up or down. How can I do that?
    Thanks.

    The Text will not scale with the Textbox.
    Peter

  • Main "Play Control" volume changes on its own when I open and close WinDVD or Winfast

    Main "Play Control" volume changes on its own when I open these programs, and when they're closed the main volume resets to where it was before the program was opened.
    Surely I'm not the only one who has had this problem before.. I've had the problem with both Creative soundcards I've owned, before and after different drivers installations.
    It can be very irritating and can potentially lead to damaged speakers if I'm not paying close attention to what my various volume knobs are set at before and after I open these programs.
    I appreciate any and all input, thankyou.

    I had to edit to reflect its Mavericks 10.9

  • I have changed my apple id, and its ok when i sync my Iphone with Itunes, but ON my Iphone still my old apple-ID is there. I can NOT buy things from Itunes or Upgrade anything now, how to fix this?

    I have changed my apple id, and its ok when i sync my Iphone with Itunes, but ON my Iphone still my old apple-ID is there. I can NOT buy things from Itunes or Upgrade anything now, how to fix this?

    I recently changed my email address and want to change my Apple ID account to match. I have created a new Apple ID to match the new account but now I can't sign into iCloud on our phones or computer with the old Apple ID. I can't make any changes on iCloud on our phones because it directs me to the old account, which I can't sign into. I also can't sign me in on my computer to make any changes. Help!!! Now I have two addresses and can't access the one that directly affects my devices. 

  • When I get a phone call or text message it will not make the sound. Just vibrate. But the switch is on normal. When I change it to vibrate the volume thing will not show. Nor will my up volume up key work. Is there any way to fix it?

    When I get a phone call or text message it will not make the sound. Just vibrate. But the switch is on normal. When I change it to vibrate the volume thing will not show. Nor will my up volume up key work. Is there any way to fix it?

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Try each of these in order until the issue is resolved.

  • Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Hi, recently purchased macbook 13", I have problem with sound when connect to my LG Smart tv with sound system. When i change sounds effect on my sound system also LG its all go quiet didn't have this problem with my laptop. Any advise ?

    Some progess I see. To be honest, i would not waste your time with trying to connect using wireless.
    You are likely to get poor connections and dropping out.
    If its working using a cable, then there is no need to bother with giving me the network settings, bu see how it goes, because sometimes giving the TV a static IP address can give better results.
    There is an example of a couple of powerline adapters on the diagram below. Just ignore the network switch unless you want to connect other devices which are near to the TV.
    http://forumhelp.dyndns.info/networking/powerline3.jpg
    I will monitor the subject line of this thread, should you want to post any more information.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • I enlarge text size and it goes back to small when I change page,how doI make it permanent?

    windows 7: when I enlarge text or font size to my preference it goes back to original when I change a page, I want to set it and forget it thanks.

    You can use one of these extensions to set a default font size and page zoom on web pages:
    *Default FullZoom Level: https://addons.mozilla.org/firefox/addon/default-fullzoom-level/
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/
    *http://kb.mozillazine.org/Zoom_text_of_web_pages

  • My Friend has a iphone and when i change the setting text messege into imessege it keeps saying text message, even though i changed it

    My Friend has a iphone and when i change the setting text messege into imessege it keeps saying text message, even though i changed it.

    iMessage must be enabled on the sender and receivers iDevice.

Maybe you are looking for

  • Date - before and after precision?

    Hi all, I have two date objects and I am using the before and after methods for a decision process. I would like to know the precision of the above methods. Is the prevision at the seconds, milliseconds, or nanoseconds level? Any help is appreciated.

  • I want a count of distinct rows in a table

    I want a count of distinct rows in a table through a single query -- is it possible? eg. table- create table ch1 (a int, b int, c int, d int) insert ch1 values (1,1,1,1) insert ch1 values (2,2,2,2) insert ch1 values (1,1,1,1) insert ch1 values (2,2,2

  • Program rmi using jbuilder

    hello i write a simple rmi program(hello world),i can write and compile the hello interface and its implementation in jbuilder,but how can i use the jbuilder to generate the stub and the skeleton instead of using "rmic" command in the dos windows?i w

  • BAPI_VENDOR_CREATE can we cal from NON-SAP

    Hi All, BAPI_VENDOR_CREATE can we call this bapi from nons sap system. Thanks, Kiran

  • Question on Jump Queries

    Hello  Everyone, Generally we build the jump queries in RSBBS and do the config to create jump query link from summary report to a detail report. I know how to find the relationship for set of queries whether they have jump queries or not. But I don'