GLBasic forum

Main forum => GLBasic - en => Topic started by: mr_x on 2009-Jan-21

Title: DDGui question
Post by: mr_x on 2009-Jan-21
Is it possible to set dialog background to some image? I mean that field behind all buttons to be not white, but some loaded image.
Title: Re: DDGui question
Post by: Kitty Hello on 2009-Jan-21
Yes, you can override the CALLBACK "FUNCTION DDgui_backgnd: col1%, col2%, x%, y%, dx%, dy%", and use POLYVECTOR to make a background there.
I did this once for an OSX brushed metal style, maybe Trucidare still has it?
Basically I used POLYVECTOR to draw a rectangle, and used x,y as texture coordinates, too.
Title: Re: DDGui question
Post by: mr_x on 2009-Jan-21
It works! Thank you. I'm happy now. :)
Title: Re: DDGui question
Post by: mr_x on 2009-Feb-20
Is it possible, to add to DDGui some functions to use it on smartphones, without touchscreens, please?
Title: Re: DDGui question
Post by: Kitty Hello on 2009-Feb-21
oh, that's bad. It's not designed that way, but you're right. It should be.
Easiest would be to emulate a mousepointer with SETMOUSE.