- win32std is not php-gtk
vor 43 Wochen 1 Tag - php gtk windows extension exists
vor 44 Wochen 6 Stunden - Added capabilities
vor 44 Wochen 4 Tage - GtkHtml-3.0.dll missing error
vor 47 Wochen 7 Stunden - No PHP 6
vor 1 Jahr 15 Wochen - Recurring question!
vor 1 Jahr 19 Wochen - Use the forum for support questions
vor 1 Jahr 23 Wochen - PHP-GTK installation complements for Ubuntu 10.04 Natty Narwhal
vor 1 Jahr 23 Wochen - Article restored: who's willing to do the others ?
vor 1 Jahr 23 Wochen - you can use COM with WScript.Shell or the REG command in Windows
vor 1 Jahr 40 Wochen


I have solved the problem
I have solved the problem.
First you get the total buttons by using
$toolbar->get_n_items();Then in a for loop, go through all the buttons on the toolbar and remove them but from the back.
Sample code:
<?phpif ($oldItems != 0)
{
for ($i = $oldItems; $i >= 0; $i--)
{
if (is_object($menuItemBar->get_nth_item($i)))
{
$menuItemBar->remove($menuItemBar->get_nth_item($i));
}
}
}
?>
Hope this helps someone that also struggles with something like this.
H