ProcessViewBrowser-ServerProgramming
Macros | Functions
Output

Macros

#define pvSetColumnWith   pvSetColumnWidth
 

Functions

int pvSetCaption (PARAM *p, const char *text)
 
int pvPlaySound (PARAM *p, const char *filename)
 
int pvBeep (PARAM *p)
 
int pvStatusMessage (PARAM *p, int r, int g, int b, const char *format,...)
 
int pvToolTip (PARAM *p, int id, const char *text)
 
int pvSetTextEx (PARAM *p, int id, const char *text, int option)
 
int pvSetText (PARAM *p, int id, const char *text)
 
int pvPrintf (PARAM *p, int id, const char *format,...)
 
int pvSetStyleSheet (PARAM *p, int id, const char *text)
 
int pvPrintfStyleSheet (PARAM *p, int id, const char *format,...)
 
int pvSetMinValue (PARAM *p, int id, int value)
 
int pvSetMaxValue (PARAM *p, int id, int value)
 
int pvSetValue (PARAM *p, int id, int value)
 
int pvClear (PARAM *p, int id)
 
int pvChangeItem (PARAM *p, int id, int index, const char *bmp_file, const char *text, int download_icon=1)
 
int pvInsertItem (PARAM *p, int id, int index, const char *bmp_file, const char *text, int download_icon=1)
 
int pvRemoveItem (PARAM *p, int id, int index)
 
int pvRemoveItemByName (PARAM *p, int id, const char *name)
 
int pvAddColumn (PARAM *p, int id, const char *text, int size)
 
int pvRemoveAllColumns (PARAM *p, int id)
 
int pvSetTableText (PARAM *p, int id, int x, int y, const char *text)
 
int pvSetTableButton (PARAM *p, int id, int x, int y, const char *text)
 
int pvSetTableCheckBox (PARAM *p, int id, int x, int y, int state, const char *text)
 
int pvSetTableComboBox (PARAM *p, int id, int x, int y, int editable, const char *textlist)
 
int pvSetTableLabel (PARAM *p, int id, int x, int y, const char *text)
 
int pvTablePrintf (PARAM *p, int id, int x, int y, const char *format,...)
 
int pvSetTableTextAlignment (PARAM *p, int id, int x, int y, int alignment)
 
int pvMysqldump (PARAM *p, int id, const char *command)
 
int pvCSVdump (PARAM *p, int id, const char *filename, char delimitor='\t')
 
int pvCSVcreate (PARAM *p, const char *command, const char *filename)
 
int pvCSV (PARAM *p, int id, const char *command, char delimitor='\t')
 
int pvSetListViewText (PARAM *p, int id, const char *path, int column, const char *text)
 
int pvListViewPrintf (PARAM *p, int id, const char *path, int column, const char *format,...)
 
int pvListViewSetSelected (PARAM *p, int id, const char *path, int column, int selected)
 
int pvListBoxSetSelected (PARAM *p, int id, int index, int selected)
 
int pvSetColumnWidth (PARAM *p, int id, int column, int width)
 
int pvSetRowHeight (PARAM *p, int id, int row, int height)
 
int pvSetWordWrap (PARAM *p, int id, int wrap)
 
int pvSetPixmap (PARAM *p, int id, const char *bmp_file, int download_icon=1)
 
int pvSetTablePixmap (PARAM *p, int id, int x, int y, const char *bmp_file, int download_icon=1)
 
int pvSetSource (PARAM *p, int id, const char *html_file)
 
int pvSetImage (PARAM *p, int id, const char *filename, int rotate=0)
 
int pvSetBufferedJpgImage (PARAM *p, int id, const unsigned char *buffer, int buffersize, int rotate=0)
 
int pvSetBufferTransparency (PARAM *p, int id, int a)
 
int pvSetBackgroundColor (PARAM *p, int id, int r, int g, int b)
 
int pvSetPaletteBackgroundColor (PARAM *p, int id, int r, int g, int b)
 
int pvSetPaletteForegroundColor (PARAM *p, int id, int r, int g, int b)
 
int pvSetFontColor (PARAM *p, int id, int r, int g, int b)
 
int pvSetFont (PARAM *p, int id, const char *family, int pointsize, int bold, int italic, int underline, int strikeout)
 
int pvDisplayNum (PARAM *p, int id, int num)
 
int pvDisplayFloat (PARAM *p, int id, float val)
 
