Jump to content

Recommended Posts

Posted

Please help, I need to draw a pie by GUICtrlSetGraphic on tab2 of the following, I never able to show it, I know it is on the main panel, just covered by the tabs.

Or is it possible at all to draw something on a tab item? :lmao:

#include <GUIConstants.au3>
; == GUI generated with Koda ==
$Form1 = GUICreate("pac man", 622, 441, 192, 125)
$Tab1 = GUICtrlCreateTab(42, 66, 534, 326)
$TabSheet1 = GUICtrlCreateTabItem("TabSheet1")
$TabSheet2 = GUICtrlCreateTabItem("TabSheet2")
$Graphic1 = GUICtrlCreateGraphic(198, 157, 80, 97)
GUICtrlSetBkColor(-1,0xffffff)
GUICtrlSetColor(-1,0)
GUICtrlSetGraphic(-1,$GUI_GR_COLOR, 0xff0000,0xff0000)
GUICtrlSetGraphic(-1,$GUI_GR_PIE, 40,40, 40,30,270)
$TabSheet3 = GUICtrlCreateTabItem("TabSheet3")
GUICtrlSetState(-1,$GUI_SHOW)
GUICtrlCreateTabItem("")
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
;;;;;;;
    EndSelect
WEnd
Exit
Posted

Maybe you could make an icon and position it on the tab instead of drawing it. Do you want the pie chart to animate?

F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]
Posted

Maybe you could make an icon and position it on the tab instead of drawing it. Do you want the pie chart to animate?

yeah, I want to draw something on a tab, it might be initiated by a click of button on the same tab.

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
×
×
  • Create New...