Re: [qooxdoo-devel] looking for easy way to set font weight with appearances

2010-09-07 Thread Greg Beaver
On 9/7/10 3:40 AM, Christian Hagendorn wrote: > Hi Greg, > > I don't know why the textColor doesn't work in your case. Have tried it > in a playground example and it works for me: > http://tinyurl.com/397aqov > > The only problem is that you can only set a font size in pixel an not in > percen

Re: [qooxdoo-devel] Setting language for an application

2010-09-07 Thread thron7
> Hi Stefan, > > here's my approach (qooxdoo 1.2.x): > > __guessSetLocale : function () > { > // Get the users client locale; we don't care about the variant > var locale = qx.bom.client.Locale.LOCALE; qx.locale.Manager.getInstance().getLocale() is the better API here. T. >

Re: [qooxdoo-devel] Generator resource problem

2010-09-07 Thread thron7
> > with "build-resources" it does not "build-script" so I combine them to > this ["build-script", "build-resources"] and then it works you should add "build-files", so index.html get's copied. T. > > Stefan > > ---

Re: [qooxdoo-devel] looking for easy way to set font weight with appearances

2010-09-07 Thread Christian Hagendorn
Hi Greg, have a look at the theme definition "my.theme.Appearance". Here I defined the key "myLabel" this is the key which the second label use. The appearance sets the properties "textColor" and "font" (on the label instance). The property "font" expected a "qx.bom.Font" instance. The font

Re: [qooxdoo-devel] Generator resource problem

2010-09-07 Thread Daniel Wagner
You can just use the regular "build" job which runs "build-script", "build-resources" and "build-files". I sort of assumed that's what you were doing all along :) Regards, Daniel Stefan Andersson schrieb: > with "build-resources" it does not "build-script" so I combine them to > this ["build-s

Re: [qooxdoo-devel] looking for easy way to set font weight with appearances