int pvDisplayStr (PARAM *p, int id, const char *str)
 
int pvAddTab (PARAM *p, int id, int id_child, const char *str)
 
int pvSetListViewPixmap (PARAM *p, int id, const char *path, const char *bmp_file, int column, int download_icon=1)
 
int pvRemoveListViewItem (PARAM *p, int id, const char *path)
 
int pvRemoveIconViewItem (PARAM *p, int id, const char *text)
 
int pvSetIconViewItem (PARAM *p, int id, const char *bmp_file, const char *text, int download_icon=1)
 
int pvSetDateOrder (PARAM *p, int id, int order)
 
int pvSetDate (PARAM *p, int id, int year, int month, int day)
 
int pvSetMinDate (PARAM *p, int id, int year, int month, int day)
 
int pvSetMaxDate (PARAM *p, int id, int year, int month, int day)
 
int pvSetTime (PARAM *p, int id, int hour, int minute, int second=0, int msec=0)
 
int pvSetMinTime (PARAM *p, int id, int hour, int minute, int second=0, int msec=0)
 
int pvSetMaxTime (PARAM *p, int id, int hour, int minute, int second=0, int msec=0)
 
int pvEnsureCellVisible (PARAM *p, int id, int row, int col=1)
 
int pvMoveCursor (PARAM *p, int id, int cursor)
 
int pvScrollToAnchor (PARAM *p, int id, const char *anchor)
 
int pvSetZoomFactor (PARAM *p, int id, float factor)
 
int pvPrintHtmlOnPrinter (PARAM *p, int id)
 
int pvSetWidgetProperty (PARAM *p, int id, const char *name, const char *value)
 
int pvPassThroughOneJpegFrame (PARAM *p, int id, int source_fhdl, int inputIsSocket=1, int rotate=0)
 
int pvSendJpegFrame (PARAM *p, int id, unsigned char *frame, int rotate=0)
 
int pvSendRGBA (PARAM *p, int id, const unsigned char *image, int width, int height, int rotate=0)
 
int pvSaveDrawBuffer (PARAM *p, int id, const char *filename)
 

Detailed Description

These are the output routines

Macro Definition Documentation

◆ pvSetColumnWith

#define pvSetColumnWith   pvSetColumnWidth

Function Documentation

◆ pvAddColumn()

int pvAddColumn ( PARAM p,
int  id,
const char *  text,
int  size 
)
Add a Column in a QListView.
Allowed widgets: QListView

◆ pvAddTab()

int pvAddTab ( PARAM p,
int  id,
int  id_child,
const char *  str 
)
Add a Tab to an QTabDialog
id       := id of TabWidget
id_child := id of the QWidget for this tab
str      := text on the tab

◆ pvBeep()

int pvBeep ( PARAM p)
Output a beep.

◆ pvChangeItem()

int pvChangeItem ( PARAM p,
int  id,
int  index,
const char *  bmp_file,
const char *  text,
int  download_icon = 1 
)
Set the content of a widget.
if bmp_file == NULL no pixmap is drawn
else bmp_file = name of PNG file or an 8bpp bitmap file
Allowed widgets: QListBox

◆ pvClear()

int pvClear ( PARAM p,
int  id 
)
Clear the content of a widget.
Allowed widgets: QTable, QListBox, QComboBox, QMultiLineEdit, QListView, QIconView

◆ pvCSV()

int pvCSV ( PARAM p,
int  id,
const char *  command,
char  delimitor = '\t' 
)
dump CSV file to table=id by calling "command".

◆ pvCSVcreate()

int pvCSVcreate ( PARAM p,
const char *  command,
const char *  filename 
)
create CSV file by calling "command > filename".

◆ pvCSVdump()

int pvCSVdump ( PARAM p,
int  id,
const char *  filename,
char  delimitor = '\t' 
)
dump CSV file and populate table.
Allowed widgets: QTable

◆ pvDisplayFloat()

int pvDisplayFloat ( PARAM p,
int  id,
float  val 
)
Display float on a QLCDNumber

◆ pvDisplayNum()

int pvDisplayNum ( PARAM p,
int  id,
int  num 
)
Display num on a QLCDNumber

◆ pvDisplayStr()

int pvDisplayStr ( PARAM p,
int  id,
const char *  str 
)
Display string on a QLCDNumber

◆ pvEnsureCellVisible()

