Tab Navigator Tabs show Hand Cursor

Can anyone tell me how to get the hand cursor to show up when
rolling over the tabs on a tab navigator? Button mode works, but
also shows hand cursor over everything, not just the tab.
Thanks

To use the below code you need to get a hand icon from a
yahoo image search, or create your own. Maybe there is a way to
access the system hand icon, that would be best:
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
import flash.utils.*;
import mx.managers.CursorManager;
private var cursorID:Number = 0;
private function setHandCursor(event:MouseEvent):void {
var classInfo:XML = describeType(event.target);
var cn:String = [email protected]();
if(cn == "mx.controls.tabBarClasses::Tab") {
[Embed(source="assets/images/cursor_hand.gif")]
var handCursorSymbol:Class;
cursorID = CursorManager.setCursor(handCursorSymbol);
private function removeHandCursor(event:MouseEvent):void {
var classInfo:XML = describeType(event.target);
var cn:String = [email protected]();
if(cn == "mx.controls.tabBarClasses::Tab") {
CursorManager.removeCursor(cursorID);
]]>
</mx:Script>
<mx:WipeLeft id="myWL"/>
<mx:TabNavigator id="tabNav"
mouseOver="setHandCursor(event)"
mouseOut="removeHandCursor(event)">
<mx:VBox label="Accounts"
width="300"
height="150"
showEffect="{myWL}">
<!-- Accounts view goes here. -->
</mx:VBox>
<mx:VBox label="Stocks"
width="300"
height="150"
showEffect="{myWL}">
<!-- Stocks view goes here. -->
</mx:VBox>
<mx:VBox label="Futures"
width="300"
height="150"
showEffect="{myWL}">
<!-- Futures view goes here. -->
</mx:VBox>
</mx:TabNavigator>
</mx:Application>

Similar Messages

  • Showing Hand cursor in  FLVPlayback Skin

    How can we show hand cursor in FLVPlayback Skin for Flash 9?
    I have tried giving "MC.buttonMode = true" but it didnt help.
    Any suggestions?
    Thanks in Advance,
    Siraj Khan
    [email protected]

    Flash & Flash 9 provide you ready-made skins for
    FLVPlayback component. It includes Play/Pause button, Volume bar,
    Scrub, FullScreen button etc. By default when a user moves the
    mouse over any of the components / buttons it doesn't show mouse
    turning as hand cursor. I hope it clarifies the your doubt. Kindly
    let me know if u need further clarifications.
    Thanks for responding,
    -Siraj

  • Customized buttons not showing hand cursor

    I have button and buttonbar components in my app. I have
    applied new skins to them using CSS. However, they do not show the
    hand cursor, so that it obvious to the user that they are, in fact,
    buttons.
    For example:
    <mx:Button click="goLink()" id="goBtn" width="18"
    height="19" styleName="customButton" mouseEnabled="true" />
    .customButton {
    color: #FFFFFF;
    text-roll-over-color: #FFFFBB;
    text-selected-color: #9999FF;
    disabled-color: #333333;
    up-skin: Embed(source="assets/btn_arrow.png");
    over-skin: Embed(source="assets/btn_arrow.png");
    down-skin: Embed(source="assets/btn_arrow.png");
    disabled-skin: Embed(source="assets/btn_arrow.png");
    What happened?

    "rtalton" <[email protected]> wrote in
    message
    news:gh103g$gd1$[email protected]..
    > Buttons, by default, do not display a hand cursor. So
    web 1.0!
    > We have to tell the button to do this. Set the
    buttonMode property to
    > TRUE.
    >
    > Read the help docs on the button properties, and take
    note of buttonMode,
    > useHandCursor and mouseEnabled. These additional
    properties can help you
    > when
    > you want another type of object to behave like a button
    with a hand
    > cursor.
    > Sounds like you may be soon headed down this road so I
    thought I'd mention
    > it.
    I think for many components you also need to set
    mouseChildren="false" and
    useHandCursor="true"

  • Tab Navigator Tab Colors

    Is there a way I can get the tabs in the TabNavigator to each
    have different colors?
    Thanks for any help.

    quote:
    Originally posted by:
    cjwprostar.
    ... The tabNavigator's creationPolicy="all" and ...
    Here's a working example that has this problem..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.XMLListCollection;
    public var xmlOne:XML=
    <root>
    <data>
    <name>Foo</name>
    <type>Number</type>
    </data>
    <data>
    <name>Bar</name>
    <type>String</type>
    </data>
    </root>;
    public var xmlTwo:XML=
    <root>
    <data>
    <name>Foo</name>
    <type>Number</type>
    </data>
    <data>
    <name>Bar</name>
    <type>String</type>
    </data>
    </root>;
    [Bindable]
    public var sourceOne:XMLListCollection=new
    XMLListCollection(new XMLList(xmlOne));
    [Bindable]
    public var sourceTwo:XMLListCollection=new
    XMLListCollection(new XMLList(xmlTwo));
    public function GotoNext():void{
    if(dgOne.selectedItem!=null){
    tabNav.selectedIndex=1;
    trace(dgOne.selectedItem);
    trace(dgTwo.selectedItem);
    dgTwo.selectedItem=dgOne.selectedItem;
    trace(dgTwo.selectedItem);
    trace("--------------------------");
    ]]>
    </mx:Script>
    <mx:TabNavigator id="tabNav" creationPolicy="all"
    left="20" right="20" top="20" bottom="20">
    <mx:Panel id="tabOne" label="Tab 1" width="100%"
    height="100%">
    <mx:DataGrid dataProvider="{sourceOne.child('data')}"
    width="100%" height="100%" doubleClickEnabled="true" id="dgOne"
    doubleClick="GotoNext();">
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1"
    dataField="name"/>
    <mx:DataGridColumn headerText="Column 2"
    dataField="type"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Panel>
    <mx:Panel id="tabTwo" label="Tab 2" width="100%"
    height="100%">
    <mx:DataGrid dataProvider="{sourceOne.child('data')}"
    id="dgTwo" width="100%" height="100%">
    <mx:columns>
    <mx:DataGridColumn headerText="Column 1"
    dataField="name"/>
    <mx:DataGridColumn headerText="Column 2"
    dataField="type"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Panel>
    </mx:TabNavigator>
    </mx:Application>

  • How do I show a hand cursor for a text entry box button

    I'm using Captivate 5 and have run into an annoying problem...
    For a general click box, there is an option for "Show hand cursor over hit area" which will result in the cursor changing to a hand when rolling over the click box region in the published presentation.  I want to do the same for the 'submit' button in the text entry box. Is this even possible?  I'm hoping to keep things consistent as a user is clicking through the presentation.
    I find it odd that it doesn't have the same property as found on the clickbox considering it has the same purpose.  I'm using a background screenshot image to simulate an entry in an application, so I'm actualy hiding the submit button, but the button I want them to press lacks the hand cursor that would indicate it is clickable.  I don't want to use a click box to allow the user to move on because I still want a failure in the text entry box to prevent the user from moving on.
    Hope that all makes sense.

    Hi there
    Another approach is to use a Rollover Caption. Just remove any text and configure the caption as transparent. Then layer the Rollover area over the part where you want the hand to change to a cursor. The net effect will be that the cursor change will occur. Clicking will then result in triggering the underlying Submit button, which appers to be invisible and layered over an image.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • How to itemrender the menubar into a tab navigator?

    Hi,
    I have a requirement like the tab navigator/ tab bar should behave like a menu bar. How can I do this? any work around for this?
    Thanks,
    Raja.

    You can use the java.io.* package to write to files.
    API: http://java.sun.com/j2se/1.5.0/docs/api/java/io/package-summary.html
    Tutorial: http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Hand Cursor Not Showing for Smartshape Button

    Hi - I'm using Cp7 and want to have a smartshape, that contains a user variable (as the text), as a button which displays the hand cursor when you roll your mouse over it.
    When I turn the 'show hand cursor' option on this works fine when the smartshape has no text in it...but as soon as I insert the variable string the hand cursor no longer shows when I preview the project.
    Is this a bug or is there something I'm not doing right...?
    Thanks
    Rick

    Thanks @rickhumpries86. What I did was I narrowed the problem down to a text animation. I only left 2 elements on the stage:
    1) A button
    2) A text animation (a plus sign)
    In this first picture of the stage, the problem exists. The frame of the + is indicated but is not overlapping the button.
    How I corrected it was I had to move the text animation up about 9 times (Ctrl + up arrow) to the position indicated in this next screen shot. Then there was no interference from the + text animation. For the animation I used the Disperse effect. To get the + sign that large, I used Arial size 72 font. So I'm not sure if this is considered a bug, or there is something else that I'm not understanding about the interaction of the text animation and its affect on the stage to other elements.

  • Hand cursor in Firefox 4 on Mac

    Hi,
    I just updated to Firefox version 4.0.1 on my Mac and suddenly no hand cursors are showing up on my application. Has anyone else come across this, and know any workarounds?
    Cheers
    Eric

    Update to Firefox 13 .  Firefox 3 and 4  do not show hand cursors properly in the Flash player.

  • Tab navigation does not show at all in FP 10 it shows in FP9

    Hi,
    I have module that is loaded at runtime,
    it has simple tab navigation with 3 children,
    in FlashPlaer 9 Debug, tab navigation shows fine, even
    thought for some reason it looks like linkbar :)
    also numericStepper looks like inputBox and ComboBox has no
    arrow, (they all look fine in FB 3.2)
    in Flash player 10 tab navigation does not show at all, is
    there any obvious thing that I am missing ?
    I am guessing something terribly wrong with flex styles, but
    I am not overriding any styles,
    my environment :
    vindows Vista 64 bit (although I use jvm 32)
    project is build with latest flex sdk :flex_sdk_3.3.0.4589
    P.S: I cant attach image here, so I will record video
    tomorrow, if that will help.
    thanks in advance
    Levan

    bump :)
    anybody , please please :)

  • Ellipsis ... show in tab of Tab navigator

    Hi guys,
    I'm using a TabNavigator component with static height, width and 3  static tabs. My problem is that the Tab navigator shows ellipsis in the  label of the first tab whereas it clearly looks that it does not lack  any space in tab width. how do i rectify it?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"  layout="absolute" xmlns:local="*">
         <local:WLTabNavigator id="tn" x="83" y="60" width="210"  height="200" paddingBottom="0"
                          horizontalGap="1" tabHeight="18"  tabWidth="{tn.width/3}">
             <mx:Canvas label="Contacts" fontFamily="Arial"  fontSize="10">
             </mx:Canvas>
             <mx:Canvas label="SMS" fontFamily="Arial" fontSize="10">
             </mx:Canvas>
             <mx:Canvas label="Calls" fontFamily="Arial" fontSize="10">
             </mx:Canvas>
         </local:WLTabNavigator>
    </mx:WindowedApplication>

    I think this is working as designed. Your TabNavigator is 210px wide and with three tabs you're setting each tab to roughly 70px wide (give or take a pixel for gaps). If you don't set ANY tabWidth you can see that the first tab ("Contacts") wants to be about 78px, but you're only allowing 69-70px for the label, hence the truncation.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"  layout="horizontal">
        <mx:TabNavigator id="tn1" width="210"  height="100"
                         horizontalGap="1" tabHeight="18" tabWidth="69">
            <mx:Canvas label="Contacts" fontFamily="Arial"  fontSize="10">
                <mx:Label id="lbl1" creationComplete="lbl1.text = tn1.getTabAt(0).width.toString();" />
            </mx:Canvas>
            <mx:Canvas label="SMS" fontFamily="Arial" fontSize="10">
            </mx:Canvas>
            <mx:Canvas label="B" fontFamily="Arial" fontSize="10">
            </mx:Canvas>
        </mx:TabNavigator>
        <mx:TabNavigator id="tn2" width="210"  height="100"
                         horizontalGap="1" tabHeight="18">
            <mx:Canvas label="Contacts" fontFamily="Arial"  fontSize="10">
                <mx:Label id="lbl2" creationComplete="lbl2.text = tn2.getTabAt(0).width.toString();" />
            </mx:Canvas>
            <mx:Canvas label="SMS" fontFamily="Arial" fontSize="10">
            </mx:Canvas>
            <mx:Canvas label="B" fontFamily="Arial" fontSize="10">
            </mx:Canvas>
        </mx:TabNavigator>
    </mx:Application>
    I think a better approach is probably to set the TabNavigator container's internal TabBar to the same width of the TabNavigator and let the tabs resize themselves to fit. This may help get you started:
    <mx:TabNavigator id="tn3" width="210"  height="100"
                     horizontalGap="1" tabHeight="18"
                     resize="event.currentTarget.mx_internal::getTabBar().width = event.currentTarget.width;">
        <mx:Canvas label="Contacts" fontFamily="Arial"  fontSize="10">
            <mx:Label id="lbl3" creationComplete="lbl3.text = tn3.getTabAt(0).width.toString();" />
        </mx:Canvas>
        <mx:Canvas label="SMS" fontFamily="Arial" fontSize="10">
        </mx:Canvas>
        <mx:Canvas label="B" fontFamily="Arial" fontSize="10">
        </mx:Canvas>
    </mx:TabNavigator>
    Or, since it looks like you are already subclassing TabNavigator, you could possibly move the logic into your subclass instead:
    package {
        import mx.containers.TabNavigator;
        import mx.events.ResizeEvent;
        public class ResizerTabNavigator extends TabNavigator {
            public function ResizerTabNavigator() {
                super();
                addEventListener(ResizeEvent.RESIZE, resizeEventListener);
            protected function resizeEventListener(evt:ResizeEvent):void {
                tabBar.width = this.width;
    Hope that helps,
    Peter

  • Show/Hide Navigation Tabs

    I would like to set my document up so that the Navigation panel shows the Pages and Bookmarks tabs, but does not show the Comments and Attachments tabs. Can anyone tell me how to do this?
    Thank you,
    Joseph Skelly

    Please refer the framework page [http://help.sap.com/saphelp_nw70/helpdata/en/02/c7918e9fca44519701c47028a053fd/content.htm|http://help.sap.com/saphelp_nw70/helpdata/en/02/c7918e9fca44519701c47028a053fd/content.htm]
    What i meant was that you can do a custom TLN like this
    [http://help.sap.com/saphelp_nwce711core/helpdata/en/42/fd515a2aa95277e10000000a1553f7/content.htm|http://help.sap.com/saphelp_nwce711core/helpdata/en/42/fd515a2aa95277e10000000a1553f7/content.htm]
    Seems to me java/jsp is more appropriate than doing it via WDA.
    ANother way that you might look into this is Application integrator which again java programming effort needed.

  • Vim Ctrl + Tab for Tabs navigation

    :noremap <silent> <c-Tab> :tabn<CR>
    noremap! <silent> <C-Tab> :tabn<CR>
    This doesn't work for me - any idea why? Ctrl-tab just doesn't shift tabs... I've definitely not bound the combination elsewhere in my .vimrc either.
    - KD
    Last edited by KomodoDave (2007-05-02 02:38:33)

    mosor wrote:
    Here are my tab related settings (that work):
    set showtabline=2 " File tabs allways visible
    :nmap <C-S-tab> :tabprevious<cr>
    :nmap <C-tab> :tabnext<cr>
    :nmap <C-t> :tabnew<cr>
    :map <C-t> :tabnew<cr>
    :map <C-S-tab> :tabprevious<cr>
    :map <C-tab> :tabnext<cr>
    :map <C-w> :tabclose<cr>
    :imap <C-S-tab> <ESC>:tabprevious<cr>i
    :imap <C-tab> <ESC>:tabnext<cr>i
    :imap <C-t> <ESC>:tabnew<cr>
    Thanks for posting, mosor! Sadly your command lines don't work for me either...
    Here's my .vimrc, much of which was cloned from phrakture's :
    """""""""" general options """"""""""
    set nocompatible " Use Vim settings, rather then Vi settings (much better!).
    " This must be first, because it changes other options as a side effect.
    "syntax enable " enable syntax highlighting and keep current colour settings
    syntax on " enable syntax highlighting and override current colour settings
    behave xterm " mouse and selection xterm behaviour
    filetype plugin indent on " filetype dependent indenting and plugins
    set autoindent " indents line relative to the line above it
    set autowrite " automatically write contents of file where sensible
    set backspace=indent,eol,start " allow backspacing over eevrything in insert mode
    set backup backupdir=$HOME/.vim/backup " set backup directory
    set cinoptions=g0,:0,l1,(0,t0 " C indentation options
    set clipboard=unnamed " yank and paste in visual mode without prepending "*
    set cmdheight=1 " cmdline height
    set complete=.,t,i,b,w,k " keyword completion configuration
    set encoding=utf-8 " encoding
    set expandtab " insert spaces instead of tab character
    set formatoptions+=l " add format option preventing lines longer than 'textwidth' being broken
    set guioptions-=T " no toolbar
    set hidden " don't have to save when switching buffers
    set history=100 " cmdline history table size
    "set ignorecase " search is case insensitive when search term is all lower case
    set incsearch " live search while typing search expression
    set laststatus=2 " always display the status line
    set nohlsearch " no highlighting when performing search
    set nowrap " don't wrap visible lines
    set number " precede line with line number when printing
    set pastetoggle=<F9> " toggle paste mode
    set previewheight=5 " preview window size
    "set ruler " show line and column in status line
    set shell=/bin/sh " set the shell to be used
    set shiftwidth=4 " number of spaces used for (auto)indent
    set showcmd " show partial command in status line
    set showmode " show whether in insert, visual mode etc
    set showmatch " indicate matching parentheses, braces etc
    set showtabline=2 " File tabs allways visible
    set shortmess=a " abbreviate file messages
    set smartcase
    set smartindent
    set softtabstop=4 " tab defaults to 4 spaces while performing editing operations
    set splitbelow " split creates new window below current one
    set statusline=%-3.3n\ %f\ %r%#Error#%m%#Statusline#\ (%l/%L,\ %c)\ %P%=%h%w\ %y\ [%{&encoding}:%{&fileformat}]\ \ "status line settings
    set tabstop=4 " tab defaults to 4 spaces
    set textwidth=80 " maximum column width of inserted text - longer lines are broken after whitespace
    set ttyfast " for fast terminals - smoother (apparently)
    set termencoding=utf-8
    set whichwrap=h,l,<,>,[,] " allow line-wrapped navigation
    set wildchar=<Tab> " type tab in cmdline to start wildcard expansion
    set wildmenu " enhanced cmdline completion
    set wildmode=longest:full,full " cmdline completion mode settings
    set writebackup " make a file backup before overwriting it
    " Convenient command to see the difference between the current buffer and the
    " file it was loaded from, thus the changes you made.
    command DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis
    \ | wincmd p | diffthis
    """""""""" keyboard mappings """"""""""
    " Dvorak caret navigation
    :noremap t <Up>
    :noremap h <Down>
    :noremap d <Left>
    :noremap n <Right>
    :noremap k d
    :noremap l n
    :noremap j t
    " Window split and navigation
    :noremap <C-w><S-s> :vsplit<CR>
    :noremap <C-w>t <C-w><Up>
    :noremap <C-w>h <C-w><Down>
    :noremap <C-w>d <C-w><Left>
    :noremap <C-w>n <C-w><Right>
    " Ctrl-s saves
    :inoremap <C-s> <Esc>:w<CR>a
    :nnoremap <C-s> :w<CR>
    " Tab manipulation
    ":noremap <silent> <C-t> :tabnew<cr>
    ":noremap <silent> <C-x> :tabc<cr>
    ":noremap <silent> <C-tab> :tabn<cr>
    ":noremap <silent> <C-s-tab> :tabp<cr>
    "noremap! <silent> <C-t> :tabnew<cr>
    "noremap! <silent> <C-x> :tabc<cr>
    "noremap! <silent> <C-tab> :tabn<cr>
    "noremap! <silent> <C-s-tab> :tabp<cr>
    :nmap <C-S-tab> :tabprevious<cr>
    :nmap <C-tab> :tabnext<cr>
    :nmap <C-t> :tabnew<cr>
    :map <C-t> :tabnew<cr>
    :map <C-S-tab> :tabprevious<cr>
    :map <C-tab> :tabnext<cr>
    :map <C-x> :tabclose<cr>
    :imap <C-S-tab> <ESC>:tabprevious<cr>i
    :imap <C-tab> <ESC>:tabnext<cr>i
    :imap <C-t> <ESC>:tabnew<cr>
    "Key bindings
    noremap <silent> <F1> :Tlist<cr>
    noremap <silent> <F2> :VSBufExplore<cr>
    "noremap <silent> <F3> :Make<cr>
    noremap <silent> <F3> <c-o>:Project<cr>
    noremap <silent> <F6> :set spell!<cr>
    noremap! <silent> <F1> <c-o>:Tlist<cr>
    noremap! <silent> <F2> <c-o>:VSBufExplore<cr>
    "noremap! <silent> <F3> <c-o>:Make<cr>
    noremap! <silent> <F3> <c-o>:Project<cr>
    noremap! <silent> <F6> <c-o>:set spell!<cr>
    " I never use these anyway
    noremap ( :bprev<cr>
    noremap ) :bnext<cr>
    ":inoremap ^] ^[A
    ":inoremap ð ^N
    " Don't use Ex mode, use Q for formatting
    "map Q gq
    """""""""" autocommand stuff """"""""""
    " Only do this part when compiled with support for autocommands.
    if has("autocmd")
    " Enable file type detection.
    " Use the default filetype settings, so that mail gets 'tw' set to 72,
    " 'cindent' is on in C files, etc.
    " Also load indent files, to automatically do language-dependent indenting.
    filetype plugin indent on
    " Put these in an autocmd group, so that we can delete them easily.
    augroup vimrcEx
    au!
    " For all text files set 'textwidth' to 78 characters.
    autocmd FileType text setlocal textwidth=78
    " When editing a file, always jump to the last known cursor position.
    " Don't do it when the position is invalid or when inside an event handler
    " (happens when dropping a file on gvim).
    autocmd BufReadPost *
    \ if line("'\"") > 0 && line("'\"") <= line("$") |
    \ exe "normal! g`\"" |
    \ endif
    augroup END
    else
    set autoindent " always set autoindenting on
    endif " has("autocmd")
    " if autocmd is on
    if has("autocmd")
    " read Ex commands from file if syntax matches
    au Syntax {cpp,c,idl} runtime syntax/doxygen.vim
    au Syntax {cpp,c,lisp,scheme} runtime plugin/RainbowParenthesis.vim
    au FileType qf if &buftype == "quickfix" |
    \ setlocal statusline=%-3.3n\ %0*[quickfix]%=%2*\ %<%P |
    \endif
    au FileType mail setlocal spell
    au FileType cvs setlocal spell
    au FileType help setlocal statusline=%-3.3n\ [help]%=\ %<%P
    " for all files enable cursorline upon entering a window, and disable when
    " leaving
    "au WinEnter * setlocal cursorline
    "au WinLeave * setlocal nocursorline
    au BufReadPost * if line("'\"")>0 && line("'\"")<=line("$")|exe "normal g`\""|endif
    " syntax highlighting for html that permits embedded javascript
    au BufRead *.html set filetype=htmlm4
    " when a PKGBUILD is loaded into a buffer, trigger all sh filetype autocommands
    " this occurs before modelines are read
    au BufRead,BufNewFile PKGBUILD set ft=sh
    " when a .as file is loaded into a buffer,, trigger all actionscript
    " filetype autocommands, and use C indenting rules
    " this occurs before modelines are read
    au BufRead,BufNewFile *.as setlocal ft=actionscript cindent
    " omni functionality
    au FileType css setlocal ofu=csscomplete#CompleteCSS
    au Filetype * if exists('&ofu') && &ofu == "" |
    \ set ofu=syntaxcomplete#Complete |
    \endif
    endif
    """""""""" abbreviations and remaps """"""""""
    ":abbreviate #! #!/usr/bin/env python
    """""""""" other stuff """"""""""
    " vim.org tip 867: get help on python in vim, eg :Pyhelp os
    :command -nargs=+ Pyhelp :call ShowPydoc("<args>")
    function ShowPydoc(module, ...)
    let fPath = "/tmp/pyHelp_" . a:module . ".pydoc"
    :execute ":!pydoc " . a:module . " > " . fPath
    :execute ":sp ".fPath
    endfunction
    "bracket autocompletion
    inoremap ( ()<ESC>i
    inoremap [ []<ESC>i
    inoremap { {<CR>}<ESC>O
    autocmd Syntax html,vim inoremap < <lt>><ESC>i| inoremap > <c-r>=ClosePair('>')<CR>
    inoremap ) <c-r>=ClosePair(')')<CR>
    inoremap ] <c-r>=ClosePair(']')<CR>
    inoremap } <c-r>=CloseBracket()<CR>
    inoremap " <c-r>=QuoteDelim('"')<CR>
    inoremap ' <c-r>=QuoteDelim("'")<CR>
    function ClosePair(char)
    if getline('.')[col('.') - 1] == a:char
    return "\<Right>"
    else
    return a:char
    endif
    endf
    function CloseBracket()
    if match(getline(line('.') + 1), '\s*}') < 0
    return "\<CR>}"
    else
    return "\<ESC>j0f}a"
    endif
    endf
    function QuoteDelim(char)
    let line = getline('.')
    let col = col('.')
    if line[col - 2] == "\\"
    "Inserting a quoted quotation mark into the string
    return a:char
    elseif line[col - 1] == a:char
    "Escaping out of the string
    return "\<Right>"
    else
    "Starting a string
    return a:char.a:char."\<ESC>i"
    endif
    endf
    "folding options
    if has("folding")
    " enable folds
    set foldenable
    " {{{ markers indicate folds
    set foldmethod=marker
    " leave all/most folds open
    set foldlevel=100
    endif
    " if using gvim
    if has('gui_running')
    " allow pasting into other applications after visual selection
    set guioptions+=a
    " use console dialogs instead of popups
    set guioptions+=c
    " don't add tab pages
    set guioptions-=e
    " don't include toolbar
    set guioptions-=T
    " set color scheme
    colors zenburn
    " if running under windows
    if has('win32')
    " set number of columns and lines
    set columns=120
    set lines=60
    " select font
    set guifont=Bitstream_Vera_Sans_Mono:h8:cANSI
    else
    " select font
    set guifont=Bitstream\ Vera\ Sans\ Mono\ 8
    endif
    " if we're in a linux console
    elseif (&term == 'screen.linux') || (&term =~ '^linux')
    " use 8 bit colour
    set t_Co=8
    " set color scheme
    colors desert
    " if we're in xterm, urxvt or screen with 256 colours
    elseif (&term == 'rxvt-unicode') || (&term =~ '^xterm') || (&term =~ '^screen-256')
    " allow mouse in all editing modes
    set mouse=a
    " use xterm mouse behaviour
    set ttymouse=xterm
    " set encoding to uft-8
    set termencoding=utf-8
    " set color scheme
    colors desert256-transparent
    " if we're in a different terminal
    else
    " set color scheme
    colors desert
    endif
    " if we're in screen and autocmd is enabled
    if &term =~ "^screen" && has("autocmd")
    " this fixes background artifacting when leaving vim inside screen
    autocmd VimLeave * :set term=screen
    endif
    let mapleader = "`"
    " cd includes current directory, as well as $HOME and projects folders
    let &cdpath=','.expand("$HOME").','.expand("$HOME").'/projects'
    " if vim version is >= 7
    if v:version >= 700
    " display cursor line
    set cursorline
    " Insert mode completion options
    set completeopt=menu,menuone,longest,preview
    " spellchecker language is US
    set spelllang=en_us
    " spelling suggestions operate on 'fast' mode with max 20 suggestions
    set spellsuggest=fast,20
    " use min 1 column for line number
    set numberwidth=1
    " imma commnt with missspellings, use me tu tesst
    endif
    "set dictionary=/usr/share/dict/words
    " typing q: == :q
    nmap q: :q<cr>
    " typing :Q == :q
    nmap :Q :q<cr>
    " man-page autoreturn after view
    nmap K K<cr>
    iab NDB Author: N David Brown
    "tags files search for a project
    " :FindTags('~/projects/something')
    "command! -nargs=1 -complete=dir FindTags :call ProjectTags(<args>)
    "function! ProjectTags(projectbase)
    "let tfiles = glob("$(find ".a:projectbase." -name tags -print)")
    "let &tags = substitute(tfiles, "\n", ",", "g")
    "endfunction
    "command! -nargs=* Make :call SilentMake(<f-args>)
    "function! SilentMake()
    "let oldsp=&shellpipe
    "setlocal shellpipe=>%s\ 2>&1
    "exe 'silent make '.string(a:000)
    "cwindow
    "set shellpipe=&oldsp
    "redraw! "this screws up the screen sometimes, fix that
    "endfunction
    "Project
    let g:proj_flags = "ibmstg"
    let g:proj_window_width = 35
    "TODO get this working better
    "TagsParser
    "let g:TagsParserLastPositionJump = 1
    "let g:TagsParserCurrentFileCWD = 1
    let g:TagsParserWindowSize = 30
    "let g:TagsParserAutoOpenClose = 1
    "let g:TagsParserSingleClick = 1
    "let g:TagsParserHighlightCurrentTag = 1
    "let g:TagsParserSortType = "line"
    "let g:TagsParserFileReadTag = 1
    "let g:TagsParserFileReadDeleteTag = 1
    "enable the Vim 7.0 options
    if v:version >= 700
    let g:TagsParserCtrlTabUsage = 'tabs'
    "Configure the projects - These have been renamed because the projects I work
    "on at work are not really what is important, but rather the way they are configured.
    let g:TagsParserProjectConfig = {}
    let g:TagsParserProjectConfig['/home/griff/devel/pacman-lib/'] = { 'tagsPath' : '/home/griff/devel/pacman-lib/lib/libalpm/,/home/griff/devel/pacman-lib/src/pacman/' }
    endif
    "TagList
    "let Tlist_Display_Tag_Scope = 1 "ugh...
    let g:Tlist_Display_Prototype = 1
    let g:Tlist_Use_Right_Window = 1
    let g:Tlist_Exit_OnlyWindow = 1
    let g:Tlist_Enable_Fold_Column = 0
    let g:Tlist_Sort_Type = "name"
    let g:Tlist_Compact_Format = 0
    let g:Tlist_File_Fold_Auto_Close = 0
    let g:Tlist_WinWidth = 50
    "VTreeExplorer
    let g:treeExplVertical = 1
    let g:treeExplWinSize = 35
    let g:treeExplDirSort = 1
    "NetRW
    let g:netrw_keepdir = 1
    let g:netrw_winsize = 40
    let g:netrw_alto = 1
    "BufExplorer
    let g:bufExplorerOpenMode=1
    let g:bufExplorerSortBy='mru'
    let g:bufExplorerSplitType='v'
    let g:bufExplorerSplitVertSize = 35
    let g:bufExplorerShowDirectories=1
    "Valgrind
    let g:valgrind_arguments = "--leak-check=yes --num-callers=5000 --time-stamp=yes"
    let g:valgrind_use_horizontal_window = 1
    let g:valgrind_win_height = 7
    "DoxygenToolkit
    let g:DoxygenToolkit_authorName = "Aaron Griffin"
    let g:DoxygenToolkit_briefTag_funcName = "yes"
    "ShowMarks
    let g:showmarks_enable = 0
    let g:showmarks_ignore_type="hmpqr"
    "Buftabs
    let g:buftabs_only_basename = 1
    "Lisp syntax
    "let g:lisp_rainbow = 1
    - KD
    Last edited by KomodoDave (2007-05-04 13:34:16)

  • Inserting tabbed navigation code makes my web page not display in design view..

    Hi everyone..
    I am on Dreamweaver 8 for MAC, and was working on a couple of web pages..these pages included divs and tables. But when I tried inserting a tabbed navigation I found at:
    http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
    In a nutshell, it asked me for step 1 to:
    Step 1: Insert the        below CSS and script into the HEAD section of your page:
    <link rel="stylesheet" type="text/css" href="tabcontent.css" />
    <script type="text/javascript" src="tabcontent.js">
    * Tab Content script v2.2- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    </script>
    The next step was this:
    Step 2: Finally, simply add the below      HTML to where you wish the Tab Content to appear on the page:
    <h3>Demo #1- Basic implementation</h3>
    <ul id="countrytabs" class="shadetabs">
    <li><a href="#" rel="country1" class="selected">Tab 1</a></li>
    <li><a href="#" rel="country2">Tab 2</a></li>
    <li><a href="#" rel="country3">Tab 3</a></li>
    <li><a href="#" rel="country4">Tab 4</a></li>
    <li><a href="http://www.dynamicdrive.com">Dynamic Drive</a></li>
    </ul>
    <div style="border:1px solid gray; width:450px; margin-bottom: 1em; padding: 10px">
    <div id="country1" class="tabcontent">
    Tab content 1 here<br />Tab content 1 here<br />
    </div>
    <div id="country2" class="tabcontent">
    Tab content 2 here<br />Tab content 2 here<br />
    </div>
    <div id="country3" class="tabcontent">
    Tab content 3 here<br />Tab content 3 here<br />
    </div>
    <div id="country4" class="tabcontent">
    Tab content 4 here<br />Tab content 4 here<br />
    </div>
    </div>
    <script type="text/javascript">
    var countries=new ddtabcontent("countrytabs")
    countries.setpersist(true)
    countries.setselectedClassTarget("link") //"link" or "linkparent"
    countries.init()
    </script>
    <p><a href="javascript:countries.cycleit('prev')" style="margin-right: 25px; text-decoration:none">Back</a> <a href="javascript: countries.expandit(3)">Click here to select last tab</a> <a href="javascript:countries.cycleit('next')" style="margin-left: 25px; text-decoration:none">Forward</a></p>
    <hr />
    Well, I did all the steps required, but when I put this inside a div I had inside a table, all of a sudden I couldnt see anything in my design view, only two tables that arent even the same size..When I take out all this code, I get back my regular page..Can I see this tabbed navigation in my design view? Unfortunately, I dont have the spry widgets since I am on Dreamweaver 8..If I preview it in both Safari and Firefox (on Mac Firefox/3.0.8) (Safari 3.2.1) I can see everything fine, including the tabbed navigation..But designing in code isnt really helpful because I want to see what it looks like in design view, in case we change things-its just easier for me to work on..So I assume there is something in this code that is making my design view show nothing..
    Update:I tried taking out the code again, but this time, I couldnt see anything again, even without this code..
    I know that I can go to validation website, and I got a lot of errors-but all the pages I have that are in the same style have those same errors too—and they display fine..its only when I insert this specific piece of code that everything goes haywire..Is it even possible to view tabbed navigations (like the one in the above link) inside of Dreamweaver Design View?
    Any help would be appreciated..

    DW8 doesn't render any dynamic content, so I'd say it's a no go. You'll just have to live with that limitation or upgrade to CS4...
    Mylenium

  • Double click on the left arrow on the tab bar creates a New Tab at the right hand end.

    With Firefox 29.0.1 double clicking on either the left or right hand arrows in the tab bar creates a new tab at the right hand end of the tab bar. This is annoying behaviour that violates standards around UI design single click and double click. A double click should extend the behaviour of the single click rather than doing something completely different (opening a new tab). An example would be , in Word a single click selects a word, a double click selects the sentence and a triple click selects the paragraph. Note that this is a separate issue from double clicking on the tab bar itself to create a new tab.
    When there are more tabs on the tab bar than will fit in the viewport the tabs scroll sideways so show the tab in use. I can click the left and right arrows at the ends of the tab bar to scroll the bar in that direction to bring a tab that I want to select into view. I believe that double clicking the left arrow would scroll the bar fully right, exposing the left-most tab. Double clicking the right arrow would scroll the bar fully left exposing the right-most tab.
    This is a logical and expected extension of the behaviour of the single click. Single click - scroll once (seems to be about three tab's worth), double click - scroll all the way.
    At the moment, if I want to scroll to the left-most tab I have to click the arrow slowly and carefully until I reach it. I used to single click rapidly on the left arrow until the tabs stopped scrolling without having to count how many clicks. It's possible that my rapid single clicks were actually double clicks. Nevertheless, the tab bar would stop scrolling when it reached the end.
    Now the behaviour is really annoying and unexpected. A double click on the left arrow scrolls the tabs fully right and then fully left and creates a New Tab at the right hand end. Ditto the right hand arrow in the opposite direction.
    While I can (maybe) see that value of a double click on the tab bar itself creating a new tab, double clicking one of the scroll arrows should not produce a new tab.
    Double clicks on the tab arrows should scroll the tab bar fully to that end. If the tab bar is already fully scrolled to that end then additional clicks (single, double and triple...) should be ignored.
    I like the idea of opening a new tab to the right of the one that currently has focus. This should be a right click context menu option.

    That shouldn't happen if you click the scroll buttons on the tab bar.
    A double-click should act as page up/down and move a full screen and a triple-click should move to the far left (first tab) or the far right (last) tab.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How do I force all Tabs to the right hand side, leaving space on the left?

    It feels more intuitive to have the first tab against the right hand side and it's easier to find because it always remains in the same position when, eg, closing other tabs. I use TabMixPlus, but can't find the required option. Many thanks.

    You can check out code in the userChrome.css file to see that it doesn't really work well (tabs move around when you hover or click).
    Add code to the <b>userChrome.css</b> file below the default @namespace line.
    *http://kb.mozillazine.org/userChrome.css
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #tabbrowser-tabs tab:first-child {-moz-box-ordinal-group:2}
    </nowiki></pre>
    The customization files userChrome.css (user interface) and userContent.css (websites) are located in the <b>chrome</b> folder in the Firefox profile folder.
    *http://kb.mozillazine.org/Editing_configuration
    You can use this button to go to the currently used Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    * Create the chrome folder (lowercase) in the <xxxxxxxx>.default profile folder if this folder doesn't exist
    * Use a plain text editor like Notepad to create a (new) userChrome.css file in this folder (the names are case sensitive)
    * Paste the code in the userChrome.css file in the editor window and make sure that the userChrome.css file starts with the default @namespace line
    * Make sure that you select "All files" and not "Text files" when you save the file via "Save file as" in the text editor as userChrome.css.<br>Otherwise Windows may add a hidden .txt file extension and you end up with a not working userChrome.css.txt file

Maybe you are looking for