Loading
  Password:
  Lost password?  
LogoutLOGOUT
Join as a MemberJoin as a Member
 
FlashMove Live Support



Go Back   FlashMove Forums > Flash Components > Actionscript 2.0 Components

ReplyREPLY THREAD
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-02-2005, 08:21 PM
Scottae's Avatar
Scottae Scottae is offline
God Moderator
 
Join Date: Oct 2003
Location: Atlanta, Ga. USA
Posts: 6,531
Scottae is on a distinguished road
Exclamation DataGrid Component V2 Header Gradient

Sometime MM frustrates the crap out of me. I wanted to do something as simple as make the headers of a DataGrid a solid color. Unfortunately MM figured that everyone wants a sassy gradient on their header buttons no matter what. It seems you have to jump through a few hoops in order to get the headers to be a solid color.

http://blog.gilluminate.com/?b=20041102233944

How hard would it have been for MM to make one more style for the DataGrid headers?
__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius

Blog | Shared Items
  #2  
Old 06-02-2005, 08:42 PM
cpigg cpigg is offline
Registered User
 
Join Date: May 2005
Posts: 64
cpigg is on a distinguished road
Can you put a tree inside of a datagrid

I put a tree inside of a datagrid but when i expand the tree element the datagrid row will not expand with it. Any Ideas?
  #3  
Old 06-02-2005, 10:03 PM
FrozenMedia's Avatar
FrozenMedia FrozenMedia is offline

Frozen Moderator
 
Join Date: Apr 2003
Location: United Kingdom
Posts: 2,701
FrozenMedia is on a distinguished road
Hey Scottae,

Just read that hack, and I think the following might be safer (this is my comment on there):

Quote:
Instead of modifying the core Macromedia classes, a better option would be to either:

- Copy DataGrid.as into the same directory as the FLA and modify it there, this will take precedence over the other classpath.

- Subclass DataGrid like so:
Actionscript:
class SolidDataGrid extends mx.controls.DataGrid {
  function drawHeaderBG() {
    // Edited code here
  }
}

And change the class linkage for the DataGrid component you dragged into your library from StandardComponents.fla so that it uses your custom class and is called SolidDataGrid.

This way you don't break the functionality of the standard component.

Example file attached,

@cpigg, I'm looking at your other thread now, it's generally not good practice to send out emails and post questions in another thread but I know it can be frustrating when no-one answers for a while.
Attached Files
File Type: zip SolidHeader.zip (109.7 KB, 56 views)
__________________
Blog: http://www.richardleggett.co.uk | If your happy with the help, let us know about it

Last edited by FrozenMedia : 06-02-2005 at 10:43 PM.
  #4  
Old 06-02-2005, 10:32 PM
cpigg cpigg is offline
Registered User
 
Join Date: May 2005
Posts: 64
cpigg is on a distinguished road
Big Grin thanks for the reply

I got the dataGrid zip thing that you attached. The solid datagrid that was in the zip has a compilation error. Says could not load the soliddatagrid class. Was a class file left out!
  #5  
Old 06-02-2005, 10:43 PM
FrozenMedia's Avatar
FrozenMedia FrozenMedia is offline

Frozen Moderator
 
Join Date: Apr 2003
Location: United Kingdom
Posts: 2,701
FrozenMedia is on a distinguished road
oops, fixed!
__________________
Blog: http://www.richardleggett.co.uk | If your happy with the help, let us know about it
  #6  
Old 06-03-2005, 02:51 PM
Scottae's Avatar
Scottae Scottae is offline
God Moderator
 
Join Date: Oct 2003
Location: Atlanta, Ga. USA
Posts: 6,531
Scottae is on a distinguished road
That seems better, but then I won't get code hints in my AS. I am lazy!
__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius

Blog | Shared Items
  #7  
Old 06-03-2005, 02:54 PM
FrozenMedia's Avatar
FrozenMedia FrozenMedia is offline

Frozen Moderator
 
Join Date: Apr 2003
Location: United Kingdom
Posts: 2,701
FrozenMedia is on a distinguished road
You get code hints for everything if you use Eclipse or PrimalScript though, and you don't need to append _xml etc to the end of variable names.
__________________
Blog: http://www.richardleggett.co.uk | If your happy with the help, let us know about it
  #8  
Old 06-03-2005, 05:41 PM
Scottae's Avatar
Scottae Scottae is offline
God Moderator
 
Join Date: Oct 2003
Location: Atlanta, Ga. USA
Posts: 6,531
Scottae is on a distinguished road
Search

Nifty link my bud found. It's in French (I think), but the AS in the example download is English.

http://philflash.inway.fr/dgheader/index.html
__________________
Our greatest glory is not in never falling but in rising everytime we fall. - Confucius

Blog | Shared Items


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid Component cas120 Actionscript 2.0 Components 1 04-29-2005 10:19 PM
Component structure ADreamer_17 Actionscript 2.0 Components 6 08-05-2004 04:12 AM
Install custom component within the Component Panel? redP Flash Components v0 1 07-08-2004 06:08 PM
Datagrid Component bacro Flash Components v0 2 03-14-2004 09:49 AM
component headquarters emehmedovic Flash Components v0 1 12-12-2002 11:11 PM



All times are GMT. The time now is 01:36 PM.




Powered by vBulletin version 3.5