[vwnc] Input-Field

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] Input-Field

Steffen Märcker
Hi,

I'd like to have input fields in my applications GUI to display the paths  
to some files. Because a path can be much longer than a particular field  
is, I want to display the string aligned right if it is too long.  
Otherwise I want the standard left alignment. Is there something included  
in vw to realize this behaviour?

Thanks in advance,
Steffen
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Input-Field

Terry Raymond
Steffen

An alternative is to use the tool tip to show the entire
path.

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Steffen Märcker
> Sent: Monday, July 06, 2009 3:19 PM
> To: vwnc
> Subject: [vwnc] Input-Field
>
> Hi,
>
> I'd like to have input fields in my applications GUI to display the paths
> to some files. Because a path can be much longer than a particular field
> is, I want to display the string aligned right if it is too long.
> Otherwise I want the standard left alignment. Is there something included
> in vw to realize this behaviour?
>
> Thanks in advance,
> Steffen
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Input-Field

thomas.hawker
Nevertheless, right-justification is useful in this instance, because you are more likely to change the right-most characters.

If it's possible, I think you might be able to do it by changing the text alignment manually in the postBuildWith: method.  I'm not sure how to do that exactly (don't have an image handy), but it might be something like:

        (builder componentAt: #inputField) widget controller rightAlign

Cheers!
 
Tom Hawker
--------------------------
Senior Framework Developer
--------------------------
Home +1 (408) 274-4128
Office +1 (408) 576-6591
Mobile +1 (408) 835-3643
 
-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Terry Raymond
Sent: Monday, July 06, 2009 1:06 PM
To: [hidden email]; 'vwnc'
Subject: Re: [vwnc] Input-Field

Steffen

An alternative is to use the tool tip to show the entire
path.

Terry
 
===========================================================
Terry Raymond
Crafted Smalltalk
80 Lazywood Ln.
Tiverton, RI  02878
(401) 624-4517      [hidden email]
<http://www.craftedsmalltalk.com>
===========================================================

> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of Steffen Märcker
> Sent: Monday, July 06, 2009 3:19 PM
> To: vwnc
> Subject: [vwnc] Input-Field
>
> Hi,
>
> I'd like to have input fields in my applications GUI to display the paths
> to some files. Because a path can be much longer than a particular field
> is, I want to display the string aligned right if it is too long.
> Otherwise I want the standard left alignment. Is there something included
> in vw to realize this behaviour?
>
> Thanks in advance,
> Steffen
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc

IMPORTANT NOTICE
Email from OOCL is confidential and may be legally privileged.  If it is not
intended for you, please delete it immediately unread.  The internet
cannot guarantee that this communication is free of viruses, interception
or interference and anyone who communicates with us by email is taken
to accept the risks in doing so.  Without limitation, OOCL and its affiliates
accept no liability whatsoever and howsoever arising in connection with
the use of this email.  Under no circumstances shall this email constitute
a binding agreement to carry or for provision of carriage services by OOCL,
which is subject to the availability of carrier's equipment and vessels and
the terms and conditions of OOCL's standard bill of lading which is also
available at http://www.oocl.com.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] Input-Field

Steffen Märcker
Today I've looked again at this alignment problem.
I've noticed that the right (and center) alignement setting of input  
fields applies only to short texts. E.g. if I set a string  
(programmatically at the widgets model) which is longer than an input  
field, it wont be aligned at the right. Is this intended? I'd expect the  
text to be right justified always, except while editing. What can I do to  
achieve this?

Thanks in advance,
Steffen Märcker


Am 06.07.2009, 23:12 Uhr, schrieb <[hidden email]>:

> Nevertheless, right-justification is useful in this instance, because  
> you are more likely to change the right-most characters.
>
> If it's possible, I think you might be able to do it by changing the  
> text alignment manually in the postBuildWith: method.  I'm not sure how  
> to do that exactly (don't have an image handy), but it might be  
> something like:
>
> (builder componentAt: #inputField) widget controller rightAlign
>
> Cheers!
> Tom Hawker
> --------------------------
> Senior Framework Developer
> --------------------------
> Home +1 (408) 274-4128
> Office +1 (408) 576-6591
> Mobile +1 (408) 835-3643
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On  
> Behalf Of Terry Raymond
> Sent: Monday, July 06, 2009 1:06 PM
> To: [hidden email]; 'vwnc'
> Subject: Re: [vwnc] Input-Field
>
> Steffen
>
> An alternative is to use the tool tip to show the entire
> path.
>
> Terry
> ===========================================================
> Terry Raymond
> Crafted Smalltalk
> 80 Lazywood Ln.
> Tiverton, RI  02878
> (401) 624-4517      [hidden email]
> <http://www.craftedsmalltalk.com>
> ===========================================================
>> -----Original Message-----
>> From: [hidden email] [mailto:[hidden email]] On  
>> Behalf Of Steffen Märcker
>> Sent: Monday, July 06, 2009 3:19 PM
>> To: vwnc
>> Subject: [vwnc] Input-Field
>>
>> Hi,
>>
>> I'd like to have input fields in my applications GUI to display the  
>> paths
>> to some files. Because a path can be much longer than a particular field
>> is, I want to display the string aligned right if it is too long.
>> Otherwise I want the standard left alignment. Is there something  
>> included
>> in vw to realize this behaviour?
>>
>> Thanks in advance,
>> Steffen
>> _______________________________________________
>> vwnc mailing list
>> [hidden email]
>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
>
> _______________________________________________
> vwnc mailing list
> [hidden email]
> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
>
> IMPORTANT NOTICE
> Email from OOCL is confidential and may be legally privileged.  If it is  
> not
> intended for you, please delete it immediately unread.  The internet
> cannot guarantee that this communication is free of viruses, interception
> or interference and anyone who communicates with us by email is taken
> to accept the risks in doing so.  Without limitation, OOCL and its  
> affiliates
> accept no liability whatsoever and howsoever arising in connection with
> the use of this email.  Under no circumstances shall this email  
> constitute
> a binding agreement to carry or for provision of carriage services by  
> OOCL,
> which is subject to the availability of carrier's equipment and vessels  
> and
> the terms and conditions of OOCL's standard bill of lading which is also
> available at http://www.oocl.com.

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc