To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=80940





------- Additional comments from [EMAIL PROTECTED] Wed Aug 29 14:11:23 +0000 
2007 -------
I thought it was more complex. Reading the sources it seems we have
only to call EnableEntryEditing( FALSE )

If so, look the "fix". If it works, I can not
tell you: I read the source in my IDE, but haven't even try to set my
environment to compile, and as for I heard, it takes a lot to make
things work.

As you said, a missing initialization of bEntryEditingEnabled:

Source: svtools/source/contnr/imivctl*

Class: SvxIconChoiceCtrl_Impl

Member: BOOL bEntryEditingEnabled

Uses:
void EnableEntryEditing( BOOL bEnable ) { bEntryEditingEnabled = bEnable; }
BOOL IsEntryEditingEnabled() const { return bEntryEditingEnabled; }
BOOL IsEntryEditing() const { return (BOOL)(pCurEditedEntry!=0); }
void EditEntry( SvxIconChoiceCtrlEntry* pEntry );
void StopEntryEditing( BOOL bCancel );


To fix the bug, just initialize the member with EnableEntryEditing( BOOL bEnable
) and pass to the parameter bEnable a
FALSE argument:

EnableEntryEditing( FALSE );

Was this be so simple to fix ??!!!

============================================================================================

BUG FIX: dbaccess/source/ui/app/AppIconControl.cxx:



OApplicationIconControl::OApplicationIconControl(Window* _pParent)
    : SvtIconChoiceCtrl(_pParent,WB_ICON | WB_NOCOLUMNHEADER |
WB_HIGHLIGHTFRAME | /*!WB_NOSELECTION |*/
                                WB_TABSTOP | WB_CLIPCHILDREN | WB_NOVSCROLL |
WB_SMART_ARRANGE |
WB_NOHSCROLL | WB_CENTER)
    ,DropTargetHelper(this)
    ,m_pActionListener(NULL)
{
      DBG_CTOR(OApplicationIconControl,NULL);

    typedef ::std::pair< USHORT,USHORT> TUSHORTPair;
    typedef ::std::pair< ElementType,TUSHORTPair> TUSHORT2Pair;
    typedef ::std::pair< String,TUSHORT2Pair> TPair;
    static const TPair pTypes[] = {
       
TPair(String(ModuleRes(RID_STR_TABLES_CONTAINER)),TUSHORT2Pair(E_TABLE,TUSHORTPair(IMG_TABLEFOLDER_TREE_L,IMG_TABLEFOLDER_TREE_LHC)

))
        ,
TPair(String(ModuleRes(RID_STR_QUERIES_CONTAINER)),TUSHORT2Pair(E_QUERY,TUSHORTPair(IMG_QUERYFOLDER_TREE_L,IMG_QUERYFOLDER_TREE_LHC))

)
        ,
TPair(String(ModuleRes(RID_STR_FORMS_CONTAINER)),TUSHORT2Pair(E_FORM,TUSHORTPair(IMG_FORMFOLDER_TREE_L,IMG_FORMFOLDER_TREE_LHC))

)
        ,
TPair(String(ModuleRes(RID_STR_REPORTS_CONTAINER)),TUSHORT2Pair(E_REPORT,TUSHORTPair(IMG_REPORTFOLDER_TREE_L,IMG_REPORTFOLDER_TREE_LHC))

)
        };

    for (size_t i=0; i < sizeof(pTypes)/sizeof(pTypes[0]); ++i)
    {
        SvxIconChoiceCtrlEntry* pEntry =
InsertEntry(pTypes[i].first,Image(ModuleRes(pTypes[i].second.second.first)),Image(ModuleRes(pTypes[i].second.second.second)));
        if ( pEntry )
            pEntry->SetUserData(new ElementType(pTypes[i].second.first));
    }

    SetChoiceWithCursor( TRUE );
    SetSelectionMode(SINGLE_SELECTION);
    // Can this be so simple to fix??!!
    EnableEntryEditing( FALSE );
}

===============================================================================================



It seems you people from dbaccess were not the only one who forgot to
initialize this member: look the pictures attached.
In these cases the label becomes editable also:



******************************************************************************************
Dialog dispatched by the menu entry "File" -> "New" -> "Templates and
Documents"

Source code: svtools/source/contnr/templwin.*

Class: SvtIconWindow_Impl

**********************************************************************************************
Dialog dispatched by the menu "Insert" -> "Hyperlink"

Source code:  svx/source/dialog/cuihyperdlg.*

Class: SvxHpLinkDlg

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to