int pvEnsureCellVisible ( PARAM p,
int  id,
int  row,
int  col = 1 
)
Ensure that the table cell is visible, scroll if necessary
allowed widgets: QTable

◆ pvInsertItem()

int pvInsertItem ( PARAM p,
int  id,
int  index,
const char *  bmp_file,
const char *  text,
int  download_icon = 1 
)
Insert an item.
if bmp_file == NULL no pixmap is drawn
else bmp_file = name of PNG file or an 8bpp bitmap file
if index == -1 append text at the end of the list
Allowed widgets: QListBox, QComboBox

◆ pvListBoxSetSelected()

int pvListBoxSetSelected ( PARAM p,
int  id,
int  index,
int  selected 
)
selected = 0 | 1 | 2
if selected == 0 item is unselected
if selected == 1 item is selected

◆ pvListViewPrintf()

int pvListViewPrintf ( PARAM p,
int  id,
const char *  path,
int  column,
const char *  format,
  ... 
)
Set the text of a ListViewItem.
Works as printf(format,...);
example:
path = "/dir/subdir/subsubdir"
path := similar to a unix directory path
Example for colored cells:
pvListViewPrintf(p,myListView,"/path/to",0,"color(255,0,0)this is the colored text");
prepend: color(r,g,b)
Allowed widgets: QListView

◆ pvListViewSetSelected()

int pvListViewSetSelected ( PARAM p,
int  id,
const char *  path,
int  column,
int  selected 
)
selected = 0 | 1 | 2
if selected == 0 item is unselected
if selected == 1 item is selected
if selected == 2 item is selected and all other tree branches are closed

◆ pvMoveCursor()

int pvMoveCursor ( PARAM p,
int  id,
int  cursor 
)
Move the cursor
allowed widgets: QTextBrowser, QMultiLineEdit
cursor := TextCursor

◆ pvMysqldump()

int pvMysqldump ( PARAM p,
int  id,
const char *  command 
)
Run mysqldump and populate table.
See: mysqldump --help
Runs: mysqldump -X command
Allowed widgets: QTable

◆ pvPassThroughOneJpegFrame()

int pvPassThroughOneJpegFrame ( PARAM p,
int  id,
int  source_fhdl,
int  inputIsSocket = 1,
int  rotate = 0 
)
Pass 1 JPEG frame from a camera or other source to the pvbrowser client.
Allowed widgets: QImage

◆ pvPlaySound()

int pvPlaySound ( PARAM p,
const char *  filename 
)
Play Sound. filename should point to a *.wav audio file. First pvDownloadFile(PARAM *p, const char *filename);

◆ pvPrintf()

int pvPrintf ( PARAM p,
int  id,
const char *  format,
  ... 
)
Set the text of a widget.
The functions works like printf()
Allowed widgets: QLabel, QPushButton, QLineEdit, QMultiLineEdit, QComboBox, QRadioButton, QCheckBox, QTextBrowser, QGroupBox

◆ pvPrintfStyleSheet()

int pvPrintfStyleSheet ( PARAM p,
int  id,
const char *  format,
  ... 
)
Printf the style sheet of a widget. (See Qt documentation for style sheets)
The functions works like printf()
Allowed widgets: all widgets
id := id_of_widget or ID_ROOTWIDGET, ID_EDITBAR, ID_TOOLBAR, ID_STATUSBAR, ID_MAINWINDOW or  id_of_dock_widget

◆ pvPrintHtmlOnPrinter()

int pvPrintHtmlOnPrinter ( PARAM p,
int  id 
)
Print the HTML page on a printer
allowed widgets: QTextBrowser

◆ pvRemoveAllColumns()

int pvRemoveAllColumns ( PARAM p,
int  id 
)
Remove all Columns in a QListView.
Allowed widgets: QListView

◆ pvRemoveIconViewItem()

int pvRemoveIconViewItem ( PARAM p,
int  id,
const char *  text 
)
Remove a QIconView item

◆ pvRemoveItem()

int pvRemoveItem ( PARAM p,
int  id,
int  index 
)
Remove an item.
Allowed widgets: QListBox, QComboBox

◆ pvRemoveItemByName()

int pvRemoveItemByName ( PARAM p,
int  id,
const char *  name 
)
Remove an item by it's name.
Allowed widgets: QListBox, QComboBox

◆ pvRemoveListViewItem()

int pvRemoveListViewItem ( PARAM p,
int  id,
const char *  path 
)
example:
path = "/dir/subdir/subsubdir"
path := similar to a unix directory path
Remove a QListView item

