Disable widgets in a dialog box when you click box...

Hello

I m using InDesign CS3 on MAC OS.

I created a dialog box with 2 textfields and a checkbox. I want only the textfields to be visible at the same time...

In other words, according to the value of the box (1 or 0), I have to disable the textfileds. Initially only textfield1 is active and checking the checkbox, textfield2 becomes active and textfield1 is disabled.

Where should I give my code? How to disable operations, we use SuppressedUI.h.

I tried this:

bool16 BscDlgSuppressedUI::IsWidgetDisabled (const IControlView * widget) const
{
InterfacePtr < IWidgetParent > widgetParent (this, UseDefaultIID());
Assert (widgetParent);

PanelControlData ((IPanelControlData*) InterfacePtr < IPanelControlData > (widgetParent-> QueryParentFor (IPanelControlData::kDe faultIID)));
Assert (panelControlData);

IControlView * iControlView = panelControlData-> FindWidget (kBscDlgVisibleCheckBoxWidgetID);
InterfacePtr < ITriStateControlData > TriStateControlData (iControlView, UseDefaultIID());

bool16 y = TriStateControlData-> IsSelected();

If (y)
{
WidgetID widgetID = GetWidgetID (widget);

switch (widgetID.Get ())
{
case kBscDlgTextEditBoxWidgetID:
Return kTrue;
}
}

But this leads to application crash when launching it himself. I think it may be becausu trying to get the values of widgets in a diallog when the dialog box is not visible. Donno if I m right...

Where should I give the code? can I call this method BscDlgSuppressedUI::IsWidgetDisabled() starting from the controller of dialogue? How?

Can someone help pls with the code snippet...

Pls guide me...

Thank you.

1. Yes. And in AutoAttach() you select what widget you want to listen to.

2 IControlView-> Enable()

Tags: InDesign

Similar Questions

  • Instagram widget for Muse - wrong instagram when you click on it!

    I see Snap Widget and Qoo Qee have widgets free Instagram and I the last work in my site.

    Only problem, is that when you click on one of the images in the feed, the user is sent to a version Qoo Qee Instagram account? It looks like a fake account Instagram!

    My client not want their customers to wear their real Instagram account the same as Facebook and Twitter, which have both work perfectly.

    How can this be achieved please?

    Thank you

    You can get a faster response, contact the developer of the widget itself rather than here. But if I had to guess there is probably a place in the properties of the widget to get into the details of the account Instagram.

  • How to prevent the popup dialog closes when you click the commandbutton

    Hello

    The application has a popup with the dialog box Cancel to display a table. Users could select the lines using a checkbox and click a CommandButton to backend processing.

    It displays a message (using addMessage) when he chose nothing.

    I would like to have the popup rest so the user could correct their action, but ADF automatically close the popup.

    Is there a way to avoid this?

    If I put the property AutoCancel to false, the popup rest (or rather re-posted), but the message window is hidden, which is defeat it purposes.

    I saw a discussion archived since 2008, but it doesn't have an answer, that's why I opened this thread.

    Kind regards.

    DjG

    Tried to set partialSubmit for af:button be true?

  • SWF inside the Accordion widget Muse continues to play when you click on another tab.

    I placed a swf inside a Muse Accordion widget. I would like that to stop and return to the beginning, when I click on a button on the widget. Is this possible? Thank you... and besides, I can do a bit of copy and paste javascript, but I'm not a coder.

    Please try to use the composition with video container.

    Thank you

    Sanjit

  • How to disable programs and commissioning that run when you start Windows 7

    How to disable programs and commissioning that run when you start Windows 7

    Hello

    References to Vista also apply to Windows 7.

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135

    How to troubleshoot performance issues in Windows Vista
    http://support.Microsoft.com/kb/950685

    Optimize the performance of Microsoft Windows Vista
    http://support.Microsoft.com/kb/959062

    To see everything that is in charge of startup - wait a few minutes without doing anything-
    then right click on taskbar - task manager - take a look at stored by -
    Process - Services - this is a quick reference (if you have a little box on)
    Lower left - show for all users, then check that).

    How to check and change Vista startup programs
    http://www.Vistax64.com/tutorials/79612-startup-programs-enable-disable.html

    Is a quick check to see who are loading method 2 - using MSCONFIG
    then after a list of these here.

    --------------------------------------------------------------------

    Tools that should help you:

    Process Explorer - free - find out what files, registry keys, and other objects
    processes have open, which DLLs they have loaded and more. This unique
    powerful utility will show you even owned by each process.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896653.aspx

    Autoruns - free - see what programs are configured to start automatically
    When your system boots and you connect. Autoruns shows you the complete list of
    Locations of registry and files where applications can configure start automatic settings.
    http://TechNet.Microsoft.com/en-us/sysinternals/bb963902.aspx

    Monitor Monitor - free - file system, registry, process, thread and
    Activity of the DLL in real-time.
    http://TechNet.Microsoft.com/en-us/Sysinternals/bb896645.aspx

    There are many excellent free tools from Sysinternals
    http://TechNet.Microsoft.com/en-us/Sysinternals/default.aspx

    WhatsInStartUP - free - this utility displays the list of all applications that are
    loaded automatically when Windows starts. For each application, what follows
    the information is displayed: Type of startup (registry/Startup folder), Command - Line
    Channel file, the product name, Version, company name, location in the registry or
    file system and more. It allows you to easily disable or remove unwanted programs
    that runs in your Windows startup.
    http://www.NirSoft.NET/utils/what_run_in_startup.html

    There are many excellent free tools to NirSoft
    http://www.NirSoft.NET/utils/index.html

    Window Watcher - free - do you know what is running on your computer? Maybe
    not. The window Watcher says it all, every window created by each execution of the statement
    program, if the window is visible or not.
    http://www.KarenWare.com/PowerTools/ptwinwatch.asp

    Many excellent free tools and an excellent newsletter at Karenware
    http://www.KarenWare.com/

    Hope these helps.

    Rob - bicycle - Mark Twain said it is good.

  • Layers down when you click the box 3d, motion blur, etc.

    I looked for an answer to this question, but couldn't find anything, so...

    Since the upgrade 2015.3, any time I click to enable or disable an option in the boxes for things like 3d, motion blur, lock the layer, interpolation, as well as other simple actions, rather than just by turning the option or not, the whole layer falls showing transformation, effects and audio data.  This happened with another version, but Adobe hastened to repair so it does not lead me to the point of madness.  This time, however, they seem to ignore, or don't care and are just ranking as "in order to help with the flow of work" which he KILLS my workflow, it helps any...

    My question is, does anyone know how to solve this problem, or if Adobe is working on a fix?  Today is the day, he pushed me over the top when I have a comp with 40 + layers and I need to activate or deactivate the motion blur that I saw... I hate Apple Motion, but if there is no solution, and before I go ballistic eager to break through the wall of After Effects, it's my option if no one can help me.

    Please help.  I hate interruptions in workflow.

    Thank you!

    Dan

    Thanks for your help, but I'm not sure that we are talking about the same issue.

    It seems to be the same problem. your layers have audio when clearly, they do not need to have the audio. Text, shapes and the whirlpool down problem. read Tim Kurkoski answer in the link I gave you:Re: new in After Effects 13.8.1 - with audio shape layers!

    The bug occurs when you work in a model that has been composed before and this model contains a layer with audio, when you add a new layer to this model (any type of layer except the cameras or lights), if this layer should not have audio it will win the audio properties in any case. When you click on a layer switch (for example, solo, lock, a blur of movement, etc.). these layers with superfluous Audio properties will automatically be twirl open their properties.

    See the workaround suggested and if it's a big problem for you, as I have written before - work in 2015.2 until it is fixed

  • How can I disable 2 pesky pop-up windows when you compose a new e-mail message?

    How can I disable 2 pesky pop-up windows when you compose a new e-mail message?

    In Yosemite-Mail I am waisting a lot of unwanted pop ups 2 closing time I have never

    achieved in previous systems in the mail before calling or fixing spelling:

    and:

    Thank you for your time and patience.

    When exactly these pop-ups appear? Normally they only appear while ctrl-click and disappear automatically. What behavior do you see?

  • Small box, Adobe Flash Settings for storage space interferes with videos. It won't go away when you click DECLINE. Windows 7

    This little box pop up asking the storage space appears constantly during the videos, and it won't go away when you click DECLINE.  I tried to DENY EVERYTHING in the settings, but then I couldn't videos, even videos that play, but are covered by the small box of Adobe, asking for storage.  I just never will have access to the videos without the interference of Adobe?

    Hello

    The application that you are running in Adobe Flash Player wants to store some information on your computer, but it needs more space than is currently allocated. Player, Flash displays the amount of space that is currently used for storage and pray the required maximum to save the information.

    You can use the Save Local settings panel to let future applications of this Web site to store information on your computer without asking you for permission each time. To display the Local Storage Panel:

    a. right click on the image for application during its execution.

    b. in the context menu, select settings and then click the Local Storage tab.

    You can also use the Flash Player Settings Manager to manage your settings of local storage at the global level and on a site-by-site basis.

    1. what application you run using Adobe Flash Player?

    2. you are trying to play the videos from the computer or online?

    3. what web browser do you use on your computer?

    Follow the steps below:

    Method 1:

    In the Settings of Adobe Flash Playerpop-up message, check the box never ask again, click allow and control.

    For reference:

    http://www.Macromedia.com/support/documentation/en/flashplayer/help/help07.html#117290

    Method 2:

    Uninstall Adobe Flash Player and reinstall the latest version and check.

    Uninstall or change a program:

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Install the latest version of Adobe Flash Player from the link below:

    Adobe Flash Player:

    http://get.Adobe.com/flashplayer/

    Method 3:

    If you are facing problems in Internet Explorer, and then follow the steps in the link below.

    The video problems when you use Internet Explorer:

    http://support.Microsoft.com/kb/2532294

    Warning: Reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    For reference:

    Of local storage pop-up question:

    http://www.Macromedia.com/support/documentation/en/flashplayer/help/help06.html

    Let us know the status of the issue. If you need help, please after return. We will be happy to help you.

  • Why the data disappears when you click on a text box on a page of a completed form on?

    Adobe Acrobat 9 Pro on Windows 7.

    Installation: I created a doc of bid that allows the end user to complete the first page (request for quote) and auto information fills in the next 3 pages, carrying contractors names and info to separate bid documents.

    Each of the contractor bid documents must out individually, so I check out them for distribution.

    The problem is that the details of the offer requires sometimes scroll down in the text box, which has been activated and works well on the original document, the information disappears when you click the check box in the checked out document.

    The original Document ('Scope') field properties:

    Field Properties.PNG

    Original Document - scrollbar behavior works to read all content info:

    Field Behavior.PNG

    Extract Document - before clicking the "range".

    Extracted Document.PNG

    Extract Document - after clicking on the "range".

    Extracted Document clicked.PNG

    Extract Document - properties of the field.

    Extracted Document field properties.PNG

    What is blow the information contained in the extracted document when you click on the text box? This does not happen in any other areas of text without scrolling.

    Help!

    Business Card.PNG

    I have never heard forward and cannot reproduce them. What the police that you use for the multiline field? It would be interesting to see a sample file if you can put a somewhere.

    Something that might work is first export data from form (in FDF/XFDF), then extract the pages, reset and re-import the data in the page.

  • Drop-down list box will not drop down when you click on

    I have three area of list editable dropdown menu instances in a form and they are all filled with the data in a table. The problem is none of them the menu is displayed when you click the arrow. They also have a problem of tabbing through them. I can see all the data by selecting from the drop-down list boxes by using the arrow keys, but I need to get the drop-down menu work.

    Thank you!

    If found the problem... Since I handle items in combo box list dynamically in the context of a movieclip I had to set "my_formMovie._lockroot = true;". This corrects the problem.

  • Want the audio file, click on the box to play when you click

    Hi all

    I would like to have a click box that plays a short audio file when you click it, much the way you can have a view of the legend and a playing audio file with a bearing. It seems that there is no way to get the 'success on click' action to be 'read the audio file '. I can associate an audio file with the box click on the Audio tab, but this makes the audio file play automatically when the click box, not display when clicked.

    If someone was able to get an audio file to play when the user clicks on a click box, as I describe it, without connection to another slide and without the help of a button? I don't want to use a button because the real object that is clicked is a box of nail on something else. The highlight box means that there is more information about the highlighted item.

    In addition, I don't want to create a branch to another slide, because they are really short texts of audio presentation bit, and I have three of them. I prefer to have interactivity on a slide, rather that force the user to navigate around.

    If anyone did what I describe and has ideas, I welcome them. At this point, I think a bearing with legend and play on the mouse on an audio file can be the best thing, except if the user moves the mouse out of the hotspot, the sound stops. Maybe it's not bad anyway, but thought I'd check here everything first before resorting to a reversal.

    Thank you very much!
    Lisa

    Hi Rick!

    Thanks a lot for your answer. Hmm... I think in my situation, workaround to reread the previous slide to reset the box click doesn't work. Before arriving at these interactive click boxes, the slide has other text and audio playback. Start the slide would re-read everything until the blade stops, then display the interactive elements. However, I think that something like that might work for a project where the interactive stuff "starts" immediately on the slide. It's simply not how mine is set up at this stage. I think that the legend of attached with audio reversal will probably be my best option right now.

    Thanks again for your response!
    Lisa

  • I have a small black square box that suddenly appeared on my iPad screen and I can't get rid of it. It is said to perform a zoom, zoom full screen, etc. When you click on it. I have to remove my screen; It drives me crazy.

    I have a small black square that has all of a sudden shiown on my iPad screen and I can't get rid of it. When you click on it, it is said, perform a zoom, zoom full screen, etc. I need because it drives me crazy.

    Help!

    You have one of the accessibility features enabled. Go to settings > General > accessibility and Zoom 'off' (the icon you see is the 'Show' controller on screen Zoom settings) - and check what accessibility shortcuts (a triple-click of the home button) is defined in the lower part of the screen for accessibility

  • How to open 2 sites on start and 1 Web site when you click the home button?

    How to open 2 sites on start and 1 Web site when you click the home button?

    You can change your shortcut on the desktop Firefox with two starting URLS. To try:

    • Shortcut on the desktop: right-click on the icon, choose Properties
    • Icon taskbar pinned: clic click right on the icon, right click in Mozilla Firefox, click on properties

    Windows normally selects the shortcut tab. If this is not the case, go ahead and click on the shortcut tab.

    You will see the target highlighted. On 64-bit Windows, which is usually either not less the following:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
    

    For the specific shortcut launch pages, you can add them to the end, for example:

    "C:\Program Files (x86)\Mozilla Firefox\firefox.exe" -url "http://www.dilbert.com/" -url "http://www.gocomics.com/pearlsbeforeswine"

    After OK'ing the Properties dialog box, you can test everything right now to confirm that Firefox is now launching a window with tabs. Either:

    • Double-click the shortcut on the desktop
    • right click on taskbar icon pinned, click Mozilla Firefox

    Who do you want?

  • Result has changed when you click on the PDF attachments

    Result has changed when you click on the PDF attachments.

    It's recent, possibly after updates, I use Adobe Reader 10.0.10, Firefox 35.0.1 on a computer that is running Windows 7

    I no longer get the open/save dialog box when I click a pdf attachment, how do I get that back please?

    I have other problems, but they may be related to the above, so I would like to sort first if possible.

    ,

    In Firefox, go to Tools - Options - Applications and enter "pdf" in the filter field. Then select the action you want from the list.

  • When you visit a particular site my user name is entered automatically when you click in the required area. I want to avoid this, how?

    This site requires a username to be filled in a specific area and in another box, you enter a series of numbers generated by a generator of numbers (so not a password - different series each time that you open a session).
    However I do not want my user name appears automatically in the first box. Trying to change that in the security settings (extra-options-security), there is a password section where you can choose any exceptions to the rule of the memory (if the box remember is marked). When clicking the exceptions button, the url of the site I'm talking about is not displayed, and it cannot be entered either, since you can't delete here.
    When you click on the option "saved passwords", nor the site, nor the username is listed. I think I've read all the help sections regarding usernames and passwords, but found no solution.
    How can I avoid this username (so only a user name - not the usename/password combination), appear in the box?

    Click on the box, hover over the drop-down menu with your mouse, if you select the word you want to delete, and then press the delete key. If Firefox fills automatically in forms of control

Maybe you are looking for

  • Vector art &amp; culture in pictures

    I imported a vector (.ai) file in the photos. It retains the .ai suffix, but it seems to have been converted into a raster format when it is placed in a photo book. What format does get converted to (PNG, JPEG, etc.)? And why Photos automatically cro

  • Question about my new keyboard

    My parents gave me a multimedia keyboard Microsoft 1. 0 to because my Dell keyboard was dying.  Multimedia keyboard has a PS/2 end and I only have USB ports, so I bought an adapter.  Who will perform the quick launch on the keyboard buttons?  The sti

  • Home network keeps failing and requires the repetition of the MS Fixit 50135

    I have 3 computers in a network.  All are XP machines, 2 are Pro and a bone House.  All are at SP3.  My Network works fine until I reboot all the machines.  Then I get the message "you may not be authorized...". "and cannot access other machines.  If

  • keep while making moved to receive code 646

    code 646

  • Sudden increase in hardware reserved memory?

    I've had my current PC for 6 years. It has 8 GB of RAM installed and has been since I built it. It is always saved these 8 GB. But as of about a week before, he can use 6 of those, with 2 GB 'Reserved material'. The has not had changes to the materia