Possible, a "DISABLE"-look for xBrowse > solved

Possible, a "DISABLE"-look for xBrowse > solved

Postby ukoenig » Mon Sep 08, 2008 8:42 am

Hello,

i use xBrowse as a pick-list for color-selections and more
on different folder-pages.
Is there a easy way, to change the complete look of a browser,
( maybe change to a pale color ) the user can see, that this selection is disabled ?
If i do oBrw:Disable(), the user doesn't know, that he cannot
use the browser, because the browser is clearly visible.
A solution could be, changing the browser-background to red.

A sample :
Because of setting : NO Gradient, the 2. Gradient-Color and the
Click-Color for Gradient, is disabled.

Image

Any solutions ?

Regards
Uwe :lol:
Last edited by ukoenig on Mon Sep 08, 2008 1:51 pm, edited 3 times in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

How to show a Browser < disabled >

Postby ukoenig » Mon Sep 08, 2008 1:36 pm

Hello,

here is a solution, to show a browser < DISABLED >
The browser is shown complete in light-grey with black text
After enable again, you have to restore the old values.
If you use Gradient-header/footer, dont forget to set
==> obrw:l2007 := .T. if you ENABLE again.

Code: Select all  Expand view  RUN

FUNCTION BRW_DISABL(oLbx0)

oLbx0:bClrGrad := NIL // Switch off Color-Gradient if used
oLbx0:l2007 := .F. // Switch off Color-Gradient if used
i := 1
FOR i := 1 TO LEN(oLbx0:aCols)
   WITH OBJECT oLbx0:aCols[i]
      :bClrHeader := { || { 0, 13750737 } }
      :bClrFooter := { || { 0, 13750737 } }
      :bClrStd = { || { 0, 13750737 } }
   END
NEXT

oLbx0:Refresh()

RETURN( NIL )



A sample :

Enabled :

Image

Disabled :

Image

Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 105 guests