Michael Ivanov | 1 Jul 11:57 2008
Picon

Re: WDialog positioning problems

Hallo!

Koen Deforche пишет:
> The problem is that it impossible
> to center the dialog (vertically) in CSS only without knowing the
> size.
Vertical centering is exactly what is *not* needed in my case at least. 
I am concerned
about horizontal centering.
> You should be able to override all the internal CSS code, by
> overriding the selectors from your own CSS files:
>
>  - use WApplication::useStyleSheet() to load your own CSS file
>  - for WDialog, it is not documented, but you will want to add
> declarations like :
>
> div.Wt-dialogwindow {
>   margin-left: -XXXpx;
>   margin-top:-YYpx;
> }
>   
Yes I found all that in source code, but if I put these declarations in 
my css file,
they seem to be ignored. First I was using a hacked on version of 
library with
css code in WDialog commented out, then I added a following line at the 
start
of my program:

styleSheet().addRule("dummy", "background: white;", "Wt::WDialog");
(Continue reading)

Michael Ivanov | 1 Jul 16:15 2008
Picon

TextEdit problem

Hallo!

When I try to pass certain text as an argument to 
Ext::TextEdit::setText(), a following error occurs:

Wt internal error: SyntaxError: unterminated string literal, code: 
undefined, description: undefined

I am using wt 2.1.3 with extjs 2.1

The text, which causes an error follows:

================================================================
&nbsp;<h2>Detailed Description</h2>
A WDialog emulates a modal window.
<p>
A modal window blocks the user interface, and does not allow the user
to interact with any other part of the user interface until the dialog
is closed.</p><p>
There are two distinct ways for using a WDialog window.</p><p>
The easiest way is using the <a class="el"

href="http://localhost/Docs/wt-ref/classWt_1_1WDialog.html#e56cf798aba9f09a8869df50d3f334a6" 
title="Execute the dialog in a recursive event loop.">exec()</a> method: 
after creating a WDialog window, call the <a class="el"

href="http://localhost/Docs/wt-ref/classWt_1_1WDialog.html#e56cf798aba9f09a8869df50d3f334a6" 
title="Execute the dialog in a recursive event loop.">exec()</a>
method which blocks until the dialog window is closed, and returns the
dialog result. Typically, an OK button will be connected to the <a 
(Continue reading)

Michael Ivanov | 1 Jul 16:24 2008
Picon

Ext::TableView behaviour in WDialog

Hallo again!

I have put a TableView inside WDialogue and suddenly rows will not be 
highlighted
when selected. The row is actually selected, i.e. after mouse click I 
get proper row
number from selectedRows(), but no highlight. On regular pages and in 
Ext::Dialog
the highlight works.

Best regards,
--

-- 
Michael Ivanov

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Koen Deforche | 1 Jul 16:50 2008
Picon

Re: WDialog positioning problems

Hey Michael,

> Vertical centering is exactly what is *not* needed in my case at least.
> I am concerned
> about horizontal centering.

Oops. I've just committed code that will automatically do both. What
do you want instead of vertical centering?

> Yes I found all that in source code, but if I put these declarations in
> my css file,
> they seem to be ignored. First I was using a hacked on version of

You are right. I did not understand CSS fully. Apparently, regardless
of the order in which they appear, the built-in stylesheet will always
override imported stylesheets, according to my CSS book. Unless you
mark them !important. We should try that?

> It would be nice if all built-in css rules could be reliably overrided
> in some
> well-defined way.

Agree. I thought this was possible, but apparently not!

Regards,
koen

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
(Continue reading)

Koen Deforche | 1 Jul 16:51 2008
Picon

Re: TextEdit problem

Hey Michael,

2008/7/1 Michael Ivanov <deruhu@...>:
> Hallo!
>
> When I try to pass certain text as an argument to
> Ext::TextEdit::setText(), a following error occurs:
>
> Wt internal error: SyntaxError: unterminated string literal, code:
> undefined, description: undefined

That is an oops. And has been fixed in CVS.

Regards,
koen

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Michael Ivanov | 1 Jul 17:37 2008
Picon

Re: Ext::TableView behaviour in WDialog

Michael Ivanov пишет:
> Hallo again!
>
> I have put a TableView inside WDialogue and suddenly rows will not be 
> highlighted
> when selected. The row is actually selected, i.e. after mouse click I 
> get proper row
> number from selectedRows(), but no highlight. On regular pages and in 
> Ext::Dialog
> the highlight works.
>
> Best regards,
>   
I thing I see the reason: the highlighting is visible in the space 
between the rows! Apparently
in case of WDialogue some additional tags are added and css highlight 
rule points to an upper-level
item.

In similar case with WTreeNode I had to change css highlighting rule 
from '.selected {' to
'.selected * {'. But rules for TAbleView seem to be built-in?

Best regards,
--

-- 
Michael Ivanov

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
(Continue reading)

Michael Ivanov | 1 Jul 17:47 2008
Picon

Another problem with WDialog

Hallo again!

Whan WDialog is presented using show(), the underlying page seems to be 
disabled,
but only 'seems'! :-) It is not accessible by mouse, but if one goes to 
browser's ulr input
window and then proceeds to move focus using TAB, then he *can* access 
controls from
underlying window. Now WDialog is described as modal in docs and (at 
least in my case)
access to the underlying page can screw up application badly.

Is there any way to disable it?

Best regards,
--

-- 
Michael Ivanov

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
Peter Klar | 1 Jul 23:10 2008
Picon
Picon

Installation - Missing Chart Module

Hi,

I installed wt-2.1.3 from sources on debian etch but the chart module is 
missing.

So far after some manual adjusting using ccmake it compiled and installed 
fine - the examples are working (incl. the chart example) and I could 
create my 1st hello world program w/o any problems.

However, now I found out that the chart module wasn't installed, at least 
the headers are missing and when making the wt library it builds only the 
following targets:
- filetostring
- wt
- wtext
- wtfcgi
- wthttp

How do I get it build including the chart module?

Regards
Peter

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Pau Garcia i Quiles | 1 Jul 23:41 2008

Re: Installation - Missing Chart Module

Quoting Peter Klar <mcbeagle@...>:

> Hi,
>
> I installed wt-2.1.3 from sources on debian etch but the chart module is
> missing.
>
> So far after some manual adjusting using ccmake it compiled and installed
> fine - the examples are working (incl. the chart example) and I could
> create my 1st hello world program w/o any problems.
>
> However, now I found out that the chart module wasn't installed, at least
> the headers are missing and when making the wt library it builds only the
> following targets:
> - filetostring
> - wt
> - wtext
> - wtfcgi
> - wthttp
>
> How do I get it build including the chart module?

This is a known bug. Use the attached patch to fix that. You may also  
prefer to build a Debian package:
http://mentors.debian.net/debian/pool/main/w/witty/

Take those sources, then run:
$ dpkg-source -x witty_2.1.3-1.dsc
$ cd witty-2.1.3
$ dpkg-buildpackage
(Continue reading)

Ray Burkholder | 2 Jul 01:34 2008
Picon

Hover Graphics


Can someone outline a set of functions to use to generate hover graphics
such as what is found at:

http://netmon.grnet.gr/map.shtml

Is Wt capable of such a capability?  I can generate both the background
chart and the graphic for the popup, but how would one proceed in getting
the popup to function?  Can one get a graphic into a
Wt::Ext::TooolTipConfig?

Thanx

Ray.

--

-- 
Scanned for viruses and dangerous content at 
http://www.oneunified.net and is believed to be clean.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08

Gmane