|
Post by syntaxerror on Apr 10, 2004 11:23:23 GMT
Hi Weibo, The update is really great. I have had a play with spinners (good addtion!). There is a problem with INTS though ...
In your include you have:
If s\integer = True Then value=Int(value)
Since 'value' is always a float this will not work. So, I adapted the code in CreateSpinner() and CheckSpinners() to:
If s\integer = 1 SetGadgetText s\textgad, Int(value) + s\suffix$ Else SetGadgetText s\textgad, value + s\suffix$ EndIf
Also, how about setting 'Return True' in the CheckSpinners() function so we know when a spinner has been changed. This means we can do:
If CheckSpinners( EventSource() ) DebugLog "Spinner#1 "+Str(TextFieldText(sp1\textgad)) DebugLog "Spinner#2 "+Str(TextFieldText(sp2\textgad)) EndIf
Mmm, how about SpinnerValue() ?
myspinner.spinner=CreateSpinner(blah) If CheckSpinners( EventSource() ) DebugLog "Spinner value = "+Int(SpinnerValue(myspinner)) Endif
Congratulations on having the VERY best BlitzPlus GUI editor.
|
|
|
Post by Wiebo on Apr 11, 2004 8:13:34 GMT
Hi SyntaxError, I have already fixed the spinner float and int issue. I can't believe I missed that Your other suggestions are cool and I will surely add them. I have already added DisableSpinner() and EnableSpinner() functions, so they are now groupable as well. I have decided to build a fairly complex GUI for my next application, so i can also really test the exported code. So far I have changed a few minor things in the exporter to make it work even better. One other addition I already have made is grouping of comboboxes and panels. You can now show and hide panels according to the item selected in the combobox. This way you can hide or show groups of gadgets according to the selection box item... It's very useful.
|
|
|
Post by Wiebo on Apr 11, 2004 8:25:55 GMT
I've been thinking. Wouldn't it be handy if CheckSpinners() returned the handle of the spinner type which is changed, instead of true or false? Oh, and here is the GUI I am working on now: members.home.nl/wdw/images/wip/Qedit.PNG
|
|
|
Post by syntaxerror on Apr 12, 2004 19:44:06 GMT
Wooo. Talk about bells and whistles!
The spinner handle idea you mention actually allows for more flexibilty. It means you have immediate access to the spinners assocated type:
s.spinner=CheckSpinners(EventSource()) If s<>Null floatval#=TextFieldText( s\textgad) Endif
Mind you, how do I then know *what* spinner has been modified? Is this what prefix$ and suffix$ are for?
*************************** Another quick suggestion:
Can you make the EditWindow active when clicking the main GUI edit window like the other gadgets do at the moment?
|
|
|
Post by Wiebo on Apr 12, 2004 20:03:55 GMT
Hi,
The returned type IS the spinner which has been altered.
prefix$ and suffix$ is what you see in that screenshot I posted, like the spinner containing '20 tiles'. "tiles" is the suffix$. You can also add a prefix$, like '$' when you want the spinner to contain a dollar value.
|
|
Rims
New Member
Posts: 9
|
Post by Rims on Apr 13, 2004 14:39:31 GMT
i've noticed in my version, if you add a spinner then delete it using Ctrl+Del, it sets the window's menu option to off.
Hm?
|
|
|
Post by Wiebo on Apr 13, 2004 15:07:04 GMT
That doesn't happen here. Which version are you using? Or send the project to me via mail ( wdw AT home DOT nl ) thanks!
|
|
Rims
New Member
Posts: 9
|
Post by Rims on Apr 16, 2004 21:43:11 GMT
I'm using version 1.2
Load up GUIDE. Check the menu in the window properties. Add a spinner. delete using Ctrl+Del. Menu disappears.
It's not biggy. Just thought I'd mention it.
Matt
|
|
|
Post by Wiebo on Apr 17, 2004 7:49:48 GMT
Yeah, that's a weird one! I will fix it for the next version.
|
|
|
Post by mjhszxy on Jul 28, 2008 1:31:01 GMT
|
|