Datawindow Hover For Row


Window Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
forward global type w_main from window end type type dw_1 from datawindow within w_main end type end forward global type w_main from window string tag = "Change Datawindow Row Color At Mouse Move / Mouse Over" integer width = 1550 integer height = 1752 boolean titlebar = true string title = "Datawindow Hover For Row" boolean controlmenu = true boolean minbox = true long backcolor = 67108864 string icon = "AppIcon!" boolean center = true dw_1 dw_1 end type global w_main w_main type variables int li_xpos , li_ypos , li_prev_xpos , li_prev_ypos end variables on w_main.create this.dw_1=create dw_1 this.Control[]={this.dw_1} end on on w_main.destroy destroy(this.dw_1) end on type dw_1 from datawindow within w_main event mousemove pbm_mousemove integer x = 37 integer y = 32 integer width = 1463 integer height = 1600 integer taborder = 10 string title = "none" string dataobject = "d_dataex" boolean hscrollbar = true boolean vscrollbar = true boolean livescroll = true borderstyle borderstyle = stylelowered! end type event mousemove; String ls_band_name Integer li_previousrownum,li_rowNum li_xpos = xpos li_ypos = ypos If li_prev_xpos = xpos And li_prev_ypos = ypos Then Return Else li_prev_xpos = xpos li_prev_ypos = ypos End If ls_band_name = This.GetBandAtPointer() If Pos(ls_band_name, "detail") > 0 Then li_rowNum = Integer( Mid( ls_band_name, 7)) If li_rowNum = li_previousrownum Or li_rowNum <= 0 Then Return Else // YOU CHANGE YOUR OWN COLOR In RGB(--,--,--) This.Modify('datawindow.detail.color="0~tif(getRow()=' + String(li_rowNum) + ',RGB(241,240,146) ,'+This.Object.DataWindow.Color+')"' ) li_previousrownum = li_rowNum End If //Return End If end event |
Datawindow Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
release 10.5; datawindow(units=0 timer_interval=0 color=67108864 processing=1 HTMLDW=no print.printername="" print.documentname="" print.orientation = 0 print.margin.left = 110 print.margin.right = 110 print.margin.top = 96 print.margin.bottom = 96 print.paper.source = 0 print.paper.size = 0 print.canusedefaultprinter=yes print.prompt=no print.buttons=no print.preview.buttons=no print.cliptext=no print.overrideprintjob=no print.collate=yes print.preview.outline=yes hidegrayline=no grid.lines=0 selected.mouse=no ) header(height=84 color="536870912" ) summary(height=92 color="536870912" ) footer(height=0 color="536870912" ) detail(height=92 color="536870912" ) table(column=(type=char(10) updatewhereclause=yes name=col1 dbname="col1" ) column=(type=char(10) updatewhereclause=yes name=col2 dbname="col2" ) column=(type=char(10) updatewhereclause=yes name=col3 dbname="col3" ) column=(type=number updatewhereclause=yes name=col4 dbname="col4" ) column=(type=number updatewhereclause=yes name=col5 dbname="col5" ) ) data("cola1","colb1","colc1", 1, 1,"cola2","colb2","colc2", 2, 2,"cola3","colb3","colc3", 3, 3,"cola4","colb4","colc4", 4, 4,"cola5","colb5","colc5", 5, 5,"cola6","colb6","colc6", 6, 6,"cola7","colb7","colc7", 7, 7,"cola8","colb8","colc8", 8, 8,"cola9","colb9","colc9", 9, 9,"cola10","colb10","colc10", 10, 10,"cola11","colb11","colc11", 11, 11,"cola12","colb12","colc12", 12, 12,"cola13","colb13","colc13", 13, 13,"cola14","colb14","colc14", 14, 14,"cola15","colb15","colc15", 15, 15,"cola16","colb16","colc16", 16, 16,"cola17","colb17","colc17", 17, 17,"cola18","colb18","colc18", 18, 18,"cola19","colb19","colc19", 19, 19,"cola20","colb20","colc20", 20, 20,"cola21","colb21","colc21", 21, 21,"cola22","colb22","colc22", 22, 22,"cola23","colb23","colc23", 23, 23,"cola24","colb24","colc24", 24, 24,"cola25","colb25","colc25", 25, 25,"cola26","colb26","colc26", 26, 26,"cola27","colb27","colc27", 27, 27,"cola28","colb28","colc28", 28, 28,"cola29","colb29","colc29", 29, 29,"cola30","colb30","colc30", 30, 30,) text(band=header alignment="2" text="Col1" border="6" color="33554432" x="14" y="8" height="64" width="274" html.valueishtml="0" name=col1_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) text(band=header alignment="2" text="Col2" border="6" color="33554432" x="302" y="8" height="64" width="274" html.valueishtml="0" name=col2_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) text(band=header alignment="2" text="Col3" border="6" color="33554432" x="590" y="8" height="64" width="274" html.valueishtml="0" name=col3_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) text(band=header alignment="2" text="Col4" border="6" color="33554432" x="878" y="8" height="64" width="219" html.valueishtml="0" name=col4_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) text(band=header alignment="2" text="Col5" border="6" color="33554432" x="1111" y="8" height="64" width="219" html.valueishtml="0" name=col5_t visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) compute(band=summary alignment="1" expression="sum(col4 for all)"border="0" color="33554432" x="873" y="4" height="64" width="224" format="[general]" html.valueishtml="0" name=compute_1 visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) compute(band=summary alignment="1" expression="sum(col5 for all)"border="0" color="33554432" x="1106" y="4" height="64" width="224" format="[general]" html.valueishtml="0" name=compute_2 visible="1" font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="2" background.color="67108864" ) column(band=detail id=1 alignment="0" tabsequence=10 border="0" color="33554432" x="14" y="8" height="76" width="274" format="[general]" html.valueishtml="0" name=col1 visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=2 alignment="0" tabsequence=20 border="0" color="33554432" x="302" y="8" height="76" width="274" format="[general]" html.valueishtml="0" name=col2 visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=3 alignment="0" tabsequence=30 border="0" color="33554432" x="590" y="8" height="76" width="274" format="[general]" html.valueishtml="0" name=col3 visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=4 alignment="1" tabsequence=40 border="0" color="33554432" x="878" y="8" height="76" width="219" format="[general]" html.valueishtml="0" name=col4 visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) column(band=detail id=5 alignment="1" tabsequence=50 border="0" color="33554432" x="1111" y="8" height="76" width="219" format="[general]" html.valueishtml="0" name=col5 visible="1" edit.limit=0 edit.case=any edit.focusrectangle=no edit.autoselect=yes edit.autohscroll=yes font.face="Tahoma" font.height="-10" font.weight="400" font.family="2" font.pitch="2" font.charset="0" background.mode="1" background.color="553648127" ) htmltable(border="1" ) htmlgen(clientevents="1" clientvalidation="1" clientcomputedfields="1" clientformatting="0" clientscriptable="0" generatejavascript="1" encodeselflinkargs="1" netscapelayers="0" pagingmethod=0 generatedddwframes="1" ) xhtmlgen() cssgen(sessionspecific="0" ) xmlgen(inline="0" ) xsltgen() jsgen() export.xml(headgroups="1" includewhitespace="0" metadatatype=0 savemetadata=0 ) import.xml() export.pdf(method=0 distill.custompostscript="0" xslfop.print="0" ) export.xhtml() |
Find Projects On Github click here
Good Luck!
Subscribe
Login
0 Comments
Oldest