RE: [flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-30 Thread Ian Skinner










Yeah Tim, that worked.  height={panel1.height
- 160}  Now the really cool trick would be have the 160 be based on the
height of the two controls above the grid.  But for now, this is great.  



Now I am off to the biggest chalenge  to
date.  Creating some behavious, states and maybe a transition.  Not sure where
to even start.



--
Ian
 Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 | |
- Binary Soduko
| | |
-

C code. C code run. Run code run. Please!
- Cynthia Dunning






Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



---BeginMessage---













Hi Ian,

The first example was almost correct.  This will work:

mx:DataGrid height={parentPanel.height-50}/

Change parentPanel to the id of your panel.

-TH

--- In [EMAIL PROTECTED]ups.com, Ian Skinner ian.skinner@... 
wrote:

 Iâm not having much luck with this.  If I put it like you 
suggest I get an error about not allowing strings here.
 
 {parentPanel.measuredHeight}-50
 
  
 
 If I move the bracket, the error is not thrown, but my grid does 
not show up.
 
 {parentPanel.measuredHeight-50}
 
  
 
 Ian,
 
 The code should have been:
 
 mx:DataGrid height={parentPanel.measuredHeight}-50/
 
 -TH
 
  
 
  
 
 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA
 
 -
 | 1 |   |
 -  Binary Soduko
 |   |   |
 -
 
 C code. C code run. Run code run. Please!
 - Cynthia Dunning
 
  
 
 Confidentiality Notice:  This message including any
 attachments is for the sole use of the intended
 recipient(s) and may contain confidential and privileged
 information. Any unauthorized review, use, disclosure or
 distribution is prohibited. If you are not the
 intended recipient, please contact the sender and
 delete any copies of this message. 
 
 
 
 Ian,
 
 The code should have been:
 
 mx:DataGrid height={parentPanel.measuredHeight}-50/
 
 -TH
 
 --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com 
ups.com, Tim Hoff TimHoff@ wrote:
 
  
  Hi Ian,
  
  Still pluggin along I see. I'd be intrested to see your code 
when 
 your
  done.
  
  You could base the height of the grid on the panel container. 
 Adjust
  the height to compensate for the other controls in the panel 
above 
 the
  grid.
  
  mx:DataGrid height={myPanel.Height}-50 /
  
  -TH
  
  
  --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com 
ups.com, Ian Skinner ian.skinner@
  wrote:
  
   I have a calendar of events type application I am building as a
  proposal to redo a venerable application with flex.
  
   I have the basic main page constructed and it work well with 
 just one
  minor annoyance. The main display consists of an absolute 
 application
  containing a single Panel. This panel is constrained to 25 
pixels 
 from
  the top, bottom, left and right edges of the application 
container.
  
   The panel is also configured as an absolute layout, containing 
 an HBox
  container with navigation controls positioned at the top, a 
small 
 grid
  of the days of the week (Monday, Tuesday, ect.) below the HBox. 
 Then
  comes the meat of the display, a second grid containing all the 
 days of
  the displayed month each showing a list of events.
  
   This grid is where I am having difficulty. If I give it an 
 absolute
  height (300) it works the way I want in that a scroll bar is 
 generated
  allowing the user the scroll through all the days and events 
 inside the
  300 pixel high box in the middle of the application. But then it 
 is hard
  coded to 300 pixels high meaning that if the browser display is 
 large
  enough a portion of the panel space is blank because the grid 
can 
 not
  expand to fill it.
  
   But if I give the grid less absolute positioning, either 
 percentages
  or position it's edges (top, bottom, ect) within the panel, the 
 size is
  not enforced. The entire application is expanded to contain all 
 the days
  and events and the entire application then scrolls. Thus losing 
the
  navigation controls off the top of the browser canvas when the 
user
  scrolls down.
  
   Is there some way to constrain the grid to a certain section 
of 
 the
  panel so that it grows and 

RE: [flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-30 Thread Ian Skinner










Easy
enough.
height={panel1.height-control1.height-control2.height}. I
have a simple sample for states, with a transition here:

That is what I tried at first, but it did
not give me the results I expected.  So I did not explore it further, it’s a
minor nicety at this point.  



What I’m really interested in is figuring
out how to link my event containers to my detail state so that I can drill down
into them.  I’ll take a look at your links, thanks.





--
Ian
 Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 | |
- Binary Soduko
| | |
-

C code. C code run. Run code run. Please!
- Cynthia Dunning






Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   



  




  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



---BeginMessage---













Easy enough. height="{panel1.height-control1.height-control2.height}". I have a simple sample for states, with a transition here:
http://www.cflex.net/showfiledetails.cfm?ChannelID=1Object=FileobjectID=422
It's based on Cairngorm, but maybe it will give you some ideas. If you ceate a model class, you can easily control state behavior with binding. The help docs have some good examples as well.
Glad to help,Tim--- In flexcoders@yahoogroups.com, "Ian Skinner" [EMAIL PROTECTED] wrote: Yeah Tim, that worked. height="{panel1.height - 160}" Now the really cool trick would be have the 160 be based on the height of the two controls above the grid. But for now, this is great. Now I am off to the biggest chalenge to date. Creating some behavious, states and maybe a transition. Not sure where to even start.-- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA  - | 1 | | - Binary Soduko | | | -  "C code. C code run. Run code run. Please!" - Cynthia DunningConfidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. Hi Ian,  The first example was almost correct. This will work:  mx:DataGrid height="{parentPanel.height-50}"/  Change "parentPanel" to the id of your panel.  -TH  --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com, "Ian Skinner" ian.skinner@  wrote:   IâEUR(tm)m not having much luck with this. If I put it like you  suggest I get an error about not allowing strings here."{parentPanel.measuredHeight}-50"If I move the bracket, the error is not thrown, but my grid does  not show up."{parentPanel.measuredHeight-50}"Ian,The code should have been:mx:DataGrid height="{parentPanel.measuredHeight}-50"/-TH--  Ian Skinner  Web Programmer  BloodSource  www.BloodSource.org  Sacramento, CA-  | 1 | |  - Binary Soduko  | | |  -"C code. C code run. Run code run. Please!"  - Cynthia DunningConfidentiality Notice: This message including any  attachments is for the sole use of the intended  recipient(s) and may contain confidential and privileged  information. Any unauthorized review, use, disclosure or  distribution is prohibited. If you are not the  intended recipient, please contact the sender and  delete any copies of this message. Ian,The code should have been:mx:DataGrid height="{parentPanel.measuredHeight}-50"/-TH--- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com  ups.com, "Tim Hoff" TimHoff@ wrote:Hi Ian,  Still pluggin along I see. I'd be intrested to see your code  when   your   done.  You could base the height of the grid on the panel container.   Adjust   the height to compensate for the other controls in the panel  above   the   grid.  mx:DataGrid height="{myPanel.Height}-50" /  -TH --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com  ups.com, "Ian Skinner" ian.skinner@   wrote:   I have a calendar of events type application I am building as a   proposal to redo a venerable application with flex.   I have the basic main page constructed and it work well with   

RE: [flexcoders] Re: Constraining a grid other then with an absolute height.

2006-06-29 Thread Ian Skinner










I’m not having much luck with this.  If I put it like you suggest I get
an error about not allowing strings here.

{parentPanel.measuredHeight}-50



If I move the bracket, the error is not thrown, but my grid does not
show up.

{parentPanel.measuredHeight-50}



Ian,

The code should have been:

mx:DataGrid height={parentPanel.measuredHeight}-50/

-TH





--
Ian
 Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 | |
- Binary Soduko
| | |
-

C code. C code run. Run code run. Please!
- Cynthia Dunning






Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 


__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___



---BeginMessage---













Ian,

The code should have been:

mx:DataGrid height={parentPanel.measuredHeight}-50/

-TH

--- In [EMAIL PROTECTED]ups.com, Tim Hoff [EMAIL PROTECTED] wrote:

 
 Hi Ian,
 
 Still pluggin along I see.  I'd be intrested to see your code when 
your
 done.
 
 You could base the height of the grid on the panel container.  
Adjust
 the height to compensate for the other controls in the panel above 
the
 grid.
 
 mx:DataGrid height={myPanel.Height}-50 /
 
 -TH
 
 
 --- In [EMAIL PROTECTED]ups.com, Ian Skinner ian.skinner@
 wrote:
 
  I have a calendar of events type application I am building as a
 proposal to redo a venerable application with flex.
 
  I have the basic main page constructed and it work well with 
just one
 minor annoyance. The main display consists of an absolute 
application
 containing a single Panel. This panel is constrained to 25 pixels 
from
 the top, bottom, left and right edges of the application container.
 
  The panel is also configured as an absolute layout, containing 
an HBox
 container with navigation controls positioned at the top, a small 
grid
 of the days of the week (Monday, Tuesday, ect.) below the HBox. 
Then
 comes the meat of the display, a second grid containing all the 
days of
 the displayed month each showing a list of events.
 
  This grid is where I am having difficulty. If I give it an 
absolute
 height (300) it works the way I want in that a scroll bar is 
generated
 allowing the user the scroll through all the days and events 
inside the
 300 pixel high box in the middle of the application. But then it 
is hard
 coded to 300 pixels high meaning that if the browser display is 
large
 enough a portion of the panel space is blank because the grid can 
not
 expand to fill it.
 
  But if I give the grid less absolute positioning, either 
percentages
 or position it's edges (top, bottom, ect) within the panel, the 
size is
 not enforced. The entire application is expanded to contain all 
the days
 and events and the entire application then scrolls. Thus losing the
 navigation controls off the top of the browser canvas when the user
 scrolls down.
 
  Is there some way to constrain the grid to a certain section of 
the
 panel so that it grows and shrinks in relationship to the panel but
 still not allow it to grow in relationship to the number and size 
of the
 rows and cells inside it?
 
 
  --
  Ian Skinner
  Web Programmer
  BloodSource
  www.BloodSource.org
  Sacramento, CA
 
  -
  | 1 | |
  - Binary Soduko
  | | |
  -
 
  C code. C code run. Run code run. Please!
  - Cynthia Dunning
 
  Confidentiality Notice: This message including any
  attachments is for the sole use of the intended
  recipient(s) and may contain confidential and privileged
  information. Any unauthorized review, use, disclosure or
  distribution is prohibited. If you are not the
  intended recipient, please contact the sender and
  delete any copies of this message.
 



  






---End Message---