Go Back   Rhinocerus > Newsgroup > Newsgroup comp.lang.* 1 > Newsgroup comp.lang.clipper.visual-objects

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-13-2011, 11:16 AM
Lu
Guest
 
Posts: n/a
Default Color caption in bBrowser

Hi VO experts!

Since I changed from VO 2.7 and bBrowser 1.5 to VO 2.8 and bBrowser 3
the caption row is completely colored with no lines between the
columns. In VO 2.7 there are vertical lines between the columns and it
is better to read.

The grid is set to Auto and the Grid in Empty Area is set to TRUE.

The code for coloring the caption ist following:

oColumn := oBrowser:GetColumn("Ank")
IF oColumn <> NULL_OBJECT
oColumn:Alignment := BALIGN_CENTER
oColumn:Caption := "Ank"
oColumn:CaptionView :=
bViewStyle{Color{COLORBLACK},Brush{cFarbe},BALIGN_ CENTER,,}
oColumn:Width := 36
ENDIF

oBrowser:Recalculate()
oBrowser:Redraw()

I noticed if the bBrowser is set to disable the color ist gone and the
vertical lines are visible.

Has somebody an idea how do I get the vertical lines back?

Lu



Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

  #2 (permalink)  
Old 10-13-2011, 12:13 PM
Willie Moore
Guest
 
Posts: n/a
Default Re: Color caption in bBrowser

Lu,

You might want to experiment with the AlphaBlend. That is something that
changed between bBrowser 1.5 and 3.

SELFDCbBrowser1:AlphaBlendRatio := 100 // solid

Regards,
Willie

Reply With Quote
  #3 (permalink)  
Old 10-25-2011, 05:31 AM
Joachim Bieler
Guest
 
Posts: n/a
Default Re: Color caption in bBrowser

Hi Lu,

did you have the same problem with one of the bBrowser sample application (e.g. 'bSample -
FieldChoice.aef'), if you adapt this application with your code? I have do this and can't see any
problems.

Does the problem exist if you add the following code to your application?

oBrowser:AlphaBlendRatio := BABR_NONE
oBrowser:Redraw()

Can you send me a screen shot of the problematic bBrowser?

Regards,
Joachim Bieler



Am 13.10.2011 13:16, schrieb Lu:
> Hi VO experts!
>
> Since I changed from VO 2.7 and bBrowser 1.5 to VO 2.8 and bBrowser 3
> the caption row is completely colored with no lines between the
> columns. In VO 2.7 there are vertical lines between the columns and it
> is better to read.
>
> The grid is set to Auto and the Grid in Empty Area is set to TRUE.
>
> The code for coloring the caption ist following:
>
> oColumn := oBrowser:GetColumn("Ank")
> IF oColumn<> NULL_OBJECT
> oColumn:Alignment := BALIGN_CENTER
> oColumn:Caption := "Ank"
> oColumn:CaptionView :=
> bViewStyle{Color{COLORBLACK},Brush{cFarbe},BALIGN_ CENTER,,}
> oColumn:Width := 36
> ENDIF
>
> oBrowser:Recalculate()
> oBrowser:Redraw()
>
> I noticed if the bBrowser is set to disable the color ist gone and the
> vertical lines are visible.
>
> Has somebody an idea how do I get the vertical lines back?
>
> Lu
>
>
>

Reply With Quote
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT. The time now is 01:55 AM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.