2010-09-07 Thread Jim Hunter
Greg, What you need to do is to create a new instance of a qx.bom.Font, set all the properties you need, then set the labels font to be this new font: var myFont = new qx.bom.Font(14, ["Arial"]); myFont.setBold(true); var myLabel = new qx.ui.basic.Label("The Label Text"); myLabel.setFont(myFont

Re: [qooxdoo-devel] looking for easy way to set font weight with appearances

2010-09-07 Thread Claus Straube
Hi Greg, that works for me in playground: --snip-- var label = new qx.ui.basic.Label().set({rich:true}); label.setValue("bold"); // Document is the application root var doc = this.getRoot(); // Add button to document at fixed coordinates doc.add(label, { left : 100, top : 50 }); --snip-- b

Re: [qooxdoo-devel] Generator resource problem

2010-09-07 Thread Stefan Andersson
with "build-resources" it does not "build-script" so I combine them to this ["build-script", "build-resources"] and then it works Stefan -- This SF.net Dev2Dev email is spons

Re: [qooxdoo-devel] looking for easy way to set font weight with appearances

2010-09-07 Thread Greg Beaver
On 9/7/10 3:40 AM, Christian Hagendorn wrote: > Hi Greg, > > I don't know why the textColor doesn't work in your case. Have tried it > in a playground example and it works for me: > http://tinyurl.com/397aqov > > The only problem is that you can only set a font size in pixel an not in > percen

Re: [qooxdoo-devel] Feature req - htmlarea should fill states.focused

2010-09-07 Thread Ralf Nieuwenhuijsen
Try adding some debug statements. Are the states not applied, or are the events not fired? In either case, that's a bug. But the htmlarea-embed is quite funky, I suspect. It should and does work on most widgets. -- Met vriendelijke groeten, -- Ralf ( @ gong.nl // 06-24335114 ) 2010/9/6 Petr Ko

Re: [qooxdoo-devel] generate build/source speed

2010-09-07 Thread Jean-Baptiste BRIAUD -- Novlog
Hi, Still that have that question on "preduilt version like in "prebuilt"" Also, I forgot to mention one file where I had to replace CMD_PYTHON : ShellCmd.py line 85. On 2 sept. 2010, at 16:43, Jean-Baptiste BRIAUD -- Novlog wrote: > > On 1 sept. 2010, at 20:43, thron7 wrote: > >> >> >>> T

Re: [qooxdoo-devel] Setting language for an application

2010-09-07 Thread Stefan Andersson
It was exactly what I was looking for. Thank you Peter! Stefan -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Thread

Re: [qooxdoo-devel] Generator resource problem

2010-09-07 Thread Daniel Wagner
Hi Stefan, the "build-script" job doesn't copy resources, try the appropriately named "build-resources" instead: "build-cms" : { "extend" : ["build-resources"], "copy-resources" : { "target" : "../../script/qooxdoo/resource/" } } Re

Re: [qooxdoo-devel] Setting language for an application

2010-09-07 Thread Peter Schneider
Hi Stefan, here's my approach (qooxdoo 1.2.x): __guessSetLocale : function () { // Get the users client locale; we don't care about the variant var locale = qx.bom.client.Locale.LOCALE; // Client locale not supported? if (!qx.lang.Array.contains(["de", "en", "fr"]

[qooxdoo-devel] Generator resource problem

2010-09-07 Thread Stefan Andersson
I have changed the traditional build script to this because I need a different resource uri in the ready built package: "build-cms" : { "extend" : ["build-script"], "compile-options" : { "uris" : { "resource" : "../../script/qooxdoo/resource/" }

[qooxdoo-devel] Setting language for an application

2010-09-07 Thread Stefan Andersson
Does anyone have a good solution to set the language of an application before the main is run, such that it is possible to retrieve this from the HTML site's information? I am using a CMS which decides the language and it must tell qooxdoo what language version to use in HTML text or in any ot

Re: [qooxdoo-devel] Proposal to add in Flash widget

2010-09-07 Thread Stefan Andersson
This is really tricky, but it seems to work for me now. /* * * In the following order the errors occur: * 1. flash element equals underfined, which means that the flash object has not been added to the DOM tree. * 2. flash object has not received an id

Re: [qooxdoo-devel] Proposal to add in Flash widget

2010-09-07 Thread Stefan Andersson
Yes, the IE is a fact, but you still can use my proposal which also works in IE. I will add an enhancement bug. Stefan -- This SF.net Dev2Dev email is sponsored by: Show off you

Re: [qooxdoo-devel] A question regarding flash

2010-09-07 Thread Stefan Andersson
my fault...I didn't see once! Stefan -- This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://

Re: [qooxdoo-devel] Proposal to add in Flash widget

2010-09-07 Thread Christian Hagendorn
Hi Stefan, thanks, now it's clear. No it's not possible, this is a bug fix for IE7 and higher. IE7 and higher blocks all methods which are provided from the ExternalInterface when the flash object is directly added. So if we don't create the flash object in the "appear" event the flash object

[qooxdoo-devel] Proposal to add in Flash widget

2010-09-07 Thread Stefan Andersson
Remove the "appear" event in the constructor: instead this.getContentElement().createFlash(); this._loading(); in the constructor and two new events: events : { /** * Fired when the flash object still is loading. * * The loading action can be prevented by calling *

Re: [qooxdoo-devel] A question regarding flash

2010-09-07 Thread Christian Hagendorn
Hi Stefan, what you exactly mean with each time it appears? Do you mean the code from the "appear" listener in qx.ui.embed.Flash (constructor): this.addListenerOnce("appear", function() { this.getContentElement().createFlash(); }, this); This should only create the flash object once, becaus

Re: [qooxdoo-devel] looking for easy way to set font weight with appearances

2010-09-07 Thread Christian Hagendorn
Hi Greg, I don't know why the textColor doesn't work in your case. Have tried it in a playground example and it works for me: http://tinyurl.com/397aqov The only problem is that you can only set a font size in pixel an not in percentage. Cheers, Chris Am 07.09.2010 06:52, schrieb Greg Beave

[qooxdoo-devel] A question regarding flash

2010-09-07 Thread Stefan Andersson
I have a question regarding flash creation. Why is the flash object added each time it appears? Doesn't that use up the memory? Can not the first-time created DOM be referred to? Stefan ---

[qooxdoo-devel] Antw: How do I get my own ip Address

2010-09-07 Thread Robert Nimax
Hi Harald, what´s the purpose for this kind of id ? What about the hostname ? An IP address can be dynamic, but a DNS entry should be constant. You can read the hostname via "document.URL". As far as I know, there is no qooxdoo abstraction, so you can use this API directly. After that cou can acces

Re: [qooxdoo-devel] Flash appear event does not work as expected

2010-09-07 Thread Christian Hagendorn
Hi Stefan, now it's clear for me. At the moment it is not relay a problem with using the "appear" event, because the listeners are called in the order they are added. But you are right it isn't a good idea to rely on that one listener is called before the other. So I would also prefer to cha

[qooxdoo-devel] How do I get my own ip Address

2010-09-07 Thread Tranninger Harald
Hi, my app is running on my Computer. I want to get some unique identifier, that identifies my computer. This identifier should be stored in a DB. I thought of my IP address. If I would be able to get my IP, then I could store it in the MSQl DB. Thanks, Hari --