Jump to content

Recommended Posts

Posted (edited)

this is an example. i don't want to use splash-text as it wants to create its own gui

can anyone help with this display..... it worked before but not now with the beta version.

CODE

#include <GUIConstants.au3>

GUICreate('New GUI')

GUISetState()

Sleep(100)

For $i= 1 to 15

; file found... diplay file#

GUICtrlCreateLabel(" ", 40, 45, 120, 25); this doesn't help

$i_label = GUICtrlCreateLabel(" File Number: " & $i, 40, 45, 120, 25)

Sleep(50)

Next

For $t= 1 to 15

; file found... diplay file#

$t_label = GUICtrlCreateLabel(" ", 40, 90, 120, 25)

GUICtrlSetData ( $t_label, " File Number: " & $t ); >>>>>>>> this doesn't help

Sleep(50)

Next

GUICtrlCreateLabel(" DONE ", 40, 185, 120, 25)

While 1

$msg = GUIgetMsg()

Select

Case $msg = $GUI_EVENT_CLOSE

GUIDelete()

EXIT

Case Else

Sleep(25)

EndSelect

WEnd

the problem is the numbers are not readable

please help.

thanks

Edited by Valuater

NEWHeader1.png

Posted

For $t= 1 to 15

; file found... diplay file#

    $t_label = GUICtrlCreateLabel("                    ", 40, 90, 120, 25)

    GUICtrlSetData ( $t_label, " File Number: " & $t ); >>>>>>>> this doesn't help

    Sleep(50)

Next

<{POST_SNAPBACK}>

Try moving the GUICtrlCreateLabel outside the loop.

The 'label' only needs to be created once.

$t_label = GUICtrlCreateLabel(" ", 40, 90, 120, 25)
For $t= 1 to 15
  ; file found... diplay file#
   GUICtrlSetData ( $t_label, " File Number: " & $t )
   Sleep(50)
Next

Bill

Posted

Try moving the GUICtrlCreateLabel outside the loop.

The 'label' only needs to be created once.

Bill

<{POST_SNAPBACK}>

Thats the trick........... thanks

NEWHeader1.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...