Thanks Alex I’ll try that, I think that the next version of the numericSTepper should have the possibility to set the position of the arrows, I want to use the horizontal layout to use it as a page navigator and it make more sense to have the arrows displaied horizontaly, I also want to give the possibility to use the test input field to select the page you want without having to step trought all the ones before, that’s why I decided to use the numericStepper.

 


Da: [email protected] [mailto:[email protected]] Per conto di alex_harui
Inviato: marted� 7 giugno 2005 4.04
A: [email protected]
Oggetto: [flexcoders] Re: horizontal numeric stepper

 

Your sample didn't have a call to inputField.move(), which should
reposition the inputfield.

You may have to override drawFocus() or adjustFocusRect() to get the
focus ring to look right.


--- In [email protected], "Alistair McLeod" <[EMAIL PROTECTED]>
wrote:
> Hi Paulo.

> Since you're overriding layoutChildren(), you probably need to
override
> measure() too. Check the code for NumericStepper in
FlexForFlash1.5.zip for
> a clue to whats going on there.

> Cheers,

> Ali

> --
> Alistair McLeod
> Development Director
> iteration::two
>  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]

> Office:  +44 (0)131 338 6108

> This e-mail and any associated attachments transmitted with it may
contain
> confidential information and must not be copied, or disclosed, or
used by
> anyone other than the intended recipient(s). If you are not the
intended
> recipient(s) please destroy this e-mail, and any copies of it,
immediately.

> Please also note that while software systems have been used to try
to ensure
> that this e-mail has been swept for viruses, iteration::two do not
accept
> responsibility for any damage or loss caused in respect of any
viruses
> transmitted by the e-mail. Please ensure your own checks are
carried out
> before any attachments are opened.


>
>   _____ 
>
> From: [email protected]
[mailto:[email protected]] On
> Behalf Of Paolo Bernardini
> Sent: 05 June 2005 15:02
> To: [email protected]
> Subject: R: [flexcoders] horizontal numeric stepper
>
>
>
> Thanks for the reply but it doesn't look that easy. First of all
I'm not
> able to move the input field even if I hardcoded a numeric value,
second
> when the componet get focus you see the focus highlight with the
same shape
> of the original NumericStepper.
>
> This is the code that I'm using:
>

>
> class HorizontalNumericStepper extends mx.controls.NumericStepper
>
> {
>
>             public function HorizontalNumericStepper()
>
>             {
>
>             }
>
>             //
>
>             function layoutChildren():Void
>
>             {
>
>                         var w = nextButton_mc.preferredWidth;
>
>                         var h = prevButton_mc.preferredHeight;
>
>                         var h2 = nextButton_mc.preferredHeight;
>
>                        
>
>                         nextButton_mc._x = 0;
>
>                         nextButton_mc._y = 0;
>
>                         nextButton_mc.setSize(w, h2);
>
>                         prevButton_mc._x = layoutWidth - w;
>
>                         prevButton_mc._y = layoutHeight - h;
>
>                         prevButton_mc.setSize(w, h);
>
>                        
>
>                         inputField.setSize(layoutWidth - w + 1,
> layoutHeight);
>
>                         StepTrack_mc._width = w;
>
>                         StepTrack_mc._x = 18; // this doesn't do
anything
>
>                         StepTrack_mc._height = layoutHeight - (h2 +
h);
>
>                         StepTrack_mc._y = h;
>
>                        
>
>             }
>
> }
>

>

>
>   _____ 
>
> Da: [email protected] [mailto:[email protected]]
Per conto
> di JesterXL
> Inviato: sabato 4 giugno 2005 19.41
> A: [email protected]
> Oggetto: Re: [flexcoders] horizontal numeric stepper
>

>
> Override NumericStepper's layoutChildren method.
>
> Currently, it's:
>
> function layoutChildren():Void
> {
>   var w = nextButton_mc.preferredWidth;
>   var h = prevButton_mc.preferredHeight;
>   var h2 = nextButton_mc.preferredHeight;
>  
>   nextButton_mc._x = layoutWidth - w;
>   nextButton_mc._y = 0;
>    nextButton_mc.setSize(w, h2);
>   prevButton_mc._x = layoutWidth - w;
>   prevButton_mc._y = layoutHeight - h;
>    prevButton_mc.setSize(w, h);
>
>   inputField.setSize(layoutWidth - w + 1, layoutHeight);
>   StepTrack_mc._width = w;
>   StepTrack_mc._x = layoutWidth - StepTrack_mc._width;
>   StepTrack_mc._height = layoutHeight - (h2 + h);
>   StepTrack_mc._y = h;
> }
>
> simply override, and modify the positoin of next and prev button.
>
> ----- Original Message -----
> From: "Paolo Bernardini" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Saturday, June 04, 2005 9:39 AM
> Subject: [flexcoders] horizontal numeric stepper
>
>
> Any idea how to implement an horizontal numeric stepper with left
and
> right arrows instead of up and down ones. like this: < 10 >
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>   _____ 
>
>
> Passa a QUIZIL SuperMail !
>
> Con 40 MBytes di spazio per casella (a richiesta anche 100),
spedizione ad
> alta velocit` di messaggi grandi fino a 20 Mbytes,
> WebMail di alta qualit`, la configurazione gratuita di SPF e,
naturalmente,
> Antivirus, Antispam, POP e IMAP, piy il backup settimanale.
> SuperMail h integrabile con WebFax e WebAdmin.
> Se preferisci l'indipendenza puoi portare un MailGateway entro la
tua
> azienda, ed usarlo per attivare le funzioni cooperative di Outlook !
>
> Attiva QUIZIL SuperMail con una email a [EMAIL PROTECTED]
>
>
>   _____ 
>
>
>
>
>
>   _____ 
>
> Yahoo! Groups Links
>
>
> *      To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>  
>
> *      To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>  
>
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
> <http://docs.yahoo.com/info/terms/> .








Passa a QUIZIL SuperMail !

Con 40 MBytes di spazio per casella (a richiesta anche 100), spedizione ad alta velocit� di messaggi grandi fino a 20 Mbytes,
WebMail di alta qualit�, la configurazione gratuita di SPF e, naturalmente, Antivirus, Antispam, POP e IMAP, pi� il backup settimanale.
SuperMail � integrabile con WebFax e WebAdmin.
Se preferisci l'indipendenza puoi portare un MailGateway entro la tua azienda, ed usarlo per attivare le funzioni cooperative di Outlook !

Attiva QUIZIL SuperMail con una email a [EMAIL PROTECTED]







Yahoo! Groups Links

Reply via email to