From: Dionyziz Z. <dio...@ho...> - 2004-03-06 13:22:59
|
<html><div style='background-color:'><DIV> <P>Voltron(genuis_coder) has recommended that we used another tab control for Node. The control was coded by genuis_coder.<BR>You can see an example containing this tab control at <A href="http://node.sourceforge.net/dev/TabHeaderControl.zip">http://node.sourceforge.net/dev/TabHeaderControl.zip</A>.<BR>Please, take a look at the control, and let us know what you think. Any suggestions are appreciated.</P> <P>Some things I've found:</P> <P>Bug: gTab1_Change has "Index" as an argument, which would cause problems if we created a gTab objects collection.</P> <P>Things Missing:<BR>1) It should support icons for each tab, but it should also give the ability to have tabs without an icon.<BR>2) Must provide an easy method to read the width and left of each tab.<BR>3) Must give the ability to highlight and unhighlight a single tab.<BR>4) Must follow the standart tab properties(as provided by common tab controls, such as TabStrip, for example).<BR>5) Should provide an OLEDragDrop event.<BR>6) Should provide a MouseDown event.</P> <P>The following control structure would be prefered:<BR>- ImageList sets/returns a list of images<BR>- Tabs containing a collection with tabs, with Add, Remove, *Item* and Count properties/methods.<BR>- SelectedItem should provide a Tab interface.<BR>- Tab Items(either .SelectedItem, or .Tabs.Item(index)) should contain:<BR> - Image, the index of the image(if 0 there's no image)<BR> - Caption, the text of the tab.(should be a read/write property)<BR> - Index, the number of the tab.(prefered to be a one-based number, i.e. the first tab has index one)<BR> - Key, the key of the tab(not necessary for now, but as you provide an interface for this, you should give this ability)<BR> - Left/Width indicating the position and dimentions of the tab.<BR> - Selected, whether the tab is selected or not. Should also give the ability to set the tab as selected.<BR> - Tag (not necessary, though)<BR> - Highlighted property, should be a read/write one.</P> <P>Some good points of the control:<BR>1) The design is web-like flat and matches the style of the program.<BR>2) Lets the developer change the colors of the control.<BR>3) Provides a nice scrolling feature. (Suggestion: Scrolling should also occur when the user "MouseDowns" the < or > button for some seconds(without MouseUp-ing))<BR>4) If a tab is out of the visible area, it scrolls the control to make it visible, when it's clicked.<BR>5) Has a nice hOver effect.<BR>6) Everything is drawn in runtime.<BR><BR>dionyziz.</P></DIV></div><br clear=all><hr>Protect your PC - <a href="http://g.msn.com/8HMAEN/2755??PS=">Click here</a> for McAfee.com VirusScan Online </html> |