@Redlion
Sorry and Thank you I have not seen the instruction.hws
With SetGadgetText(50, Text$) Textrefresh is easy.
best regards,
Murmel
Simple Cross-Platform Gadgets with string input
Re: Simple Cross-Platform Gadgets with string input
Hi.
New Day, New Question
is it possible GadetLabel to delete ? And to place anew ?
RemoveLayer() brings Specified layer is out of range!
I hope you understand me, my English is bad.
Thx,
Murmel
New Day, New Question
is it possible GadetLabel to delete ? And to place anew ?
RemoveLayer() brings Specified layer is out of range!
Code: Select all
GadgetLabel( 33, 20, 300, 300, 25,Wetter$,2)
GadgetLabel( 34, 20, 330, 300, 25,Verschimmelt$,2)
GadgetLabel( 35, 20, 360, 300, 25,Ernte$,2)
GadgetLabel( 42, 20, 450, 300, 25,VolkbenoetigNahrung$,2)
GadgetSlider( 43, 20, 480, 100, 25,1000,Kornvorrat[1])
GadgetLabel( 37, 20, 390, 300, 25,Kornvorrat$,2)
GadgetLabel( 38, 20, 420, 300, 25,Kornnachfrage$,2)
GadgetLabel( 39, 330, 300, 240, 25,Kornpreis$,2)
Thx,
Murmel
Re: Simple Cross-Platform Gadgets with string input
Hi Murmel,
I think I follow what you are asking,
You should be able to change the label text with SetGadgetText(GadgetID,Text$), if there is no border you could change the text to "" (Null$).
If you do not want show the gadget anymore use HideLayer("Gadget"..strstr(GadgetID))
you may have to DisableButton(GadgetID) as well.
BTW I have found a bug in the Frame and Area Gadgets, I will fix them ASAP.
Hope you are finding the Gadgets useful.
Cheers
Redlion
I think I follow what you are asking,
You should be able to change the label text with SetGadgetText(GadgetID,Text$), if there is no border you could change the text to "" (Null$).
If you do not want show the gadget anymore use HideLayer("Gadget"..strstr(GadgetID))
you may have to DisableButton(GadgetID) as well.
BTW I have found a bug in the Frame and Area Gadgets, I will fix them ASAP.
Hope you are finding the Gadgets useful.
Cheers
Redlion
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Re: Simple Cross-Platform Gadgets with string input
Hi Redlion.
The Gadgets are cool. I try to write a litle Korn Game Do you know Emperor (German Name Kaiser ?)
Your Gui helps very much!
best regards,
Murmel
yes HideLayer("Gadget"..strstr(GadgetID)) if is the right one, Thanks.Redlion wrote:Hi Murmel,
I think I follow what you are asking,
You should be able to change the label text with SetGadgetText(GadgetID,Text$), if there is no border you could change the text to "" (Null$).
If you do not want show the gadget anymore use HideLayer("Gadget"..strstr(GadgetID))
you may have to DisableButton(GadgetID) as well.
Hi Redlion.BTW I have found a bug in the Frame and Area Gadgets, I will fix them ASAP.
Hope you are finding the Gadgets useful.
Cheers
Redlion
The Gadgets are cool. I try to write a litle Korn Game Do you know Emperor (German Name Kaiser ?)
Your Gui helps very much!
best regards,
Murmel
Re: Simple Cross-Platform Gadgets with string input
Sorry New Question.
can i have a Start Value (RANDOM) and nevertheless use 0 - 100 ?
and when i have
and use
"Cannot find layer "Gadget80" in current BGPic!"
My Fault ?
Thx,
Murmel
Code: Select all
RANDOM = 25
GadgetSpin(107, 400, 330, 80, 25, RANDOM,100)
25.....100
and when i have
Code: Select all
GadgetArea( 81, 10, 270, 780, 340, 0, $979393)
GadgetFrame( 80, 10, 260, 780, 340, "Staatshaushalt", 1)
Code: Select all
HideLayer("Gadget"..StrStr(81)) or (80)
My Fault ?
Thx,
Murmel
Re: Simple Cross-Platform Gadgets with string input
Hi Murmel,
No, its not your fault its the bug I was talking about before.
Replace the Area Gadget.hws and Frame Gadget.hws files with these update and I think that will solve your problem.
The only change you may have to do is put the Area or Frame gadget above thegadget you want to display in them otherwise they will cover them.
Links
http://www.indiego.rocks/file/download/ ... bfecac5397
http://www.indiego.rocks/file/download/ ... 0480dba04f
Check the new syntax for these gadgets.
GadgetArea(GID, x, y, w, h, Border, BColor)
GadgetFrame(GID,x,y,w,h,Text$,Border,BColor)
Hope that fixes things.
Redlion
No, its not your fault its the bug I was talking about before.
Replace the Area Gadget.hws and Frame Gadget.hws files with these update and I think that will solve your problem.
The only change you may have to do is put the Area or Frame gadget above thegadget you want to display in them otherwise they will cover them.
Links
http://www.indiego.rocks/file/download/ ... bfecac5397
http://www.indiego.rocks/file/download/ ... 0480dba04f
Check the new syntax for these gadgets.
GadgetArea(GID, x, y, w, h, Border, BColor)
GadgetFrame(GID,x,y,w,h,Text$,Border,BColor)
Hope that fixes things.
Redlion
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
Re: Simple Cross-Platform Gadgets with string input
Hi Redlion.
Thx for your fixes
Show/HideLayer("Gadget"..StrStr(51/52)) works
best regards,
Murmel
Thx for your fixes
Code: Select all
GadgetArea( 52, 15, 35, 780, 200, $979393, 0)
GadgetFrame( 51, 10, 30, 780, 200, Spielertitel$, 0, $979393)
best regards,
Murmel
Re: Simple Cross-Platform Gadgets with string input
Cool! It is the best lightweight guy!!! Thank you for you work!