Hi William,

Thanks for the response.
I am using 3.1.1 yeah the combobox is shrinking the data to its deafult width.
How did u solved the problem?
 I mean r u reffering to 3.2 laszlo and new datacombobox option , has this solved the problem in your case.

please respond.

thanks,
Ankit.

On 3/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Send Laszlo-user mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
         http://www.openlaszlo.org/mailman/listinfo/laszlo-user
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Laszlo-user digest..."


Today's Topics:

   1. dynamic combobox and listitem show incomplete text (ankit rastogi)
   2. Re: dynamic combobox and listitem show incomplete text
      (William Krick)
   3. setting dataset src from external file at startup (William Krick)
   4. Secret to getting scroll wheel to work? (James Howe)


----------------------------------------------------------------------

Message: 1
Date: Wed, 29 Mar 2006 10:37:53 -0800
From: "ankit rastogi" <[EMAIL PROTECTED]>
Subject: [Laszlo-user] dynamic combobox and listitem show incomplete
        text
To: [email protected]
Message-ID:
        <[EMAIL PROTECTED] >
Content-Type: text/plain; charset="iso-8859-1"

Hi,

  I am populating a combobox with dynamic dataset and at the same time I
also create these combobox and listitem dynamicaly.
   The problem is unual in the sense that whatever item selected from drop
down list is displayed partially on the combobox.
  By partially i mean if listitem is .eg :
    6000000,id,asdsadsads
   only 6000000.i is displayed.

  While dropdown shows the items complete text but as user selects it , it
get trimmed from its end.

    Code  ---
// listitem class defined.

<class name="reconlistitem" extends="listitem"
datapath="remedyds:/reconciliationXML/setupXML/fieldInformationXML/fieldIdentifierListXML/fieldIdentifierXML"

     value="$path{'@name'}" width="${parent.width}">
       <attribute name="text" value="$path{'@name'}" type="string"/>
       <attribute name="widgettype" type="string" value="listitem"/>
       <!-- constrain the text to the text attribute of listitem -->
       <text x="10" width="${parent.width}" text="${classroot.text}"
fgcolor="0x4B4B4B" font="Arial"/>
</class>

// combo box xlass defined.

<class name="solidcombo" extends="combobox">
  <attribute name="widgettype" type="string" value="combo"/>
</class>

// instantialtion code is like this

      combo=new solidcombo(fieldholderview);
      combo.setAttribute('id',name);
      combo.setWidth(180);
      combo.setAttribute('defaulttext','choose one ....');
      combo.setAttribute('editable',false);
      droplistitem=new reconlistitem(combo);
      droplist.setWidth(180);


The important point here is that if I use static combo box menaing if i do
not instantiate listitem and combobox it will work fine.

thanks,
Ankit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20060329/295186b5/attachment-0001.html

------------------------------

Message: 2
Date: Wed, 29 Mar 2006 13:57:24 -0500
From: "William Krick" < [EMAIL PROTECTED]>
Subject: Re: [Laszlo-user] dynamic combobox and listitem show
        incomplete text
To: <[email protected] >
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"

I believe this was a width bug in the combobox where it was reverting to the
default width internally when the content was changed.

We were seeing it with dynamically filled comboboxes in our app too.

However, I think it was fixed in the latest version of laszlo because it
doesn't seem to be happening anymore.

What version of OpenLaszlo are you using?


  -----Original Message-----
  From: ankit rastogi [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, March 29, 2006 1:38 PM
  To: [email protected]
  Subject: [Laszlo-user] dynamic combobox and listitem show incomplete text


  Hi,

    I am populating a combobox with dynamic dataset and at the same time I
also create these combobox and listitem dynamicaly.
     The problem is unual in the sense that whatever item selected from drop
down list is displayed partially on the combobox.
    By partially i mean if listitem is .eg :
      6000000,id,asdsadsads
     only 6000000.i is displayed.

    While dropdown shows the items complete text but as user selects it , it
get trimmed from its end.

      Code  ---
  // listitem class defined.

  <class name="reconlistitem" extends="listitem"
datapath="remedyds:/reconciliationXML/setupXML/fieldInformationXML/fieldIden
tifierListXML/fieldIdentifierXML"
       value="$path{'@name'}" width="${parent.width}">
         <attribute name="text" value="$path{'@name'}" type="string"/>
         <attribute name="widgettype" type="string" value="listitem"/>
         <!-- constrain the text to the text attribute of listitem -->
         <text x="10" width="${ parent.width}" text="${classroot.text}"
fgcolor="0x4B4B4B" font="Arial"/>
  </class>

  // combo box xlass defined.

  <class name="solidcombo" extends="combobox">
    <attribute name="widgettype" type="string" value="combo"/>
  </class>

  // instantialtion code is like this

        combo=new solidcombo(fieldholderview);
        combo.setAttribute('id',name);
        combo.setWidth(180);
        combo.setAttribute('defaulttext','choose one ....');
        combo.setAttribute('editable',false);
        droplistitem=new reconlistitem(combo);
        droplist.setWidth(180);


   The important point here is that if I use static combo box menaing if i
do not instantiate listitem and combobox it will work fine.

  thanks,
  Ankit.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20060329/30d3636a/attachment-0001.html

------------------------------

Message: 3
Date: Wed, 29 Mar 2006 17:19:44 -0500
From: "William Krick" <[EMAIL PROTECTED]>
Subject: [Laszlo-user] setting dataset src from external file at
        startup
To: "Laszlo-User" <[email protected]>
Message-ID: < [EMAIL PROTECTED]>
Content-Type: text/plain;       charset="iso-8859-1"

I need to be able to read URLs out of a configuration file and set my
datasets' "src" attributes when my laszlo app starts up.  I can't seem to
figure out the syntax.

Anyone know how to go about doing this?



------------------------------

Message: 4
Date: Thu, 30 Mar 2006 08:20:13 -0500
From: "James Howe" < [EMAIL PROTECTED]>
Subject: [Laszlo-user] Secret to getting scroll wheel to work?
To: [email protected]
Message-ID: < [EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; delsp=yes;
        charset=iso-8859-15

Is there some special trick needed to get the mouse scroll wheel to work
with a Laszlo application?  I've read the documentation and it seems that
it should be working, but it's not.  I've also noticed that the scroll
wheel doesn't work with the Laszlo Explorer application.  However, in
Laszlo Mail the scroll wheel does work.  What's the secret?

Thanks!
--
James Howe

Contact: http://public.xdi.org/=James.Howe


------------------------------

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user


End of Laszlo-user Digest, Vol 17, Issue 59
*******************************************

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to