problem with white text (DDgui)

Previous topic - Next topic

Jonás Perusquía

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!
<HTML><BASIC><EC>
Be free and do good things

MrTAToad

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...

Jonás Perusquía

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)
<HTML><BASIC><EC>
Be free and do good things

MrTAToad

You use DDgui_get$(label$,"TEXT") for entry boxes

Jonás Perusquía

#4
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
<HTML><BASIC><EC>
Be free and do good things


kanonet

Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Jonás Perusquía

thank you, i will give it a try later, it looks really useful, nice tool you have created :)
<HTML><BASIC><EC>
Be free and do good things

Jonás Perusquía

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
<HTML><BASIC><EC>
Be free and do good things

Jonás Perusquía

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
<HTML><BASIC><EC>
Be free and do good things

MrTAToad

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

Jonás Perusquía

thank you! it works so well :D
<HTML><BASIC><EC>
Be free and do good things