Jump to content



Photo

GUICreate can support set BK picture


  • Please log in to reply
2 replies to this topic

#1 thesnow

thesnow

    Seeker

  • Active Members
  • 46 posts

Posted 24 August 2007 - 08:00 AM

like this :
GUICreate ( "title" [,"BKpic" [, width [, height [, left [, top [, style [, exStyle [, parent]]]]]]]] )
or
GUICreate ( "title" [, width [, height [, left [, top [, style [, exStyle [, parent [,"BKpic" ]]]]]]]] )

Edited by thesnow, 24 August 2007 - 08:07 AM.

Yes,it's me.thesnoW :idiot: .welcome to my au3 websiteit's a Chinese forum.http://www.AutoitX.com----------------------







#2 Helge

Helge

    Yup

  • Active Members
  • PipPipPipPipPipPip
  • 2,049 posts

Posted 24 August 2007 - 10:23 AM

You can set a picture as background using GUICtrlCreatePic.
GUICreate("title", 300, 300) $nPic = GUICtrlCreatePic("myPic.jpg", 0, 0, 300, 300) GUICtrlSetState($nPic, $GUI_DISABLE)
(untested as I'm unable to test at the moment, but it should work)

Why to disable the picture is explained in the helpfile..

If a picture is set as a background picture, as the other controls will overlap,
it's important to disable the pic control : GuiCtrlSetState(-1,$GUI_DISABLE).



#3 thesnow

thesnow

    Seeker

  • Active Members
  • 46 posts

Posted 24 August 2007 - 04:01 PM

You can set a picture as background using GUICtrlCreatePic.

GUICreate("title", 300, 300) $nPic = GUICtrlCreatePic("myPic.jpg", 0, 0, 300, 300) GUICtrlSetState($nPic, $GUI_DISABLE)
(untested as I'm unable to test at the moment, but it should work)

Why to disable the picture is explained in the helpfile..

work bad,overlap too.
Yes,it's me.thesnoW :idiot: .welcome to my au3 websiteit's a Chinese forum.http://www.AutoitX.com----------------------




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users