Hi,
thought it best to start a new topic for what is a combined announcement really.
I have added a new control to my EsGRID / ExGRID grid control package; namely tBOX.
tBOX is a professional grade property-box control which, like the ExGRID control, is built atop the EsGRID control. tBOX is a reworking of our previously freely available property-box control which was a part of the Nexus package. However, tBOX is one hell of a lot easier to use!

It is very easy to use and offers just about everything you might require in a property-box control. Indeed, I have used it very successfully in my Pyrex visual report designer (by way of an example of tBOX being used in a commercial program).
The following image shows a basic tBOX in action.

Here is the Purebasic code for creating the above tBOX :
Code: Select all
IncludePath "..\..\"
XIncludeFile "tBOX\tBOX.pbi"
Define myBox.tBOX
OpenWindow(0,0,0,300,430,"©nxSoftware - tBOX demo",#PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_ScreenCentered | #PB_Window_Tool | #PB_Window_Invisible | #WS_CLIPCHILDREN)
;Create an instance of our tBOX control and check the return value.
myBox = tBOX_Create(0, 0, WindowWidth(0), WindowHeight(0), 18, 100, 150, #tBOX_AutoStretchValueColumn|#tBOX_AlwaysShowSelection|#tBOX_GridLines|#tBOX_GradientTitles|#tBOX_EditableLabels)
If myBox = 0
MessageRequester("tBOX", "Could not create a tBOX control!")
CloseWindow(0)
End
EndIf
;Add items. Note that many optional parameters are left out in the following calls.
myBox\AddTitleItem(-1, "Gadget", "(String gadget)")
myBox\AddComboItem(-1, "Use #Pb_Any", "False", "True"+Chr(10)+"False")
myBox\AddStringItem(-1, "Constant", "#str1")
myBox\AddTitleItem(-1, "Position")
myBox\AddPositiveIntegerItem(-1, "X", 100, #tBOX_DefaultFont, #tBOX_DefaultFont, #tBOX_RightJustify)
myBox\AddPositiveIntegerItem(-1, "Y", 100, #tBOX_DefaultFont, #tBOX_DefaultFont, #tBOX_RightJustify)
myBox\AddPositiveIntegerItem(-1, "Width", 100, #tBOX_DefaultFont, #tBOX_DefaultFont, #tBOX_RightJustify)
myBox\AddPositiveIntegerItem(-1, "Height", 100, #tBOX_DefaultFont, #tBOX_DefaultFont, #tBOX_RightJustify)
myBox\AddTitleItem(-1, "Flags")
myBox\AddComboItem(-1, "Numeric", "False", "True"+Chr(10)+"False")
myBox\AddComboItem(-1, "Password", "False", "True"+Chr(10)+"False")
myBox\AddComboItem(-1, "Read Only", "False", "True"+Chr(10)+"False")
myBox\AddComboItem(-1, "Lower Case", "False", "True"+Chr(10)+"False")
myBox\AddComboItem(-1, "Upper Case", "False", "True"+Chr(10)+"False")
myBox\AddComboItem(-1, "Borderless", "False", "True"+Chr(10)+"False")
myBox\AddTitleItem(-1, "Colors")
myBox\AddColorItem(-1, "Front Color", #Black)
myBox\AddColorItem(-1, "Back Color", #Green)
myBox\AddTitleItem(-1, "Fonts")
myBox\AddFontWithColorsItem(-1, "Font", "Arial", 12, #PB_Font_Italic|#PB_Font_Bold, #Blue)
myBox\AddTitleItem(-1, "Custom")
myBox\AddCustomTextDialogItem(-1, "Custom")
HideWindow(0, 0)
Repeat
Event = WaitWindowEvent()
Select Event
Case #PB_Event_SizeWindow
;DO NOT use ResizeGadget() on a tBOX control.
;============================================
myBox\Resize(#PB_Ignore, #PB_Ignore, WindowWidth(0), WindowHeight(0))
Case #PB_Event_Gadget
Select EventGadget()
EndSelect
EndSelect
Until Event = #PB_Event_CloseWindow

Please see the nxSoftware site for more details on the tBOX control (as well as EsGRID and ExGRID of course). You will of course find it lurking in the Grid Controls section.
The upshot of all this is that our commercial grid controls package now includes 3 controls; the original EsGRID control, the enhanced ExGRID control and the newly available tBOX control. All are available now to existing license holders (of the combined EsGRID / ExGRID package) at no extra charge.
New customers will need to purchase a license before access to the download section can be granted.
The download of EsGRID / ExGRID has been simplified. Now, a single download will yield access to all controls in one folder etc.
Please note that tBOX has no user manual at present. Look to the 2 demos to get a real good idea of how it all works though. The tBOX header file (tBOX_HeaderFile.pbi) lists and describes all constants (styles, colors etc.) as well as listing all interface methods etc. At this time I do not intend creating a manual because I really do not think there is the need. I shall of course answer all questions people might throw my way anyhow.
Please use this thread for all EsGRID / ExGRID / tBOX questions etc. (or the nxSoftware forums) rather than the original EsGRID / ExGRID threads. Saves too much monkeying around!
Regards.
Stephen.