Jump to content

GuiCtrlCreatePic and then GuiCtrlCreateInput


 Share

Recommended Posts

Hi,

i try to make a GUI where a multicolor bmp is declared as background with GuiCtrlCreatePic. Now i want to have an input, that moves ovber that background and it should be transparent. Is it possible?

thx,

Cyclops

Sorry for my cruel english :D

Link to comment
Share on other sites

I believe what your asking is to have controls on top of a bmp background, if so yes.

You'll have to create the gui

Add the bmp background

Add the controls

disable the bmp background control

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

Ok, thx, but it don't work! maybe i did something wrong - so here is the code:

#include <GuiConstants.au3>

GuiCreate("Input", 145, 58,(@DesktopWidth-145)/2, (@DesktopHeight-58)/2, $WS_POPUPWINDOW,$WS_EX_TOOLWINDOW);+$WS_EX_TRANSPARENT)
$pic = GUICtrlCreatePic("D:\AutoItScripte\test.bmp",0,0,145,58)
$input = GUICtrlCreateInput ("",0,0,145,58,$ES_MULTILINE)
GuiCtrlSetFont ($input, 6,400,0,"hooge 06_55")
;~ GUICtrlSetColor ( $input,0xff0000)
GUICtrlSetState ($pic , $GUI_DISABLE)

GUISetState()
While 1
  $msg = GuiGetMsg()
  Select
    Case $msg = $GUI_EVENT_CLOSE
    ExitLoop
  EndSelect
WEnd
Exit

Another question: it isn't impossible to change the text color of an input, or?

thx,

Cyclops

Edited by Cyclops

Sorry for my cruel english :D

Link to comment
Share on other sites

Ok, think slight mis under standing, your wanting the input box to be transparent over the gui, some controls this won't happen, believe the transparent works in beta for labels, not for input box in release or beta

Color for input, release no, beta yes (GuiCtrlSetBKColor, GuiCtrlSetColor)

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...