Jump to content
Sign in to follow this  
BlackBerryx3

Font Problem ..

Recommended Posts

BlackBerryx3

Hello again,

I have a problem with my new GUI :

#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
HotKeySet("{ESC}", "_Exit")
$Width = 600
$Height = 200
_Steam("* Test - Your IP Address : " & @IPAddress1, $Width, $Height, Default, Default)
While 1
    Sleep(1000)
WEnd
Func _Steam($sTitle, $sWidth, $sHeight, $sX, $sY)
;;; Steam Window Start ;;;
$Steam_Win = GUICreate($sTitle, $sWidth, $sHeight, $sX, $sY , $WS_POPUP, $WS_EX_TOOLWINDOW)
GUISetFont(8, 800, 0, "Comic Sans MS")
GUISetBkColor(0x464646)
;;; Steam Window End ;;;
;;; Steam Title Bar Start ;;;
$Bar = GUICtrlCreateLabel($sTitle , 0 , 0 , $sWidth - 20, 20 , $SS_NOTIFY , $GUI_WS_EX_PARENTDRAG)
GUICtrlSetFont($Bar, 10, 800, 0, "Comic Sans MS") ; Bold
GUICtrlSetColor($Bar , 0xD8DED3)
GUICtrlSetBkColor($Bar , 0x5A6A50)
;;; Steam Title Bar End ;;;
;;; Steam Title Exit Start ;;;
$Exit = GUICtrlCreateLabel("X" , $sWidth - 20 , 0 , 20 , 20 , $SS_CENTER)
GUICtrlSetFont($Exit, 10, 800, 0, "Comic Sans MS") ; Bold
GUICtrlSetColor($Exit , 0xD8DED3)
GUICtrlSetBkColor($Exit, 0x5A6A50)
;;; Steam Title Exit End ;;;
_Steam_Extension($Width, $Height) ; Create Full GUI
GUISetState(@SW_SHOW)
While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $Exit
            Exit
    EndSwitch
WEnd
EndFunc
Func _Steam_Extension($eWidth, $eHeight)
$Steam_Arm_X = 0 ; This adjusts the Arms Width
$Steam_Arm_Y = 20 ; This really shouldn't be played with...
$Arm = GUICtrlCreateGraphic($Steam_Arm_X, $Steam_Arm_Y, $eWidth - $Steam_Arm_X, $eHeight - $Steam_Arm_Y)
GUICtrlSetBkColor($Arm, 0x494E48)
GUICtrlSetState($Arm, $GUI_DISABLE)
$Border = GUICtrlCreateGraphic($Steam_Arm_X + 10, 30, $eWidth - $Steam_Arm_X - $Steam_Arm_Y, $eHeight - $Steam_Arm_Y - $Steam_Arm_Y)
$Header = GUICtrlCreateGraphic($Steam_Arm_X + 10, 30, $eWidth - $Steam_Arm_X - $Steam_Arm_Y, 20)
GUICtrlSetColor($Border, 0x696A65)
GUICtrlSetColor($Header, 0x696A65)
GUICtrlSetState($Border, $GUI_DISABLE)
GUICtrlSetState($Header, $GUI_DISABLE)
$Text = GUICtrlCreateLabel("- Test -", 17, 32, 200, 20)
GUICtrlSetFont($Text, 9, 800, 0, "Comic Sans MS") ; Bold
GUICtrlSetColor($Text, 0xC3B54C)
GUICtrlSetBkColor($Text, $GUI_BKCOLOR_TRANSPARENT)
$checkbox1 = GUICtrlCreateCheckbox("AutoIt", 17, 60, 100, 20)
GUICtrlSetFont($checkbox1, 9, 800, 0, "Comic Sans MS")
GUICtrlSetColor($checkbox1, 0xC3B54C)
GUICtrlSetBkColor($checkbox1, $GUI_BKCOLOR_TRANSPARENT)
$checkbox2 = GUICtrlCreateCheckbox("AutoIt#1", 17, 85, 150, 20)
GUICtrlSetFont($checkbox2, 9, 800, 0, "Comic Sans MS")
GUICtrlSetColor($checkbox2, 0xC3B54C)
GUICtrlSetBkColor($checkbox2, $GUI_BKCOLOR_TRANSPARENT)
$checkbox3 = GUICtrlCreateCheckbox("", 17, 110, 150, 20)
GUICtrlSetFont($checkbox3, 9, 800, 0, "Comic Sans MS")
GUICtrlSetColor($checkbox3, 0xC3B54C)
GUICtrlSetBkColor($checkbox3, $GUI_BKCOLOR_TRANSPARENT)
$checkbox4 = GUICtrlCreateCheckbox("", 17, 135, 150, 20)
GUICtrlSetFont($checkbox4, 9, 800, 0, "Comic Sans MS")
GUICtrlSetColor($checkbox4 , 0xD8DED3)
GUICtrlSetBkColor($checkbox4, $GUI_BKCOLOR_TRANSPARENT)
EndFunc
Func _Exit()
Exit
EndFunc

I didn't complete it yet. But here is the screenshots about my problem ;

Everything is normal in this picture ;

rbggw.png

But when i check the checkboxes , AutoIt words went like this ;

rbghc.png

How can i fix that ?

Edited by BlackBerryx3

Share this post


Link to post
Share on other sites
UEZ

What OS you are using?

For me on Win7 x64 + Aero your GUI looks different and I don't have that effect.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
BlackBerryx3

What OS you are using?

For me on Win7 x64 + Aero your GUI looks different and I don't have that effect.

Br,

UEZ

 

I'm using Win 7 x86.

Share this post


Link to post
Share on other sites
BlackBerryx3

Oh. My problem is solved. I just removed them ;

GUICtrlSetBkColor($checkbox2, $GUI_BKCOLOR_TRANSPARENT)

and its worked.

Share this post


Link to post
Share on other sites
trancexx

Wait, what exacly is the difference between two pictures?


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites
BlackBerryx3

Wait, what exacly is the difference between two pictures?

 

Look at AutoIt , AutoIt #1 qualitys between two pictures. When i check the checkboxes , that's happens.

Share this post


Link to post
Share on other sites
Edano

looks a bit bolder, hard to see, but of course if you do have that effect it would be annoying.


[color=rgb(255,0,0);][font="'comic sans ms', cursive;"]FukuLeaks[/color][/font]

Share this post


Link to post
Share on other sites
Jos

CAREFUL ! OP uses this as a game bot !!!! '?do=embed' frameborder='0' data-embedContent>>

Fine when you report stuff but please relax and only report them.

Jos


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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  

×