Disko Forum logo Login  |  Register  |  Lost Password
Re:duration popup window

neeohw
Posts: 14
graphgraph

duration popup window 4 Years, 3 Months ago  
Sorry I'm bugging you guys so much, but I cannot figure out how this duration is working for the popupwindow.
Which value can it have ? How do I set it ?
 
  The administrator has disabled public write access.
Re:duration popup window

Matthias
Posts: 64
graphgraph

Gender: Male Disko Location: Berlin, Germany Birthdate: 1979-04-25
Re:duration popup window 4 Years, 3 Months ago  
Hello neeohw,

you don't have to feel sorry, we're always happy to help

There are different ways to set the duration of a popup window.
First via xml-Files:
- You can set it directly inside the dialog file where you define the popupwindow
as an attribute like this:
Code:

<popupwindow name="popup" duration="5" />
- Or more generally in your theme.xml:
Code:

<class name = "my_popupwindow" type = "popupwindow" duration = "5" />
and then use it inside the dialog file:
Code:

<popupwindow name="popup" class="my_popupwindow" />
. Another possibility is to use the API to set it dynamically inside your C++ code:
Code:

this->popupwindow->setDuration(5);
Remember that setting it to 0 disables automatic hiding of the window. Values greater than 0 are meant in seconds. Best regards, Matthias P.S.: You may also use our new mailing list at http://ml.diskohq.com/cgi-bin/mailman/listinfo/disko-devel for questions.
 
 
Last Edit: 2010/06/08 18:02 By Matthias.
  The administrator has disabled public write access.
Re:duration popup window

neeohw
Posts: 14
graphgraph

Re:duration popup window 4 Years, 3 Months ago  
That's what I thought, only ...
I put duration="5" but I can only see the popup for 0.25 seconds.
 
  The administrator has disabled public write access.
Re:duration popup window

Matthias
Posts: 64
graphgraph

Gender: Male Disko Location: Berlin, Germany Birthdate: 1979-04-25
Re:duration popup window 4 Years, 3 Months ago  
OK, this sounds like a bug. Which version are you using?
Disko 1.6, 1.7 or from the git-repository?

Then I'll test it.
 
  The administrator has disabled public write access.
Re:duration popup window

neeohw
Posts: 14
graphgraph

Re:duration popup window 4 Years, 3 Months ago  
Hi Matthias,

I'm testing Disko 1.7 which I downloaded from the GIT repository on the 5th of may.
 
  The administrator has disabled public write access.
Powered by FireBoard
get the latest posts directly to your desktop