47 public function init($title, $gauge, $text)
51 $bearsamppWinbinder->reset();
54 $screenWidth = intval($screenArea[2]);
55 $screenHeight = intval($screenArea[3]);
57 $yPos = $screenHeight - self::WINDOW_HEIGHT - 5;
59 $this->wbWindow = $bearsamppWinbinder->createWindow(
null, ToolDialog, $title, $xPos, $yPos, self::WINDOW_WIDTH, self::WINDOW_HEIGHT, WBC_TOP | WBC_READONLY,
null);
60 $this->wbImage = $bearsamppWinbinder->drawImage($this->wbWindow,
$bearsamppCore->getResourcesPath() .
'/homepage/img/bearsampp.bmp');
61 $this->wbProgressBar = $bearsamppWinbinder->createProgressBar($this->wbWindow, $gauge + 1, 42, 24, 390, 15);
74 global $bearsamppWinbinder;
76 $bearsamppWinbinder->drawRect($this->wbWindow, 42, 0, self::WINDOW_WIDTH - 42, self::WINDOW_HEIGHT);
77 $this->wbTextLoading = $bearsamppWinbinder->drawText($this->wbWindow, $caption, 42, 0, self::WINDOW_WIDTH - 44, 25);
89 for ($i = 0; $i < $nb; $i++) {
90 $bearsamppWinbinder->drawImage($this->wbWindow,
$bearsamppCore->getResourcesPath() .
'/homepage/img/bearsampp.bmp', 4, 4, 32, 32);
91 $bearsamppWinbinder->incrProgressBar($this->wbProgressBar);
94 $bearsamppWinbinder->wait();
95 $bearsamppWinbinder->wait($this->wbWindow);