Sign in to follow this  
Followers 0
Merchants

Checkbox problem

7 posts in this topic

#1 ·  Posted (edited)

#include <GUIConstantsEx.au3>
Global $GUI[4]

$GUI[0]= GUICreate("test", 300, 70)
$GUI[1] = GuiCtrlCreateCheckbox("Chack", 230, 22, 50, 20)
$GUI[2] = GuiCtrlCreateInput("01", 75, 22, 150, 20)
GUICtrlSetState($GUI[2], $GUI_DISABLE)
GUICtrlCreateLabel("Index 1:", 20, 25)
GUISetState()
While 1
    $GUI[3] = GUIGetMsg($GUI[0])
    Select
        Case $GUI[3] = $GUI_EVENT_CLOSE
            Exit
        Case $GUI[3] = $GUI[1]
            If $GUI[1] And BitAND(GUICtrlRead($GUI[1]), $GUI_CHECKED) = $GUI_CHECKED Then
                GUICtrlSetState($GUI[2], $GUI_ENABLE)
            Else
                GUICtrlSetState($GUI[2], $GUI_DISABLE)
            EndIf
    EndSelect
WEnd

Edited by Merchants

Share this post


Link to post
Share on other sites



Which means, in plain language?

Please follow Geosoft advice in the last post of the other thread, and mine as well: stop posting nonsensical code for now and explain your problem the more clearly possible. Don't you see that you and the several people who tried to help you since your very first post have wasted way too much time on this, just because you have not yet clearly explained your need. We are more than willing to help you, no question, but help us to help you!


This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Share this post


Link to post
Share on other sites

@Merchants

This is apparently the same issue you have in the other thread. DO NOT create multiple threads for the same problem. One more time and you are on your own as far as I'm concerned.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

@Merchants

This is apparently the same issue you have in the other thread. DO NOT create multiple threads for the same problem. One more time and you are on your own as far as I'm concerned.

hó wel sry but the rules say that you may not post thread with multiple problems

and al shut up for the next 2 months

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

I think you can remove => $GUI[1] And from the following line:

If $GUI[1] And BitAND(GUICtrlRead($GUI[1]), $GUI_CHECKED) = $GUI_CHECKED Then

Which then becomes:

If BitAND(GUICtrlRead($GUI[1]), $GUI_CHECKED) = $GUI_CHECKED Then

uhm that have not fixed my problem

i have done the seem as what i posted now but what i see in my project is that the inputbox very fast removes and come back over en over again

it like a lamp goes on and off but fast

Edited by Merchants

Share this post


Link to post
Share on other sites

nvm i found a way to get that good

Share this post


Link to post
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
Sign in to follow this  
Followers 0