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
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
> 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
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
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
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: