Jump to content

GUI newbie tutorial


Recommended Posts

For a start you can put Koda to generate advanced code.

Just look in the Tools menu and choose "Advance Generate" - you can see then a couple of options (OnEvent Mode and Generate Events for all controls)

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Link to comment
Share on other sites

how do I create a field where a picture is shown,

and controls to view the picture in different sizes?

like mspaint, you can enlarge part of the photo and then I need the ability to create a drag square to select a area, and then I need to tick off unwanted pixel and then send the rest of the squares from the selected area to a function ?

Link to comment
Share on other sites

yet another infinite loop !

what if I need to run tcp server and I need an inifite loop for that also?

wouldn't it make the script unresponsive if the server gets busy?

Indeed it is an infinite loop but ... that loop is necessary (I can say- essential) because without that loop the script will terminate so fast that you could barely see it.

That loop is a waiting loop - in the case you showed is a loop where your GUI waits for a message in order to do the associated action (message = button press, input changed, checkbox checked/unchecked ...) ... the explanation is: the GUI waits for an action. That is if you need a GUI. If you don't need a GUI but a regular script then you can get rid of that loop - look at the WinZip installer example.

So - to conclude:

- if you need a GUI (Graphical User Interface) - you MUST use an infinite loop

- if you don't need a GUI - then the infinite loop doesn't make sense

What I can tell you - Look a little closer at the help and maybe see and try to understand some simple example scripts.

SNMP_UDF ... for SNMPv1 and v2c so far, GetBulk and a new example script

wannabe "Unbeatable" Tic-Tac-Toe

Paper-Scissor-Rock ... try to beat it anyway :)

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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