Help understanding BrowseDialog inheritance


Author
Message
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Thanks a lot Trent, that is exactly the type of control I want to have for my BDs.



I have 2 more issues, if you don't mind Cool



1.- When controlling the SearchFields like this, the layout will not be properly fit, so an space will be left between the SearchFields and the ListView, is there a way to control that too? see attached image.



2.- As for the BrowseResultLayout, could you provide a quick sample code of how to remove one columns from the listview?

Edhy Rijo

Attachments
SF DB Sample.png (108 views, 43.00 KB)
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Edhy,



Keep this one thing in mind and it should make things easier...these are just properties, classes, and collections. 100% of the control can be dynamically set and rebuilt to your liking. This is the same thing that is done via the type editors, but in your case, you would just be doing this manually.





1.- When controlling the SearchFields like this, the layout will not be properly fit, so an space will be left between the SearchFields and the ListView, is there a way to control that too? see attached image.




Yup...just set the FormLayout property to whatever you like in code:



Me.FormLayout.LeftSplitterDistance = 100




This is the property that you will set in the example that you gave. Even though it is called LeftSplitterDistance, it is used for the Top and Bottom as well.





2.- As for the BrowseResultLayout, could you provide a quick sample code of how to remove one columns from the listview?





Me.BrowseResultsLayout.BrowseColumns.Clear()



Me.BrowseResultsLayout.DisplayFieldNames.Clear()

Me.BrowseResultsLayout.DisplayFieldNames.Add("cust_Company")



Dim bc As New MicroFour.StrataFrame.UI.Windows.Forms.BrowseColumnItem()

bc.ColumnHeaderText = "Company"

bc.ColumnHeaderWidth = 200

bc.ColumnTextAlignment = Windows.Forms.HorizontalAlignment.Left

bc.FormatString = "{0}"



Me.BrowseResultsLayout.BrowseColumns.Add(bc)

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Trent L. Taylor (08/10/2009)
Edhy, keep this one thing in mind and it should make things easier...these are just properties, classes, and collections. 100% of the control can be dynamically set and rebuilt to your liking. This is the same thing that is done via the type editors, but in your case, you would just be doing this manually.




Thanks again, Trent. Wow, this is just great to have such control over the BD and opens up a whole new ideas on how to build my applications, very cool things can be done with the BrowseDialog control. Thanks a lot for the sample code.


Edhy Rijo

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
No problem...Glad to help! Smile
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search