IGlass GUI for blitzmax - II

BlitzMax Forums/BlitzMax Programming/IGlass GUI for blitzmax - II

Scott Shaver(Posted 2005) [#1]
The other topic was getting a bit full so I started this one, hope you guys don't mind.

Mac OS/X - BM 1.10 - IG 1.5.1

IGL_FileSelector - When the user selects a file by changing directories this changes the current working directory of the program. This is a bad. The current working directory should not be changed.

Windows ect - GUI elements that contain other GUI elements should set the drawing viewport so children are clipped to the bounds of the parent.


Filax(Posted 2005) [#2]
Can you post a screenshot ? one image replace 1000 word :)

Are your talking about text label under button ?

For the screen selector for mac version :) it's not the last version :)
i'm looking how mac os X organise the directory for made the same
thing. Don't panic :)


Scott Shaver(Posted 2005) [#3]
Unforutunately I can't the Mac is at home and has no net connection. You should be able to reproduce the clipping problem by creating a window of size 200x200 and placing a button in it at 10,250.


Filax(Posted 2005) [#4]
Hum :) it's not really a big problem :)

But which is the interest for a programmer to put a button in outside a window ? The result is not terrible :)

Or, if it's for hide/show temporary controls, use the HIDE method.

I'll see this problem later, for the moment i must work on the mac version (and maybe linux) before this.

So, the most important gadget like combo or listbox have not this
problem, it's the most important for me for the moment.


Filax(Posted 2005) [#5]
I'm working too on a skin pack :

Here is some screenshot :)








amonite(Posted 2005) [#6]
nice skins :)
@Scott Shaver

i 'm curious to know why you would like to have a button outside of a window ?


SillyPutty(Posted 2005) [#7]
will these skins be free ?


Filax(Posted 2005) [#8]
I don't know for the moment ! maybe for user's :)


Scott Shaver(Posted 2005) [#9]
LOL, I don't want a button outside of a window. That was an example of how to see the issue.

I have run into a few oddities in the GUI rendering and this would keep them from happening. Some of the things I'm working on are dynamic in nature and controlled by the user so I can't always keep them from ding odd things.

GUI frameworks should handle this automatically. it isn't a big deal right now however the IGL_FileSelector changing the current directory is a big issue. It cause data to get written and read from random places on the user machine based on the users file selections. BAD.


Filax(Posted 2005) [#10]
This probem are due to Parent=> Child engine of the gui
i will see if there is a possibility to remove this stuff.


Filax(Posted 2005) [#11]
Don't panic :) i have not finish with IGlass :) bmax have many
nice possibility in 2D now :)


Filax(Posted 2005) [#12]
Someday, i'm tired ... lol

http://www.codersworkshop.com/viewpost.php?id=11766


Grisu(Posted 2005) [#13]
Don't give up!!!

We still need you to add new features.... :))))))))))))))))))))))


Filax(Posted 2005) [#14]
Lol :)


