Freeform Data Window column for PB put on a colored coat

Source: Internet
Author: User
Tags border color integer

PB in the Data Window column border style only a few, if you want the border color is colored there is no way. In fact, you can use dynamic create rectangle, change the border color of the Data window column, applicable to free format (do not need to wear a coat of the column tag value set to 0).

Global type Gf_setbordercolor from Function_objectend
Typeforward Prototypesglobal subroutine Gf_setbordercolor
(DataWindow ADW, long al_bodercolor) End Prototypesglobal
Subroutine Gf_setbordercolor (DataWindow ADW,
Long Al_bodercolor);//rectangle (Band=detail x= "599")
y= "height=" "Width=" name=r_1
Brush.hatch= "7" brush.color= "1627389951"
"pen.style=" 0 "pen.width=" 5 "
Pen.color= "8421376" background.mode= "1"
Background.color= "553648127") Integer
istring Ls_syntaxfor i = 1 to Integer
(ADW. Object.DataWindow.Column.Count) If
Adw. Describe ("#" +string (i) + ". Visible ") = ' 1 '
and ADW. Describe (ls_objects[i]+ ". Tag")
<> ' 0 ' thenls_syntax + + ' Create rectangle
(band= "+ADW.") Describe ("#" +string (i) + ". Band ")
+ "" Ls_syntax + = ' x= "' + String (Integer
(ADW. Describe ("#" +string (i) + ". X "))-4)
+ ' "' ls_syntax + = ' y= ' + String (Integer
(ADW. Describe ("#" +string (i) + ". Y "))-4)
+ ' "' ls_syntax + = ' height= ' + String
(Integer (ADW. Describe ("#" +string (i) + ". Height ")) + 8)
+ ' "' ls_syntax + = ' width= ' + String
(Integer (ADW. Describe ("#" +string (i) + ". Width ")) + 8)
+ ' "' ls_syntax + = ' name=rborder_ ' + ADW. Describe
("#" +string (i) + ". Name ") Ls_syntax + = '
Brush.hatch= "7" brush.color= "1627389951"
pen.style= "0" pen.width= "5"
Pen.color= "' +string (Al_bodercolor)
+ ' "background.mode=" 1 "background.color=" 553648127 ")
' End Ifnextadw.modify
(Ls_syntax) End subroutine

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.