GLBasic forum

Main forum => GLBasic - en => Topic started by: Jonás Perusquía on 2012-Nov-07

Title: problem with white text (DDgui)
Post by: Jonás Perusquía on 2012-Nov-07
Hello, i recently started using DDgui but the text it shows is white and it looks like its hidden because of the white background...

¿Is there a way to change the text color?

Thanks!
Title: Re: problem with white text (DDgui)
Post by: MrTAToad on 2012-Nov-07
Looks like either you are using a font that is coloured white or its not present.

Easiest way is to create a font that is very dark blue and save it into the same place as the executable...
Title: Re: problem with white text (DDgui)
Post by: Jonás Perusquía on 2012-Nov-08
thanks!
your reply was too useful!!!

i have another question...

how to make a text box save the value of a variable?

i mean, what you write is what the variable gets?

since i tried already but it doesnt work, also, i dont want the touch keyboard to appear on screen (this already done)
Title: Re: problem with white text (DDgui)
Post by: MrTAToad on 2012-Nov-08
You use DDgui_get$(label$,"TEXT") for entry boxes
Title: Re: problem with white text (DDgui)
Post by: Jonás Perusquía on 2012-Nov-10
Quote from: MrTAToad on 2012-Nov-08
You use DDgui_get$(label$,"TEXT") for entry boxes

Thank you! :D

i didn´t see this on the DDgui manual
Title: Re: problem with white text (DDgui)
Post by: MrTAToad on 2012-Nov-11
Yes, it does need a bit of updating :)

However, may I point you towards my DDgui book at http://www.lulu.com/shop/nicholas-kingsley/programming-with-ddgui-second-edition/ebook/product-18558438.html;jsessionid=D8FD8B48CF7701B9AA4038CFB177C023
Title: Re: problem with white text (DDgui)
Post by: kanonet on 2012-Nov-11
If you want to create something with DDgui, maybe you find my DDcreator usefull:
http://www.kanonet.de/downloads/ddcreator
http://www.glbasic.com/forum/index.php?topic=7739
Title: Re: problem with white text (DDgui)
Post by: Jonás Perusquía on 2012-Nov-12
thank you, i will give it a try later, it looks really useful, nice tool you have created :)
Title: Re: problem with white text (DDgui)
Post by: Jonás Perusquía on 2012-Nov-12
Quote from: MrTAToad on 2012-Nov-11
Yes, it does need a bit of updating :)

However, may I point you towards my DDgui book at http://www.lulu.com/shop/nicholas-kingsley/programming-with-ddgui-second-edition/ebook/product-18558438.html;jsessionid=D8FD8B48CF7701B9AA4038CFB177C023


thank you :D currently i can´t buy it, but i will in the near future, looks really good
Title: Re: problem with white text (DDgui)
Post by: Jonás Perusquía on 2012-Dec-06
Quote from: MrTAToad on 2012-Nov-08
You use DDgui_get$(label$,"TEXT") for entry boxes

Can you please write for me some example? :$ i have already tried DDgui_get$ but it doesn´t work as expected, i have to set te value for label$ before compiling the app because writing something different while app is working wont work
Title: Re: problem with white text (DDgui)
Post by: MrTAToad on 2012-Dec-06
Try this quick example :

Code (glbasic) Select
LOCAL textBox$="text"
LOCAL button$="button"

DDgui_pushdialog(0,0,100,100)
DDgui_text(textBox$,"",40,0)
DDgui_button(button$,"Result",80,0)
WHILE TRUE
DDgui_show(FALSE)
SHOWSCREEN

IF DDgui_get(button$,"CLICKED")
DEBUG "Text in text box is : "+DDgui_get$(textBox$,"TEXT")+"\n"
ENDIF
WEND
Title: Re: problem with white text (DDgui)
Post by: Jonás Perusquía on 2012-Dec-19
thank you! it works so well :D