Table of Content
HAL Forum
procedure ViewFinder (
integer StartX,integer StartY,integer EndX,integer EndY)
Description:
Creates webcamera view finder object inside the window that is being defined. Used inside WindowBegin/EndWindow block. Only for Nokia phones.
Parameters:
StartX The X coordinate of the upper left corner of the view finder object rectangle.
StartY The Y coordinate of the upper left corner of the view finder object rectangle.
EndX The X coordinate of the lower right corner of the view finder object rectangle.
EndY The Y coordinate of the lower right corner of the view finder object rectangle.
// Please note that ToolTakePicture is to be used to enable the user to capture the image.

event DefineWindows
begin
  real x,h,h1,h2,h3,h4,h5,h6,h7,hs,v,v2,l,vs,vm,f,t;
  string 255 label;
  
  SetLangMode(LangEnglish,"ENG",0);
  WindowBegin("View Finder",ViewFinderWClass,CGother,RcType);
  ViewFinder(5,5,155,205);
  PushButton(-70,5,-10,22,ToolClose,"Close");
  PushButton(-70,25,-10,42,ToolTakePicture,"Take picture");
  EndWindow;

  return;
end;
Related topics:
««