|
Post by basica on Jun 20, 2014 15:07:18 GMT 1
Alex, thanks for your attention.
I think my first attempt stepped on some invisible crack.
I tried it in 3 different Debian distros with JWM and Openbox and they all ran as expected - undecorated. So, It looks like it is in my test system which was PUPPY PRECISE that is the problem. Of course, this doesn't make much sense, since my code above from the bigbass tutorial works.
Your new version compiled without error ( as did all the others ), but rendered decorated.
Just as an aside, is it intended to have the PROTO ALIAS items in hug.bac.
My thanks again
|
|
|
Post by alexfish on Jun 20, 2014 15:28:47 GMT 1
Hi basica
The ALIAS is handy for the API functions from the lib been used
this saves having to write extra code as in user SUB or FUNCTION
above = make BASIC like Syntax
also can use the the actual API ,but sometimes involves more writing , depends on how many time it is used
the code below may help.
INCLUDE "hug.bac"
Gtk$= HUGLIB$("gtk")
IMPORT gtk_window_set_decorated(long,int) FROM Gtk$ TYPE void
SUB DECORATE(long widget,int bol)
gtk_window_set_decorated(widget,bol)
END SUB
Mainwin = WINDOW( "" , 300, 400 )
DECORATE(Mainwin,FALSE)
SETPROPERTY(Mainwin, "tooltip-text", "Testing the properties")
DISPLAY
Original code as posted
INCLUDE "hug.bac"
Gtk$= HUGLIB$("gtk")
IMPORT gtk_window_set_decorated(long,int) FROM Gtk$ TYPE void ALIAS DECORATE
Mainwin = WINDOW( "" , 300, 400 ) DECORATE(Mainwin,FALSE)
SETPROPERTY(Mainwin, "tooltip-text", "Testing the properties")
DISPLAY
then use api direct
INCLUDE "hug.bac"
Gtk$= HUGLIB$("gtk")
IMPORT gtk_window_set_decorated(long,int) FROM Gtk$ TYPE void
Mainwin = WINDOW( "" , 300, 400 ) gtk_window_set_decorated(Mainwin,FALSE)
SETPROPERTY(Mainwin, "tooltip-text", "Testing the properties")
DISPLAY
HTH Alex
|
|
|
Post by basica on Jun 20, 2014 17:20:44 GMT 1
Problem solved. Upgraded to latest Puppy Precise 5.7.1 and everything undecorated works. I think you're right, it must be some GTK version issue.
Alex, I really appreciated your example code, it's a big help for shortening my long learning curve.
Now to more experimentation and reading.....
Thanks again
|
|