View previous topic :: View next topic |
Author |
Message |
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Sun Jun 23, 2013 7:51 pm Post subject: How to make brush_setColor panel color? |
|
|
Hey,
How can I make the brush_setColor as much my panel color?
doing this:
Code: | brush_setColor(brush, x00F1F1F0) |
Makes it go black, although if you try to change the panel color it'll won't change much. (almost the same).
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Mon Jun 24, 2013 4:22 am Post subject: |
|
|
brush_setColor doesn't affect panel color at all for me
Or are you drawing to it with the canvas ? (more code would help)
Code: |
f=createForm(true)
p=createPanel(f)
pc=customControl_getCanvas(p)
brush=canvas_getBrush(pc)
|
anyhow, brush_setColor(brush, x00F1F1F0) sets the color of brush to 0, because x00F1F1F0 is an undefined variable (nil)
use 0x00f1f1f0 instead
Also, if you just wish to change the color do:
Code: |
setProperty(p, "Color", 0x00ff00ff)
|
or in 6.3:
tip: To get rid of the borders, use panel_setBevelOuter(p, 0)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Mon Jun 24, 2013 2:53 pm Post subject: |
|
|
Oh yeah, how did I forgot the 0.
Thanks!
_________________
|
|
Back to top |
|
|
|