Calender-Object
Properties
dw=dw_x |
set the Datawindow (dw_1, dw_2 ... dw_6). In this Datawindow the calendar is painted example: paint the calender in dw_2 declare=ikl=ue_calendar ikl=dw=dw_2 ... ikl.redraw |
x, y, width, height |
Koordinates |
xscript,yscript,widthscript,heightscript |
enable automatic-Resize with this placeholder. Accent %-Functions! ikl.widthscript=%sub(<window.width>,60)
You can set the dynamic-Koordinate xscript/yscript: min = minimal value widthscript/heightscript: max = maximal value, center = total width - 2* x
Example: ikl.x=10 ikl.widthscript=center
the coordinate is a reference to the
|
reftotab=(tab-Objectname) |
set a coordinate-reference to the tab (ue_tab) example declare=ikl=ue_calendar declare=ue_tab=etab ikl.reftotab=etab ikl.reftotabpage=<tab-name> now x from ikl = <etab.clientx>, y from ikl = <etab.clienty> and display the calender only, if the tabpage is activ |
reftotabpage=<tabpage-name> |
set the tabpage-name, in which the calender is visible. See reftotab. |
header1 |
S=Standard (Display month and Year), other=disable |
header2 |
S=Standard (Display the weekday-Name), other=disable |
grid |
Set the Grid dynamic (Standard) = dynamicikl 0 .. 99 = PB-Pixel Example: Set grid to 10 Pixel ikl.grid=10 |
displaycursor=true/false |
mark day with a red rectangle |
displaytoday=true/false |
mark today with a blue rectangle |
border=r/no |
border=r (default): draw a border around the calendar border=no: disable the border |
bordercolor=<rgb:red:green:blue> |
set the bordercolor |
clickcommand |
set the command for Click on a day |
Info Datastore
sqlfontcolor |
define a info datastore
You can create an info datastore. This is linked to the current date as field dateid in format yyyymmdd Example: cast(to_Varchar(`BEAS_RESOURCEN`.`VON`,'YYYYMMDD' ) as char(8))
You can define 3 text fields per day and a tooltip |
The datastore can return follow information
info,info2 |
First and second text field Return can be every format Decimal: beas use #0.0 or the format which you define with "infoformat" if you set a infocompute expression, beas ignore this. |
infotag |
set a info tag information (string) |
tooltip |
return a tooltip, if you don't overwrite this with tooltipcompute (String) |
italic, height, weight, color |
set the additional properties for the text information (return: Number/Decimal) |
Other solution is, you define this as compute field, which have access to all fields in the datastore
All compute fields must return string. Don't use ". Exmple Color: string(255)
Correct: 'Hello' or 33
Wring: "Hello" or string (33)
ikl.infocompute='('+info+')'
ikl.infocompute=if(qty>qty2 and qty>0,info,'')
infodata |
set the info data store, linked to the calendar
|
infoformat, info2format, info3format |
Format of number, if the return field is a number |
infocompute, info2compute, info3compute |
Create a result from a formular field Return result must be a string |
infocolor, info2color, info3color |
set the color font |
infocolorcompute, info2colorcompute, info3colorcompute |
set the color as formular |
infoweight, info2weight, info3weight |
set the weight |
infoheight, info2height, info3height |
set the height of the font |
infoitalic, info2italic, info3intalic |
set italic 0/1 |
infobackground, info2background, info3background |
set the background color |
tooltipcompute |
set tooltip as compute field |
toolComputeRows |
additional tooltip |
Function
declare |
declare this object |
disable |
delete the calendar-view and disable the view |
enable |
enable the view without redraw |
destroy |
disable the view and destroy the object |
setdate |
set the current date without redraw |
jumptodate=<date> |
springt zu dem angegebenen Datum und baut kalender neu auf |
monthbefore |
select the month before and make a redraw |
monthnext |
select the next month and make a redraw |
redraw |
draw the calendar (without disable dw_x.redraw) |
redrawfast |
draw the calender (first setredraw(false) - redraw calendar - setredraw(true)) |
setday=date=x,y,width,height |
set the cursor to this date and Position (if you click on a day, beas send this command automatically) |
setplaceholder |
set placeholder for sqlfontcolor @3, @4 ... @10 ikl.setplaceholder=@3=<today,dbdate>
|