◆ pvSaveDrawBuffer()

int pvSaveDrawBuffer ( PARAM p,
int  id,
const char *  filename 
)
Save rendered buffer as PNG or JPG file in temporary directory.
filename is without path.
Allowed widgets: QDrawWidget

◆ pvScrollToAnchor()

int pvScrollToAnchor ( PARAM p,
int  id,
const char *  anchor 
)
Scroll to anchor
allowed widgets: QTextBrowser

◆ pvSendJpegFrame()

int pvSendJpegFrame ( PARAM p,
int  id,
unsigned char *  frame,
int  rotate = 0 
)
Send 1 JPEG frame from a camera or other source to the pvbrowser client.
Allowed widgets: QImage

◆ pvSendRGBA()

int pvSendRGBA ( PARAM p,
int  id,
const unsigned char *  image,
int  width,
int  height,
int  rotate = 0 
)
Send a RGBA image to the pvbrowser client.
Allowed widgets: QImage

◆ pvSetBackgroundColor()

int pvSetBackgroundColor ( PARAM p,
int  id,
int  r,
int  g,
int  b 
)
Set the background color of the widget.
Allowed widgets: QLabel, QDraw

◆ pvSetBufferedJpgImage()

int pvSetBufferedJpgImage ( PARAM p,
int  id,
const unsigned char *  buffer,
int  buffersize,
int  rotate = 0 
)
Set a new image in an existing image.
For example get a frame from a MJPG webcam with the rlWebcam method
  int getFrameBuffer(unsigned char *buffer, int maxbuffer, int timeout=3000);
and send it to the pvbrowser client with this function.
if(rotate == +90) then rotate +90 degrees
if(rotate == -90) then rotate -90 degrees
Allowed widgets: QImage

◆ pvSetBufferTransparency()

int pvSetBufferTransparency ( PARAM p,
int  id,
int  a 
)
Set the transparency for the drawing buffer.
"int a;" is in the range of 0-255 where 0 is fully transparent and 255 is fully opaque
Allowed widgets: QDraw

◆ pvSetCaption()

int pvSetCaption ( PARAM p,
const char *  text 
)
Set program Title.

◆ pvSetColumnWidth()

int pvSetColumnWidth ( PARAM p,
int  id,
int  column,
int  width 
)
Set the width of a table column.
if column == -1 then 
  set border width
  if width >  0  -> set width
  if width == 0  -> hide
  if width == -1 -> resize to contents
Allowed widgets: QTable

◆ pvSetDate()

int pvSetDate ( PARAM p,
int  id,
int  year,
int  month,
int  day 
)
Set date
allowed widgets: QDateEdit, QDateTimeEdit

◆ pvSetDateOrder()

int pvSetDateOrder ( PARAM p,
int  id,
int  order 
)
Set date order, enum Order { DMY, MDY, YMD, YDM }
allowed widgets: QDateEdit, QDateTimeEdit

◆ pvSetFont()

int pvSetFont ( PARAM p,
int  id,
const char *  family,
int  pointsize,
int  bold,
int  italic,
int  underline,
int  strikeout 
)
Set the font of the widget. The font will be propagated to all children.
pointsize (in pitch)
bold      = 0|1
italic    = 0|1
underline = 0|1
strikeout = 0|1
Allowed widgets: all widgets

◆ pvSetFontColor()

int pvSetFontColor ( PARAM p,
int  id,
int  r,
int  g,
int  b 
)
Set the font color of the widget.
r=-1,g=-1,b=-1 := unsetPalette()
Allowed widgets: QMultiLineEdit

◆ pvSetIconViewItem()

int pvSetIconViewItem ( PARAM p,
int  id,
const char *  bmp_file,
const char *  text,
int  download_icon = 1 
)
Insert a QIconViewItem pixmap and text

◆ pvSetImage()

int pvSetImage ( PARAM p,
int  id,
const char *  filename,
int  rotate = 0 
)
Set a new image in an existing image.
if(rotate == +90) then rotate +90 degrees
if(rotate == -90) then rotate -90 degrees
Allowed widgets: QImage

◆ pvSetListViewPixmap()

int pvSetListViewPixmap ( PARAM p,
int  id,
const char *  path,
const char *  bmp_file,
int  column,
int  download_icon = 1 
)
example:
path = "/dir/subdir/subsubdir"
path := similar to a unix directory path
Set a QListView pixmap
Use PNG file.

