Sign in to follow this  
Followers 0
enaiman

Weird Tab behaviour

5 posts in this topic

#1 ·  Posted (edited)

When I move my GUI off the screen (to the left, so a part of the GUI goes off the screen) the part which went "under" looks weird:

Have a look for yourself:

post-18882-1234487284_thumb.jpg

and normally it looks like:

post-18882-1234487327_thumb.jpg

This is very anoying; any idea what can I do to get rid of this effect?

Here is the sample code:

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <TabConstants.au3>
#include <WindowsConstants.au3>

Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 311, 199, 193, 125)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$Tab1 = GUICtrlCreateTab(16, 16, 281, 169)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 32, 56, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 32, 80, 97, 17)
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$Group1 = GUICtrlCreateGroup("Group1", 32, 56, 185, 105)
$Checkbox3 = GUICtrlCreateCheckbox("Checkbox3", 56, 80, 97, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUICtrlCreateTabItem("")
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    Sleep(100)
WEnd


Func Form1Close()
    Exit
EndFunc

I tried to automatically move the window if its position is "outside" - it works somehow but not when somebody moves the GUI in-and-out so the final position is a "good one". Anyway it's an "ugly" workaround.

Please, if anybody knows a way to get rid of this, please let me know.

Thank you,

Edit: AutoIt version 3.3.0.0, OS WinXP Pro SP2

Edited by enaiman

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 :)

Share this post


Link to post
Share on other sites



I fix the behavior for next beta.

For the time being you can set GUICtrlSetDefBkColor() to the color of the tab background (different depending the theme use)

:)

Share this post


Link to post
Share on other sites

Thanks alot jpm :)

GUICtrlSetDefBkColor() helped greatly.

I found it difficult to find the tab background color, I've used AutoIt Window Info tool and I found that the tab (default tab) has a gradient of color as background from 0xF3F4xx (bottom) to 0xFCFCxx (top)

What I did was picking a color from the mid-range 0xF8F7F6. It looks good but at a close look a very small difference of color can be spotted.

Looking forward to Beta fix :)

Thanks again.


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 :)

Share this post


Link to post
Share on other sites

Maybe StarDock WindowsBlind is contradiction point.

Share this post


Link to post
Share on other sites

Maybe StarDock WindowsBlind is contradiction point.

And the reason for reopening a thread that is over a year old, about an issue that was solved a year ago, with a statement that makes no sense in the context of the thread is...?

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

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