EnglishУкраїнськаmRussian
Login/New
Topic with no new replies

How to Center WebPage


Author Message
Written on: 23. 09. 2009 [17:16]
Unaie
Unai Ezta
Topic creator
registered since: 30.06.2009
Posts: 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?



[This article was edited 1 times, at last 23.09.2009 at 17:59.]
Written on: 24. 09. 2009 [10:03]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 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.
Written on: 28. 09. 2009 [10:43]
Unaie
Unai Ezta
Topic creator
registered since: 30.06.2009
Posts: 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_.............'

Written on: 30. 09. 2009 [10:39]
roman
Roman Savochenko
Moderator
Contributor
Developer
registered since: 12.12.2007
Posts: 3750
I have set collor for this massage to "BorderColor" of the Box-container.

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



3871