JasonReid Posted May 20, 2011 Posted May 20, 2011 Hi all I did a little mock-up of these forums using the unigui StringGrid to have a little play with the onDrawCell event.. The results were very pleasing Just thought I'd share Quote
Administrators Farshad Mohajeri Posted May 20, 2011 Administrators Posted May 20, 2011 Hi all I did a little mock-up of these forums using the unigui StringGrid to have a little play with the onDrawCell event.. The results were very pleasing Just thought I'd share Hmm.. looks like a screen shot of our forums! Quote
JasonReid Posted May 20, 2011 Author Posted May 20, 2011 Hmm.. looks like a screen shot of our forums! Its cool yeah.. I couldn't match the fonts and colors exactly, and some of the images are missing, but it just goes to show what you can do with UniGUI in 5 mins. procedure TMainForm.Grid1DrawCell(Sender: TObject; ACol, ARow: Integer; var Value: string; Attribs: TUniCellAttribs); begin If ACol = 0 then Attribs.Color := $00f6f6f6; If ACol = 2 then Attribs.Color := $00f6f6f6; end; procedure TMainForm.UniFormCreate(Sender: TObject); begin Grid1.ColWidths[0] := 60; Grid1.ColWidths[1] := 400; Grid1.ColWidths[2] := 100; Grid1.ColWidths[3] := 200; Grid1.Cells[1,0] := '<b>General</b><br>' + 'General discussions'; Grid1.Cells[1,1] := '<b>Bug reports</b><br>' + 'Forum dedicated to bug reports'; Grid1.Cells[2,0] := '317 Topics<br>' + '1880 Replies'; Grid1.Cells[2,1] := '313 Topics<br>' + '937 Replies'; Grid1.Cells[3,0] := 'Today, 08:30 AM<br>' + '<b>In:</b>Gradients and panels<br>' + '<b>By:</b>Jason Reid'; Grid1.Cells[3,1] := 'Today, 07:33 AM<br>' + '<b>In:</b>URLParameters<br>' + '<b>By:</b>richard wu'; Grid1.Cells[0,0] := '<img src="f_unread.png">'; Grid1.Cells[0,1] := '<img src="f_unread.png">'; end; Quote
Administrators Farshad Mohajeri Posted May 20, 2011 Administrators Posted May 20, 2011 We can rename uniGUI to some catchy name such as WebExpress or something. Quote
Administrators Farshad Mohajeri Posted May 27, 2011 Administrators Posted May 27, 2011 Is there a way to merge cells in TUniStringGrid? I don't think. Perhaps if Ext JS has a handy way for it we may be able to implement in uniGUI too. Quote
ldb68 Posted May 31, 2011 Posted May 31, 2011 I don't think. Perhaps if Ext JS has a handy way for it we may be able to implement in uniGUI too. Only way for merging cell seems using Pivot Grid. You can check for sample here. http://dev.sencha.com/deploy/ext-3.3.0/examples/pivotgrid/people.html http://www.mlynn.org/2011/01/wp-extjs-pivot-example/ tnks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.