◆ pvSetListViewText()

int pvSetListViewText ( PARAM p,
int  id,
const char *  path,
int  column,
const char *  text 
)
Set the text of a ListViewItem.
example:
path = "/dir/subdir/subsubdir"
path := similar to a unix directory path
Example for colored cells:
pvSetListViewText(p,myListView,"/path/to",0,"color(255,0,0)this is the colored text");
prepend: color(r,g,b)
Allowed widgets: QListView

◆ pvSetMaxDate()

int pvSetMaxDate ( PARAM p,
int  id,
int  year,
int  month,
int  day 
)
Set max date
allowed widgets: QDateEdit, QDateTimeEdit

◆ pvSetMaxTime()

int pvSetMaxTime ( PARAM p,
int  id,
int  hour,
int  minute,
int  second = 0,
int  msec = 0 
)
Set time
allowed widgets: QTimeEdit, QDateTimeEdit

◆ pvSetMaxValue()

int pvSetMaxValue ( PARAM p,
int  id,
int  value 
)
Set the maximum value of a widget.
Allowed widgets: QSlider, QSpinBox, QDial, QProgressBar

◆ pvSetMinDate()

int pvSetMinDate ( PARAM p,
int  id,
int  year,
int  month,
int  day 
)
Set min date
allowed widgets: QDateEdit, QDateTimeEdit

◆ pvSetMinTime()

int pvSetMinTime ( PARAM p,
int  id,
int  hour,
int  minute,
int  second = 0,
int  msec = 0 
)
Set time
allowed widgets: QTimeEdit, QDateTimeEdit

◆ pvSetMinValue()

int pvSetMinValue ( PARAM p,
int  id,
int  value 
)
Set the minimum value of a widget.
Allowed widgets: QSlider, QSpinBox, QDial, QProgressBar

◆ pvSetPaletteBackgroundColor()

int pvSetPaletteBackgroundColor ( PARAM p,
int  id,
int  r,
int  g,
int  b 
)
Set the background color of the widget.
r=-1,g=-1,b=-1 := unsetPalette()
Allowed widgets: all widgets

◆ pvSetPaletteForegroundColor()

int pvSetPaletteForegroundColor ( PARAM p,
int  id,
int  r,
int  g,
int  b 
)
Set the foreground color of the widget.
r=-1,g=-1,b=-1 := unsetPalette()
Allowed widgets: all widgets

◆ pvSetPixmap()

int pvSetPixmap ( PARAM p,
int  id,
const char *  bmp_file,
int  download_icon = 1 
)
Set the pixmap.
Use PNG file.
also:
bmp_file = name of an 8bpp bitmap file
if bmp_file == NULL reset pixmap
Allowed widgets: QPushButton

◆ pvSetRowHeight()

int pvSetRowHeight ( PARAM p,
int  id,
int  row,
int  height 
)
Set the height of a table row.
if row == -1 then set border height
if row >= 0 && height == -1 then set autoresizeRowToContents=1
if row >= 0 && height == -2 then set autoresizeRowToContents=0
default autoresizeRowToContents=0
Allowed widgets: QTable

◆ pvSetSource()

int pvSetSource ( PARAM p,
int  id,
const char *  html_file 
)
Set the file to show in QTextBrowser.
html_file = file to start with
or
http://webpage.url
Allowed widgets: QTextBrowser

◆ pvSetStyleSheet()

int pvSetStyleSheet ( PARAM p,
int  id,
const char *  text 
)
Set the style sheet of a widget. (See Qt documentation for style sheets)
Allowed widgets: all widgets
id := id_of_widget or ID_ROOTWIDGET, ID_EDITBAR, ID_TOOLBAR, ID_STATUSBAR, ID_MAINWINDOW or id_of_dock_widget

◆ pvSetTableButton()

int pvSetTableButton ( PARAM p,
int  id,
int  x,
int  y,
const char *  text 
)
Set a table cell to Button.
Allowed widgets: QTable

◆ pvSetTableCheckBox()

int pvSetTableCheckBox ( PARAM p,
int  id,
int  x,
int  y,
int  state,
const char *  text 
)
Set a table cell to CheckBox.
Allowed widgets: QTable

◆ pvSetTableComboBox()

