УкраїнськаEnglishmRussian
Вхід/Новий
У темі немає нових постів

How to Center WebPage


Автор Повідомлення
Повідомлення створено: 23. 09. 2009 [17:16]
Unaie
Unai Ezta
Автор теми
Зареєстрован(а) с: 30.06.2009
Повідомлення: 42
1. How can I center WebVision in Browser?Any change in VCA.js, where? (I suppose to resize is not possible)

2. I need to change default directory when you export a file from QTVision. Now it opens always in ~/.openscada. I tryed

JAVASCRIPT
cd /mydir
openscada --Config=/home/ni/.openscada/oscada.xml $@


but this fails, default dir is always the stablished in .xml:
JAVASCRIPT
<prm id="Workdir">~/.openscada</prm>
, and you cannot change it because oscada depend on it to load.

In my project Oscada runs in a read only flash partition and i want a default directory to save files in a persistent partition.



3. is it possible to change templates docRept in code? I want to make interval depending on Size and this fails:
JAVASCRIPT
docRept="XXXXX<?dp return varinteger;?>"


My solution is 3 extra templates defined in attributes and I change beetwen them.

4. Where can I change the color or disable loading text when screen in rootpage is changing?

5. Any info about new Styles feature?



[Повідомлення редагувалось 1 раз(ів), останній раз 23.09.2009 в 17:59.]
Повідомлення створено: 24. 09. 2009 [10:03]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
Unaie wrote:

1. How can I center WebVision in Browser?Any change in VCA.js, where? (I suppose to resize is not possible)

It is not possible now. I don't know how it to make without absolute position broken but I will try make it.

For resize to full window size you can use standard browser's scale function. Firefox and Opera good support it by Ctr++

Unaie wrote:

2. I need to change default directory when you export a file from QTVision. Now it opens always in ~/.openscada. I tryed

Changing default directory operationally is not supported. Simple create link to writable partition into default directory or use unionfs and like for bridging default directory to its writible clone. For example read here http://wiki.oscada.org/Using/PLC

Unaie wrote:

3. is it possible to change templates docRept in code? I want to make interval depending on Size and this fails:

docRept is statical attribute.

Unaie wrote:

My solution is 3 extra templates defined in attributes and I change beetwen them.

It is correct.

Unaie wrote:

4. Where can I change the color or disable loading text when screen in rootpage is changing?

I don't understand what you mean.

Unaie wrote:

5. Any info about new Styles feature?

http://wiki.oscada.org/Doc/VCAEngine?v=1b2n#h668-8
http://wiki.oscada.org/Doc/Vision?v=1934#h669-5

Learn, learn and learn better than work, work and work.
Повідомлення створено: 28. 09. 2009 [10:43]
Unaie
Unai Ezta
Автор теми
Зареєстрован(а) с: 30.06.2009
Повідомлення: 42
roman wrote:

Unaie wrote:

4. Where can I change the color or disable loading text when screen in rootpage is changing?

I don't understand what you mean.


This message when you change between Mnemos in DemoDB:
JAVASCRIPT
Load page 'ses_.............'

Повідомлення створено: 30. 09. 2009 [10:39]
roman
Roman Savochenko
Moderator
Contributor
Developer
Зареєстрован(а) с: 12.12.2007
Повідомлення: 3750
I have set collor for this massage to "BorderColor" of the Box-container.

Learn, learn and learn better than work, work and work.



7917