Modify

#1609 closed Bug (No Bug)

GUICtrlCreateGroup() size/position affected by default font size.

Reported by: Spiff59 Owned by:
Milestone: Component: AutoIt
Version: 3.3.6.0 Severity: None
Keywords: Cc:

Description

As the small demo script shows, the top coordinate (and therefore also the height) of a group controls graphic is affected by the default font size.

$GUI_Main = GuiCreate("", 480, 280)
GUISetState(@SW_SHOW, $GUI_Main)

$len = 360
Display_Group()
Sleep(1000)
GUISetFont(14)
$len = 320
Display_Group()
Sleep(1000)
GUISetFont(6)
$len = 280
Display_Group()

While 1
    $msg = GUIGetMsg()
    If $msg = -3 Then   ExitLoop
Wend
Exit

Attachments (0)

Change History (3)

comment:1 by Jpm, on May 5, 2010 at 8:47:25 AM

Can you update the example Display_Group is missing?

under which env are you running?

comment:2 by Spiff59, on May 5, 2010 at 2:25:59 PM

Pardon me, a faulty late-night cut-and-paste. Here is the complete demo script.
I'm running XP Pro SP3.

GuiCreate("", 480, 280)
GUISetState(@SW_SHOW)

$len = 360
Display_Group()
Sleep(1000)
GUISetFont(14)
$len = 320
Display_Group()
Sleep(1000)
GUISetFont(6)
$len = 280
Display_Group()

While 1
    $msg = GUIGetMsg()
    If $msg = -3 Then   ExitLoop
Wend
Exit

;-------------------------------------------------------------------------------
Func Display_Group()
    GUICtrlCreateGroup("", 20, 80, $len, 90)
    GUICtrlCreateGroup("", -99, -99, 1, 1)
EndFunc

comment:3 by Jpm, on May 5, 2010 at 8:48:47 PM

Resolution: No Bug
Status: newclosed

In fact no the group control is created at the same position .
You can verify using "AutoIt Info Tool".
It look like the way the group is drawnis affected internaly by the font.
Just Ask MS why ...

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.