Jump to content

tileing backgrounds


eadthem
 Share

Recommended Posts

k in my app im using

CODE
global $mainPh = guicreate( $vert , 550 , $height , 200 , 200 , 0x00000000)

vert is based on the number of rows to be written and is varable greatly as small as 200 as big as 800 or more

my background is any format 400, 400 and its my understanding that

CODE
GUICreate("", 500, 500)

GUICtrlCreatePic(background.bmp , 0, 0, 500, 500)

will only create a streached background rather than one that is tiled

also is there a way to use a alpha mask of sorts to clip or alter the shape of a window ie make it circular or somthing simlar is a good example

nother thing png support in future versions would be great

Edited by eadthem
Link to comment
Share on other sites

also having problems with a

$ppuph = GUICtrlCreatePic("pagen.bmp", 110, $row , 16 , 16 );"page up"

GUICtrlSetOnEvent( $ppuph, "ppup" )

the bitmap wont stay on top/visable over the background the

GUICtrlCreatePic(background.bmp , 0, 0, 500, 500) is what im usng for a background

Link to comment
Share on other sites

yes this is my gui intilasation area

CODE
$tot = $hi - $low

$height = ($tot * 35)+125

global $mainPh = guicreate( $vert , 550 , $height , 200 , 200 , 0x00080000)

GUISetBkColor (0x000000, $mainPh )

;GUISetFont (9, 400, 0, "" , $mainPh )

GUICtrlCreatePic("background.bmp" , 0, 0, 550, $height, 0x04000000)

GuiCtrlSetState(-1,$GUI_DISABLE)

;defalts all off $WS_MINIMIZEBOX 0x00010000, $WS_CAPTION 0x00C00000, $WS_POPUP 0x80000000, $WS_SYSMENU 0x00080000 $WS_CLIPSIBLINGS 0x04000000

;$serverdroph = GUICtrlCreateCombo ( "item1", 10, 10 , 100 , 20 )

;GUICtrlSetData( $serverdroph,"item2|item3","item1")

GUISetState (@SW_SHOW , $mainPh )

then little bit later we get to

CODE
if (($ppage*12) <= $servnum and $creg == 0) then

$ppuph = GUICtrlCreatePic("pagen.bmp", 110, $row , 16 , 16 );"page up"

GUICtrlSetOnEvent( $ppuph, "ppup" )

endif

if ($ppage > 1 and $creg == 0) then

$ppdownh = GUICtrlCreatePic("pagel.bmp", 126, $row , 16 , 16 );page down

;$ppdownh = GUICtrlCreateButton ( "page down", 160, $row )

GUICtrlSetOnEvent( $ppdownh, "ppdown" )

endif

now i know thay are beaing drawn but thay arnt showing up because i can click on them and it will flip pages

but if i click on another app say firefox and it lays over the autoit window and then i minimise it the icon will then show up untell it redrawas the gui for say a page up or down or somthing

o on the first post it dose indeeed streach it to fit rather than tile any ideas on tileing would be helpfule i have 1 idea but i dont like it becaus would need to add 4 more background images

Edited by eadthem
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...