Jump to content
Sign in to follow this  
autocomplex

GUI @SW_HIDE to @SW_SHOW Problem

Recommended Posts

autocomplex

I am having trouble displaying a GUI when it is called in a Function. I have it set to @SW_HIDE. Then In the Function I GUISetState($var, @SW_SHOW). But It is not showing up when I use the Function in a Loop.

I need it to be a Global GUI, but only be visible at certain points. Like when a user hits a button. But they hit another button and it disappears.

Heres where I create the GUI's.

;Draws the Top of the Ore Finder Box
$Top = GUICreate("Top Line", $ScanWidth, 2,$x,$y,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)

;Draws the Left Side of the Ore Finder Box
$Left = GUICreate("Left Line", 2, $ScanHeight,$x,$y,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)
            
;Draws the Right Side of the Ore Finder Box
$Right = GUICreate("Right Line", 2, $ScanHeight,$x + $ScanWidth,$y,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)
            
;Draws the Bottom of the Ore Finder Box
$Bottom = GUICreate("Bottom Line", $ScanWidth, 2,$x,$y + $ScanHeight,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)



;Draws the Top of the Drop Finder Box
$smallTop = GUICreate("Top Line", $smallScanWidth, 2,$smallx,$smally,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)

;Draws the Left Side of the Drop Finder Box
$smallLeft = GUICreate("Left Line", 2, $smallScanHeight,$smallx,$smally,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)

;Draws the Right Side of the Drop Finder Box
$smallRight = GUICreate("Right Line", 2, $smallScanHeight,$smallx + $smallScanWidth - 2,$smally,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)

;Draws the Bottom of the Drop Finder Box
$smallBottom = GUICreate("Bottom Line", $smallScanWidth, 2,$smallx,$smally + $smallScanHeight,$WS_POPUP,-1, $GUI)
GUISetBkColor(0xFF0000)
GUISetState(@SW_HIDE)oÝ÷ Øw«zËax[§rبƮ¶­sdgVæ26÷r ¤uT6WE7FFRb33cµF÷Â5uõ4õr¤uT6WE7FFRb33c´&÷GFöÒÂ5uõ4õr¤uT6WE7FFRb33c´ÆVgBÂ5uõ4õr¤uT6WE7FFRb33cµ&vBÂ5uõ4õr ¤VæDgVæ0 ¤gVæ26ÖÆÅ6÷r ¤uT6WE7FFRb33c·6ÖÆÅF÷Â5uõ4õr¤uT6WE7FFRb33c·6ÖÆÄ&÷GFöÒÂ5uõ4õr¤uT6WE7FFRb33c·6ÖÆÄÆVgBÂ5uõ4õr¤uT6WE7FFRb33c·6ÖÆÅ&vBÂ5uõ4õr ¤VæDgVæ0 ¤gVæ26÷t&÷F ¤uT6WE7FFRb33cµF÷Â5uõ4õr¤uT6WE7FFRb33c´&÷GFöÒÂ5uõ4õr¤uT6WE7FFRb33c´ÆVgBÂ5uõ4õr¤uT6WE7FFRb33cµ&vBÂ5uõ4õr ¤uT6WE7FFRb33c·6ÖÆÅF÷Â5uõ4õr¤uT6WE7FFRb33c·6ÖÆÄ&÷GFöÒÂ5uõ4õr¤uT6WE7FFRb33c·6ÖÆÄÆVgBÂ5uõ4õr¤uT6WE7FFRb33c·6ÖÆÅ&vBÂ5uõ4õr ¤VæDgVæ0  ¤gVæ2FR ¥6ÆVW¤uT6WE7FFRb33cµF÷Â5uôDR¤uT6WE7FFRb33c´&÷GFöÒÂ5uôDR¤uT6WE7FFRb33c´ÆVgBÂ5uôDP¤uT6WE7FFRb33cµ&vBÂ5uôDR ¤VæDgVæ0 ¤gVæ26ÖÆÄFR ¥6ÆVW¤uT6WE7FFRb33c·6ÖÆÅF÷Â5uôDR¤uT6WE7FFRb33c·6ÖÆÄ&÷GFöÒÂ5uôDR¤uT6WE7FFRb33c·6ÖÆÄÆVgBÂ5uôDR¤uT6WE7FFRb33c·6ÖÆÅ&vBÂ5uôDR ¤VæDgVæ0 ¤gVæ2FT&÷F ¥6ÆVW¤uT6WE7FFRb33cµF÷Â5uôDR¤uT6WE7FFRb33c´&÷GFöÒÂ5uôDR¤uT6WE7FFRb33c´ÆVgBÂ5uôDP¤uT6WE7FFRb33cµ&vBÂ5uôDR ¤uT6WE7FFRb33c·6ÖÆÅF÷Â5uôDR¤uT6WE7FFRb33c·6ÖÆÄ&÷GFöÒÂ5uôDR¤uT6WE7FFRb33c·6ÖÆÄÆVgBÂ5uôDR¤uT6WE7FFRb33c·6ÖÆÅ&vBÂ5uôDRoÝ÷ Ø  ÝêÞÈhÀ¬zØ^)íâ袮¶­sevÆR  b33c¶×6rÒuTvWD×6r 6VÆV7@  66Rb33c¶×6rÒb33cµ7F'D'WGFöâõ"b33c¶×6rÒb33c´ÖVçU7F'Bõ"b33c¶×6rÒb33c´ÖVçT÷D¶W7F'@ 7F'B 6÷t&÷F 66Rb33c¶×6rÒb33cµ7F÷'WGFöâõ"b33c¶×6rÒb33c´ÖVçU7F÷õ"b33c¶×6rÒb33c´ÖVçT÷D¶W7F÷ 7F÷ FT&÷F VæE6VÆV7@¥tVæ@

Please help me ... I don't know if there is another way I can do what I need to, but if there is I'm sure somebody here knows how. =) :)

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.