Modify ↓
Opened 15 years ago
Closed 15 years ago
#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 Changed 15 years ago by Jpm
comment:2 Changed 15 years ago by Spiff59
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 Changed 15 years ago by Jpm
- Resolution set to No Bug
- Status changed from new to closed
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 ...
Guidelines for posting comments:
- You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
- In-depth discussions should take place on the forum.
For more information see the full version of the ticket guidelines here.
Note: See
TracTickets for help on using
tickets.
Can you update the example Display_Group is missing?
under which env are you running?