Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3816

Best Container and object practices

$
0
0

Hello all,

I am building a new web app. I am wondering what the best practice is, with regard to bandwith use and memory use in the following scenario.

On a page, I use EmbeddWithin to create a Container Object - we’ll call it a ‘main container’ since other containers are placed non-progamatically onto this main container…

cntRemotes = New cntRemoteDevices
cntRemotes.LockLeft = True
cntRemotes.LockTop = True
cntRemotes.Visible = True
cntRemotes.EmbedWithin(Self, 411, 107, cntRemotes.Width, cntRemotes.Height)

Within the ‘main container’ other containers are placed non-progamatically onto the ‘main container’. These sub containers have many objects on them, including checkboxes, lables, textfields, popup menus and a web list box. There are other sub containers too so these objects add up.

My questions are -
Is it best to make all of those objects` Public in scope or private?

Which is better, to create the containers programmatically or placing containers onto a container or web page?

Is it necessary perform some action when closing these containers - especially ones that are made programmatically?

I’m looking for optimizations.

Thanks in advance for your ideas/help4

Tim

6 posts - 4 participants

Read full topic


Viewing all articles
Browse latest Browse all 3816

Trending Articles