Hierarchical Tree view Indentation not working...

I just followed the PersistentListUI example to create a hierarchical tree view... everything seems to work except the indentation.
I have:
virtual PMReal GetIndentForNode(const NodeID & inNode) const {
return PMReal(10.0);
but AFAICT, there's no indentation on the GUI...
any idea why?
pete

I add the following to the code:
virtual PMReal GetIndent(const NodeID & inNode) const {
PMReal parent_value = CTreeViewWidgetMgr::GetIndent(inNode);
the parent_value is indeed 0;
I put an printf in GetIndentForNode() and it's indeed being called...
hmm...

Similar Messages

  • If statement within a view is not working correctly ?

    Hi all,
    maybe i am wrong but i think the if statement within a view is not working correctly. See code down below.
    I would like to use the Hallo World depending on the page attribute isFrame with or without all the neccessary html tags. Therefore i have embedded the htmlb tags in an if statement. But for any reason if isframe is initial it isn't working. It would be great if anybody could help me.
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if not isframe is initial. %>
      <htmlb:content design="design2003">
         <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    hallo world
    <% if not isframe is initial. %>
         </htmlb:page>
      </htmlb:content>
    <% endif. %>
    thanks in advance and best regards
    Matthias Hlubek

    Matthias,
    The short answer: your example is <b>NOT</b> going to work. The long answer will probably 5 pages to describe. So first let me rewrite the example so that it could work, and then give a short version of the long answer. Do not be disappointed if it is not totally clear. It is rather complicated. (See the nice form of IF statements that are possible since 620.)
    <%@page language="abap"%>
    <%@extension name="htmlb" prefix="htmlb"%>
    <% if isframe is <b>NOT</b> initial. %>
    <htmlb:content design="design2003">
      <htmlb:page title = "Top Level Navigation view">
        hallo world
      </htmlb:page>
    </htmlb:content>
    <% else. %>
      hallo world
    <% endif. %>
    So why does your example not work? Let us start with a simple tag:
      <htmlb:page title = "Top Level Navigation view">
      </htmlb:page>
    Now, for each tag, we have effectively the opening part (<htmlb:page>), an optional body, and then the closing part (</htmlb:page>). We are now at the level of the BSP runtime processing one tag. What the runtime does not know, is whether the tag wants to process its body or not. Each tag can decide dynamically at runtime whether the body should be processed. So the BSP compiler generates the following code:
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
      ENDIF.
      tag->DO_AT_END( ).
    You should actually just debug your BSP code at ABAP level, and then you will immediately see all of this. Now, let us mix in your example with our code generation. First you simplified example:
    <% if isframe is NOT initial. %>
      <htmlb:page title = "Top Level Navigation view">
    <% endif. %>
    <% if isframe is NOT initial. %>
      </htmlb:page>
    <% endif. %>
    And then with our generated code. Look specifically at how the IF/ENDIF blocks suddenly match!
    if isframe is NOT initial.
      DATA: tag TYPE REF TO cl_htmlb_page.
      CREATE OBJECT tag.
      tag->title = 'Top Level Navigation view'.
      IF tag->DO_AT_BEGINNING( ) = CONTINUE.
    endif.
    if isframe is NOT initial.
      ENDIF.
      tag->DO_AT_END( ).
    endif.
    You can see that your ENDIF statements are closing IF blocks generated by the BSP compiler. Such a nesting will not work. This is a very short form of the problem, there are a number of variations, and different types of the same problem.
    The only way to solve this problem, is probably to put the body into a page fragment and include it like I did above with the duplicate HelloWorld strings. But this duplicates source code. Better is to put body onto a view, that can be processed as required.
    brian

  • Help viewer does not work after update to 10.4.4

    Since updating to 10.4.4 my Help viewer does not work, and all of the troubleshooting fixes suggested in other threads have not had any success in resolving this. I've noted that when I go to Users>Library>Documentation>Help there is no mac.help file - can someone tell me if that means that I've lost the file altogether and need to reinstall it? I get to the first screen of the viewer, but the links from there don't work. Thanks for any help that you can provide!

    Thanks for your suggestion. I downloaded OnyX and ran the cleaning function. After restarting, I opened Help and once again the first screen appeared fine. But again most of the links did not work, though those under the "What's New" heading did work. I might add that I had previously tried a variety of suggestions posted in another thread, which included deleting from the caches folder in Home>Library several files such as com.apple.helpui and help.plist in the Preferences folder. (As noted in my previous post this evening, I also created another user but that also did not have any effect.) Any other ideas? Thanks

  • TEXT-INDENT NOT WORKING

    Hi!
    Please see the below CSS code, why isn't the text-indent not
    working? everything else is?
    a.quick_link_buttons:link {
    color : #004489;
    font-family : Myriad, Arial, Helvetica, Verdana, sans-serif;
    font-size : 12px;
    text-indent : 10px;
    line-height : 20px;
    text-decoration : none;
    font-style : normal;
    font-weight : normal;
    a.quick_link_buttons:hover {
    color : #004489;
    font-family : Myriad, Arial, Helvetica, Verdana, sans-serif;
    font-size : 12px;
    text-indent : 10px;
    line-height : 20px;
    text-decoration : underline;
    font-style : normal;
    font-weight : normal;
    Many Thanks!

    You don't need to respecify styles that will inherit or
    default styles. You
    could achieve the same styles with the following -
    a.quick_link_buttons {
    color : #004489;
    font-family : Myriad, Arial, Helvetica, Verdana, sans-serif;
    font-size : 12px;
    text-indent : 10px;
    line-height : 20px;
    text-decoration : none;
    a.quick_link_buttons:hover {
    text-decoration : underline;
    As for why the indent isn't working, try 'padding-left:10px;'
    instead, when
    applied to the inline element. Or, you can have a rule that
    will apply to
    the container for these links, e.g.,
    <div style="text-indent:10px;">
    <a class="quick_link_buttons">whatever</a>
    </div>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "jinxed" <[email protected]> wrote in
    message
    news:eur929$gro$[email protected]..
    > Hi!
    >
    > Please see the below CSS code, why isn't the text-indent
    not working?
    > everything else is?
    >
    > a.quick_link_buttons:link {
    > color : #004489;
    > font-family : Myriad, Arial, Helvetica, Verdana,
    sans-serif;
    > font-size : 12px;
    > text-indent : 10px;
    > line-height : 20px;
    > text-decoration : none;
    > font-style : normal;
    > font-weight : normal;
    > }
    > a.quick_link_buttons:hover {
    > color : #004489;
    > font-family : Myriad, Arial, Helvetica, Verdana,
    sans-serif;
    > font-size : 12px;
    > text-indent : 10px;
    > line-height : 20px;
    > text-decoration : underline;
    > font-style : normal;
    > font-weight : normal;
    > }
    >
    > Many Thanks!
    >

  • IBM cognos TM1 Executive viewer is not working on direct Access

    Hi,
    We are implementing DirectAccess in our environment and testing applications in test lab. It has been observed that executive viewer is not working on Direct Access but working fine over VPN mobile checkpoint. When DA client click on open view button it
    gives error
    " Additional information:
    Unable to connect to server XYZ.com using TCP-IP port 7112. Please make sure that IBM cognos TM1 executive viewer server is started and the port is not blocked by any proxy server or firewall"
    but from client telnet is working on port 7112. All ports between DA server and application server are open 3389,7112 and 80.
    Also select database option is grayed out and user is unable to select the database. When switching to VPN its working fine.
    We are using Executive viewer 9.4. 
    Any help would be appreciated.

    It sounds like this program may not be capable of talking over IPv6, which DirectAccess uses. First make sure that when you connect it is trying to talk to a hostname and not an IPv4 address. If your program is calling for "192.168.1.100" - this is never
    going to work over DirectAccess. It must call for a name that DirectAccess can resolve to an IPv6 address for communication over DA.
    If you confirm it is talking to a name, and then if you confirm that you can do other things to that same name (can you RDP into the server for example?), then that confirms that DirectAccess traffic flow is working to that name/server.
    If RDP works but the application still doesn't work, then the application is probably incapable of IPv6. You can either ask IBM if they have a newer version that does talk IPv6, otherwise I have a utility available that can intercept packets from these kinds
    of problematic applications and flip the packets into IPv6 on the DA client. Let me know if you need any further information on that: http://www.ivonetworks.com/news/2013/05/ivo-networks-announces-app46-for-directaccess/

  • Chart view is not working in obiee11.1.1.5.0

    Hi,
    All types of chart views are not working(analysis compunt layout) in obiee11.1.1.5.0 version.please refer my below scren short
    http://imageshack.us/photo/my-images/209/chatnotworkingobiee1111.jpg/
    note:
    1) no luck below link
    OBIEE 11g - Cannot view charts
    2) some of the servers working fine. after deployed skin some times making this kind of problem
    Thanks
    Deva
    Edited by: Devarasu on Apr 4, 2012 10:51 AM
    Edited by: Devarasu on Apr 4, 2012 11:20 AM

    Hi,
    Its reolved. our sking and style dvn files not yed updated earliear...after updated and restarted its working fine.
    thanks
    Deva

  • Icon view is not working

    Icon view is not working in my mac book pro.I tried other types of view, they all are working but icon view stopped working all of the sudden. Any suggestions how to fix it ???

    1st i reinstalled snow leapord......d problem was fixed icon view was working and yesterday i installed lion....and everything is working properly....
    try reinstalling......shuld work

  • Dremweaver CS6. Design View is not working.

    Hello.
    Design View is not working.
    I got this instead of normal View.
    What wrong with it?
    Regards,
    Nata

    Sometimes it is just a temporary problem and by shutting down the DW and rebooting the system resolves such problems.  Otherwise, you can try to reset the preferences using the instructions given here:
    <Restore preferences | Dreamweaver CS6, Dreamweaver CC>
    Or even try deleting the cache file using these instructions:
    <Deleting a corrupted cache file>
    Good luck.

  • Brushes app question: does anyone know how to upload a brushes painting as a video? "Brushes Viewer" is not working for me ;-(

    Brushes app question: does anyone know how to upload a brushes painting as a video? "Brushes Viewer" is not working for me.
    Thanks! KAR

    Hi, Dave.
    If you're using the BlackBerry browser, you can't configure anything to bypass the RIM servers.  I believe you may do so by using the Opera browser, but I haven't tried it myself so cannot comment with authority.
    I hope that clears up the issue for you. 
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • My Help Viewer is not working for mac help

    My Help viewer is not working for mac help. Everytime i choose mac help the window opens then closes. But when i open another help like safari help it opens and works fine. If i switch it back to mac help the window just closes and the application quits.
    If you know how to fix please telll!

    noname212,
    Using "Search Discussions" with the term "Help Viewer" you will lead you to numerous posts which refer to Troubleshooting Help Viewer by Dr. Smoke.
    Good Luck
    ;~)

  • Tree Binding sample not works on iAS 10.1.2

    I have downloaded sample Tree Binding - Tree View Control (http://www.oracle.com/technology/sample_code/products/jdev/index.html)
    and opened with jDeveloper 10.1.2.
    On Embedded OC4J it works fine but after deploy to iAS 10.1.2, the tree control on departmentTree.jsp is void.
    Is there any problem with tree on iAS 10.1.2 ?
    Regards,
    Lumir Vanek

    Hi dvohra,
    Thanks for your reply. I'm afraid I overlooked something, which is the reason of the ajax functionality not working. The Servlet that made the Ajax functionality used a datasource, and the same was in the Embedded OC4J Preferences. The ADF Business Components part was changed to use the datasource declared on the iAS. The Servlet however was not...
    So, all works now.

  • Perf Mon: Open PMUs & Open PMU Trees options are not working...

    Monitoring System: Windows, PeopleTools 8.49 Patch 13. Database, web, app, process scheduler all in one system and OS is windows.
    Monitored Systems:
    1) Self monitoring system: OS- Windows, PeopleTools 8.49 Patch 13.
    2) Fin Demo - People Tools: 8.46.14 - HP Unix 11i,all web, app, process scheduler on HP Unix, 11i.
    Both the Open PMUs & Open PMU Trees option in performance monitor supposes to display current open PMUs data, ran long running queries
    on Monitored systems we are not seeing any data for open PMUS with either Open PMUs or PMU Tress options in Monitoring system.
    Do have the same issue on a diff setting(follows):
    Monitoring System:
    People Tools Version: 8.46.14
    Monitored Systems:
    Fin Demo - People Tools: 8.46.14
    Inv Dev - People Tools: 8.45.13
    Any thoughts why its not working?
    Thx/T

    I am not sure if I can help you but you must first try to identify your problem more specifically. From the man page of evdev, I see:
    Option "EmulateThirdButton" "boolean"
    Enable third button emulation. Third button emulation emits a right button event (by default) by pressing
    and holding the first button. The first button must be held down for the configured timeout and must not
    move more than the configured threshold for the emulation to activate. Otherwise, the first button event
    is posted as normal. Default: off. Property: "Evdev Third Button Emulation".
    The first thing I would check, is how to "press and hold the first button" (from a system point of view). When you click down  the first button, the system should see a NotifyGrab event, when you release the button a NotifyUngrab event. Is this actually what the system see? Try to disable any configuration files and see the output of evdev. Are you able to generate a NotifyGrab event with no NotifyUngrab?

  • Tree expand / contract not working when region copied...

    Hi
    I have a tree view region which I want to appear on each relevant page. Simple, thinks I, I'll copy the region from page to page... but when I do this then the expand / contract buttons don't work. If I create a new tree region then paste in the code from the tree region I want to copy all works well...
    Using Apex version 4.0.0.00.46.
    Anybody else seen this?
    Steve

    >
    The existing page zero appears at the top of other pages, containing specific data. This Tree element only appears on the config pages and is on the left hand side of the page.
    >
    You've just caused me to make a discovery that I hadn't noticed in nearly 6 years of APEX use: Page Zero is assigned a page template! I've no idea why this is: I don't think it should; this template will have absolutely no effect on how the application is actually rendered so I therefore think we should ignore it and maybe it will go away...
    Has the presence of a page template on Page Zero influenced your thinking on its use?
    Understand that regions on Page Zero will not be rendered according to the Page Zero template, but according to the page template for the page they are included on. The region Display Points remain constant: if you assign the Tree element to region position 2 on Page Zero, and it's included on pages 6, 7 and 8, then it will appear in region position 2 on pages 6, 7 and 8. However, using page templates and CSS, region position 2 can be in completely different places on the screen on pages 6, 7 and 8 (and even be in different positions on the screen and on a printout from the same page...).
    The other main thing about Page Zero is that the rendering of regions can be controlled conditionally, often using the Current page in Expression 1 condition, where a list of page numbers specifies which pages a region should be included on. So to make your Tree region only appear on Config pages 6, 7 and 8, set its Display Position to Region Position 2, and give it a Current page in Expression 1 condition with Expression 1 set to <tt>6,7,8</tt>. If the "existing page zero" elements appear on every page except 6, 7 and 8 then use the opposite Current Page not in Expression 1 condition...
    Only very simple apps would tend to include all Page Zero regions on other pages in their entirety: most of the time there will be mix'n'match using conditional rendering.
    >
    Which raises yet another question (getting my 2 cents worth here!) - can we conditionally change the position of a region? eg if on app pages 1 thru 5 then page zero is at top. if on pages 6 thru 8 then appears on left side?
    >
    Hope I've managed to explain why that's not how it works?
    (And reflecting on the mysterious presence of a template on Page Zero, I can only think that it has something to do with the Display Point preview pop-up, even though it's entirely useless as a safe guide to where the region will ultimately appear...)

  • In portal BookMark and save view are not working

    we already published the web application via iView in our portal.
    What I am looking for is to bookmark an already published web application within EP portal. E.g. I open the web application with specific filter and make some drills. Now I want to bookmark this report situation and save the generated url under my favorites.
    For me this is not working. When I click the bookmark option noting happened. My address bar url also not changed; no bookmark URL was created.
    Save view also is not working
    Please help ......

    Hi SKM,
    did u solve your problem?
    Greetingz
    Lars

  • Validation-code of a view is not working in portal

    my validation code is working fine when testing in local view's application. the same view is attached to portal through fpm. while testing the same view in srm portal it is not working.can anybody suggest me why it is happening so. i will be thankful.

    have you checked in debugging.....

Maybe you are looking for

  • There are songs on my iPhone that I CANNOT delete

    MAIN PARTS OF THE STORY ARE IN RED. Details are in black. Me and the rest of my family share an Apple ID account. I have automatic music downloads and "show all music" turned off, because I dont want their music and stupid apps. The other day I went

  • Editor word wrap

    Is there a way to wrap paragraphs in the code editor? I can find it. I have a single line of 100 words... its quite hard to edit :S Christine

  • Transaction Launcher in CRM2007

    Hi Gurus, I am trying to launch a transaction (lets say CRMD_ORDER) in CRM 2007 with the help of transaction launcher but I am not getting any link on UI in the navigation bar. I performed the following steps: 1. I defined the logical system in the v

  • Photoshop animated smart object to Flash??

    Hey All, I could use a little help here, I am working on this project for a company and they need it to be animated. I tried using Photoshop's animation capabilities, but could only go so far with that. So I'm working on it in flash now. I have manag

  • Setting selection in JEditorPane

    Hi guys! I have somtehing like this: JEditorPane pane = new JEditorPane(); pane.setSelectionColor(Color.Blue); pane.selectAll(); but nothing happens. I mean, the text is scrolled as if the selection was made, but color doesn't changes. If you select