I need to Browse a MySql table in Read only mode.
oCn :=maria_Connect( cHost,cUser,cDb,cPwd )
cQuery:="SELECT * FROM EVENTOS"
oTb:=oCn:RowSet( cQuery,.t. )
xbrowser oTb TITLE "Eventos "
oCn:Close()
Works and is readonly but the ADD + EDIT and DELETE Icons are shown at the top of the Browse although the do'nt do anything.
Is there an easy way to hide them?
Eliminate Editing Icons XBROWSE MySql
- nageswaragunupudi
- Posts: 10691
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Eliminate Editing Icons XBROWSE MySql
Code: Select all | Expand
XBROWSER oTb TITLE "Eventos" SETUP ;
oBrw:oWnd:bInit := { |Self| ::oBar:Del( 5 ), ::oBar:Del( 5 ), ::oBar:Del( 5 ) }
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Eliminate Editing Icons XBROWSE MySql
Thankyou sir it works your a genius.
Kind Regards
Paul
Kind Regards
Paul
Re: Eliminate Editing Icons XBROWSE MySql
Hi Paul,
please be aware of double clicks inside xbrowse which will start editing.
Regards, Detlef
please be aware of double clicks inside xbrowse which will start editing.
Regards, Detlef
- nageswaragunupudi
- Posts: 10691
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Eliminate Editing Icons XBROWSE MySql
Detlef wrote:Hi Paul,
please be aware of double clicks inside xbrowse which will start editing.
Regards, Detlef
Code: Select all | Expand
XBROWSER aData SETUP ( ;
oBrw:oWnd:bInit := { |Self| ::oBar:Del( 5 ), ::oBar:Del( 5 ), ::oBar:Del( 5 ) }, ;
oBrw:bLDblClick := nil )
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Eliminate Editing Icons XBROWSE MySql
Thanks for the advice.
Double Click does open the edit screen but editing is disabeld because of the .t. in oTb:=oCn:RowSet( cQuery,.t. )
Double Click does open the edit screen but editing is disabeld because of the .t. in oTb:=oCn:RowSet( cQuery,.t. )
- nageswaragunupudi
- Posts: 10691
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Eliminate Editing Icons XBROWSE MySql
Using the code in my second posting, double click will not any more open edit screen.PAUL SIMM wrote:Thanks for the advice.
Double Click does open the edit screen but editing is disabeld because of the .t. in oTb:=oCn:RowSet( cQuery,.t. )
Better you use this version.
Note: Dbl-click to open edit screen is not a feature of basic xbrowse. It is a functionality provided by xbrowser. We can disable it as I have advised in the code.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India