Scott Shaver(Posted 2005) [#15]
It would be nice to have the option to make sure windows can't be dragged off the screen edges. Maybe a Lock to Screen mode. Also there is a weird issue with dragging windows near the menu bar. If you drag a window close to the menu bar the window snaps up to bottom of the menu bar. It seems like it might be detecting the mouse in the menu bar shadow and doing something strange.


Filax(Posted 2005) [#16]
Good idea !

Ok for report about menu.


Scott Shaver(Posted 2005) [#17]
new bug report for version 1.5.1

The color selector is missing the following line at the end of the function:

Return Request_ReturnMessage

this makes it impossible to tell if the user canceled the selection or accepted it.


Filax(Posted 2005) [#18]
Ok thank for report !

For information i plan to make a different method to assign returned
color, using an IGL_Color whith :

MYColor:IGL_Color=CreateColor(R,V,B)
MySelector=IGL_ColorSelector("Color selector",MYColor)

IF MySelector<>False then
Red=IGL_GetRed(MyColor)
Green=IGL_GetRed(MyColor)
Blue=IGL_GetRed(MyColor)
SetColor Red,Green,Blue
Endif


Filax(Posted 2005) [#19]
Problem solved with color selector.


Difference(Posted 2005) [#20]
IGlass looks really nice. Good to see the nice mouseover highlights.

Problem: When dragging a slider or scrollbar, it stops moving when you drag outside the bar area.

The normal and nice way is to "catch the mouse" until the mousebutton is released. This way you can drag a slider without having the mouse over it all the time.


Filax(Posted 2005) [#21]
ok :) thanks for report :)


Filax(Posted 2005) [#22]
Release coming soon ! don't panic :)

PS : I'm bying a house :/ very hard to organize ...


Scott Shaver(Posted 2005) [#23]
IGL_ColorSelector: the sliders only allow you to pick odd values. Please add single step arrows to the ends of the sliders or find another way to solve this problem.

Thanks.


Filax(Posted 2005) [#24]
Hi Scott :)

I have resolved the problem for color request ! now they use my Iglass
color system.

This is the worklog for the next 1.5.2 version.


---------------
Version 1.5.2 :
---------------

-----------
Bugs fixed :
-----------
- Sometimes the image background appears transparent due to setblend mistake (module and inc_image.bmx).
- A small bug removed with mouse release outside the button zone and sound.
- The text under combobox, spacing between the text and icon fixed.
- The selected combobox item has the selected icon now :)
- Many stuff modified with all Iglass controls ! many small optimisations and GFX rendering is better now.
- Mega big bug in the listbox clear sequence (random crash), fixed.
- IGlass example filename changed for better compatibility with mac and linux.
- Mega big bug with tooltip (random crash), fixed

-----------------
Commands changed :
-----------------
IGL_Image has been changed to IGL_StaticImage, example :
Local MyImage1:IGL_StaticImage
MyImage1=IGL_StaticImage.Create(MyWindow02,"./IGL_Demos/Image_01.png",10,10,220,170,2)

Color selector changed ! use now the IGL_Color system. See example :
IGlass_Color_Selector.bmx

IGL_InitGUI(2) changed ! now you can disable GUI sound with IGL_InitGUI(2,True or False (optional default TRUE))

---------------
Commands added :
---------------
AnimatedImage widget added :) it's very simple to use, Look at the example :
IGlass_Animated_Image.bmx

AnimatedButton widget added, Look at the example :
IGlass_Animated_Button.bmx

You can now change all widgets color :) with the method : MyGadget.ChangeColor(R,G,B), Look at the example :
IGlass Widget Color.bmx


tonyg(Posted 2005) [#25]
Hi Filax, All looks very good.
I wonder how it will compare to the MaxGui? ;)
The "Example of a simple program using IGlass " in he doc
has "IGL_Background("./IGL_Demos/Background_01.png")"
rather than IGL_Initbackground. No big deal but it was the
first code I ran so I thought I'd done something wrong in the install.
P.S. How easy would it be to get the commands in the F1 prompt?


tonyg(Posted 2005) [#26]
Hi Filax,
Can you have a look at this an dlet me know what you think...
Help/Index problem


Filax(Posted 2005) [#27]
tonyg what are you talking ? this post refer about zlib ?
i don't understand ? Are you talking about doc ?

About maxgui i can't compare because i have don't see it :)
Iglass was made for game, demo, multimedia app or little utilities.


tonyg(Posted 2005) [#28]
If you read down, with the iglass.mod and syncmods the IDE command list is incorrect because there is no igl.bmx supplied with your package.


Filax(Posted 2005) [#29]
??? Strange ???

For the next release i have change name and location for Iglass
module, maybe resolve the problem ???


tonyg(Posted 2005) [#30]
Don't think so as I had the problem with all precompiled modules. I created a .bmx file with a dummy bbdoc statement
and things were OK.


RiK(Posted 2005) [#31]
I've just installed the Mac version of iGlass, rebuilt all modules and now I'm getting the following error when I try to compile anything..

ld: table of contents for archive: /Applications/BlitzMax/mod/pub.mod/igl.mod/igl.release.macos.a is out of date; rerun ranlib(1) (can't load from it)
Build Error: Failed to link /Users/Rich/Development/IGlass/Example IGlass Demo


Any ideas?


Scott Shaver(Posted 2005) [#32]
Try (from the command line):

bmk ranlibdir /Applications/BlitzMax/mod

fixed the problem for me


RiK(Posted 2005) [#33]
Spot on, that worked.

Thanks!


RiK(Posted 2005) [#34]
Out of interest, can you tell me *what* exactly that did, as checking the docs I can't find any reference to that command.

I see it in the list if I run bmk with no options but what does ranlibdir do?

Sorry if I'm being dense here but this seems like another area where the Blitz docs are sadly lacking... :(


Filax(Posted 2005) [#35]
Happy to see you have solved your problem :)


Scott Shaver(Posted 2005) [#36]
I'm not sure what it does but that was the fix Mark Silby suggested when I had the problem. Apparently in the Mac version there is a problem dealing with files ending in .a and the commandline tool overcomes the problem.


RiK(Posted 2005) [#37]
cool thanks!

(Another one that should be in the docs ;) )


Filax(Posted 2005) [#38]
Good news :)

There is only one version for each OS :) (only the module change)

IGlass is fully compatible with

Pc
Mac
Linux

Pfiuu ! hard work to do :)


Filax(Posted 2005) [#39]
Plan for the next version

2 New image classes :

IGL_BufferImage()
IGL_BufferPixmap()

With this classes you can made a control modified from a create
image, and create pixmap.


Scott Shaver(Posted 2005) [#40]
Bugs found in 1.5.2

IGL_ColorSelector: the sliders only allow you to pick odd values. Please add single step arrows to the ends of the sliders or find another way to solve this problem.

Some of the demos won't run because they use incorrect method calls:
IGlass_Custom_toolbar
IGlass_Skin Test
IGlass_Widget_color


Filax(Posted 2005) [#41]
Hi Scott :)

Thanks for example bug reportig :) it's ok now :)

Ok for the color selector !


Hummelpups(Posted 2005) [#42]
Do you think IGlass will be useable with 3D so one could do something like an 3d editor with it?


Filax(Posted 2005) [#43]
I don't think so ! lol :) but i think that mark
make 2D blitzmax functions compatible with
the futur 3D engine :)

On the Dreide 3D engine fredborg report that
all 2D command work with this engine.If 2D
command work, Iglass work :)