Re: [Gambas-user] Dynamic Controls / Grid?

2008-06-26 Thread Nate-37
Thanks Moe, I'll definitely take a look at the function you listed below. I still wonder what function/code is called for VPanels, HPanels, etc. when they arrange their controls auto-magically. I would like to see if there's anyone else that knows what magical code is called when a form starts u

Re: [Gambas-user] Dynamic Controls / Grid?

2008-06-26 Thread M0E Lnx
Ah!... then whad you need my friend is a way to determine each components width and move the rest of them accordingly Take a look at this function that I have written and use a lot. PUBLIC SUB get_object_width(sText AS String) AS Integer DIM iRetVal AS Integer DIM fvirtfrm AS Form DIM dat

Re: [Gambas-user] Dynamic Controls / Grid?

2008-06-26 Thread Nate-37
> Do you really mean (3) objects for each search result? Yes, I need 3 objects for each result. My problem is not with creating the objects, it's being able to view them. I would like an easy way to make the objects visible. Currently I can only see the first checkbox that's created. The othe

Re: [Gambas-user] Dynamic Controls / Grid?

2008-06-26 Thread M0E Lnx
Do you really mean (3) objects for each search result? In case you do, You can do it like this. Put the results in an array then run trhough the array creating the stuff like this PUBLIC SUB DYNAMIC_OBJECTS() DIM sResults as string '(this is the raw list of results) DIM sRes as string[] DIM i as

Re: [Gambas-user] Dynamic Controls / Grid?

2008-06-26 Thread Nate-37
Here's an update: I can only get one new dynamic control to show up when I add controls to a VPanel in my code. Here's my code (Inside a button_Click event), and I have a VPanel called "vpResults" DIM cb AS NEW CheckBox(vpResults) cb.Show The first checkbox shows up, but new checkboxes are jus

[Gambas-user] Dynamic Controls / Grid?

2008-06-26 Thread Nate-37
Hello, I would like to be able to create a Label, a Textbox and a Checkbox for a variable number of records. I'm not dealing with a database, I'm dealing with search results. So, if I find 3 search results, I would like to create a Label, a Textbox and a Checkbox for each search result like so: