Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Refreshing labels

$
0
0

Hi Guys,

 

I have the feeling this should be simple.... but then again "i am lost" :)

 

I create a series of input fields on a gui like:

 

 

For $i = 0 to $iTabelBreedte
    For $ii = 0 to $iTabelBreedte
       $oInvoer [$ii][$i] = GUICtrlCreateInput($aInvoer[$ii][$i], $iTabelxStart + $i*50, $yInvoerblok + $ii *25  , 45, 24)
       GUICtrlSetFont(-1, 11)
    Next
Next

 

It creates a box of input fields with $iTabelBreedte Rows and $iTabelBreedte columns

 

Now comes the question:

 

Say i generate through a button this table with 10 rows and 10 columns.

 

Then i Hit the button again, but this time i want the the grid to be 5 x 5.

 

The things is that it will leave (offcourse) the old rows and colums aswell. And the 5 x 5 will be drawn over the old ones

 

And i want a fresh table with only the 5 x 5 visible.

 

I don't care about if there was data in the rows and columns that need to dissappear (thats handled in the calculations)

 

But how to clean the input fields before i fill them again? 

 

I tried  things like:

$oInvoer [$ii][$i] = GUICtrlCreateInput("", 0,  0, 0,0)

 

and

$oInvoer [$ii][$i] ="" 

 

But no go ...(don't laugh at least i tried :) )

 

It is all done on a gui.

 

Any suggestions? Couldnt find an answer on the forum aswell, But maybe a use the wrong phrases to search.

 

Thanks A mill!! even for just reading!

 

 

 

 

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>