int pvSetTableComboBox ( PARAM p,
int  id,
int  x,
int  y,
int  editable,
const char *  textlist 
)
Set a table cell to ComboBox.
example:
pvSetTableComboBox(p,Table1,2,1,1,"choice1,choice2,choice3");
You can add a # in front of choice in order to make it the selectedChoice.
example: make choice2 the selectedChoice
pvSetTableComboBox(p,Table1,2,1,1,"choice1,#choice2,choice3");
Allowed widgets: QTable

◆ pvSetTableLabel()

int pvSetTableLabel ( PARAM p,
int  id,
int  x,
int  y,
const char *  text 
)
Set a table cell to label
Allowed widgets: QTable

◆ pvSetTablePixmap()

int pvSetTablePixmap ( PARAM p,
int  id,
int  x,
int  y,
const char *  bmp_file,
int  download_icon = 1 
)
Set the pixmap of a table cell.
Use PNG file.
also:
bmp_file = name of an 8bpp bitmap file
Allowed widgets: QTable

◆ pvSetTableText()

int pvSetTableText ( PARAM p,
int  id,
int  x,
int  y,
const char *  text 
)
Set the text of a table cell.
if x == -1 then set row text
if y == -1 then set column text
Example for colored table cells:
pvTableText(p,Table1,0,0,"color(255,0,0)this is the cell text");
prepend: color(r,g,b)
Allowed widgets: QTable

◆ pvSetTableTextAlignment()

int pvSetTableTextAlignment ( PARAM p,
int  id,
int  x,
int  y,
int  alignment 
)
Set the text alignment of a table cell.
alignment :=
  AlignLeft     # Aligns with the left edge.
  AlignRight    # Aligns with the right edge.
  AlignHCenter  # Centers horizontally in the available space.
  AlignJustify  # Justifies the text in the available space.
Allowed widgets: QTable

◆ pvSetText()

int pvSetText ( PARAM p,
int  id,
const char *  text 
)
Set the text of a widget.
Allowed widgets: QLabel, QPushButton, QLineEdit, QMultiLineEdit, QComboBox, QRadioButton, QCheckBox, QTextBrowser

◆ pvSetTextEx()

int pvSetTextEx ( PARAM p,
int  id,
const char *  text,
int  option 
)
Set the text of a widget.
option := -1 || HTML_HEADER || HTML_STYLE || HTML_BODY
Allowed widgets: QLabel, QPushButton, QLineEdit, QMultiLineEdit, QComboBox, QRadioButton, QCheckBox, QTextBrowser

◆ pvSetTime()

int pvSetTime ( PARAM p,
int  id,
int  hour,
int  minute,
int  second = 0,
int  msec = 0 
)
Set time
allowed widgets: QTimeEdit, QDateTimeEdit

◆ pvSetValue()

int pvSetValue ( PARAM p,
int  id,
int  value 
)
Set the value of a widget.
Allowed widgets: QSlider, QSpinBox, QDial, QProgressBar, QTabWidget, QToolBox
For QMultiLineEdit set maxlines = value

◆ pvSetWidgetProperty()

int pvSetWidgetProperty ( PARAM p,
int  id,
const char *  name,
const char *  value 
)
Set a property of a custom widget.
See the documentation of the custom widget plugin.
allowed widgets: QCustomWidget

◆ pvSetWordWrap()

int pvSetWordWrap ( PARAM p,
int  id,
int  wrap 
)
Set word wrap for table.
wrap = 0 | 1
Allowed widgets: QTable

◆ pvSetZoomFactor()

int pvSetZoomFactor ( PARAM p,
int  id,
float  factor 
)
Set zoom factor of the HTML page
allowed widgets: QTextBrowser

◆ pvStatusMessage()

int pvStatusMessage ( PARAM p,
int  r,
int  g,
int  b,
const char *  format,
  ... 
)
Output status message.
If r = g = b = -1 -> normal background color

◆ pvTablePrintf()

int pvTablePrintf ( PARAM p,
int  id,
int  x,
int  y,
const char *  format,
  ... 
)
Set the text of a table cell.
Works as printf(format,...);
if x == -1 then set row text
if y == -1 then set column text
Example for colored table cells:
pvTablePrintf(p,Table1,0,0,"color(255,0,0)this is the cell text");
prepend: color(r,g,b)
Allowed widgets: QTable

◆ pvToolTip()

int pvToolTip ( PARAM p,
int  id,
const char *  text 
)
Set a QToolTip for the widget. It will be displayed near the widget when you move over.