|
Post by SunBurnt on Oct 3, 2011 7:14:59 GMT 1
1) I`m making a popup menu with sub menus and need borderless windows.
# This DOES NOT WORK:
INCLUDE "/usr/share/BaCon/hug_imports.bac" INIT winMain_ = WINDOW( "", 300, 200 ) PROPERTY( winMain_, "decorated", FALSE ) DISPLAY 2) Also, how to end them in code ( or any window for that matter ) ?
3) I`m sure I asked this already... How to position a window`s X, Y ?
4) May have asked this too... Way to use standard icons instead of just the gtk ones?
5) Noticed the TIMEOUT can only be used once? Further timing must be done in code?
# You really should be able to use multiple instances of it...
TIMEOUT(1000, Change_Size) TIMEOUT(10000, QUIT) Many thanks for all your hard work Pjot... Terry B.
|
|
|
Post by vovchik on Oct 3, 2011 7:38:17 GMT 1
Dear SunBurnt, Look at the attachment containing my little notify program and a bash-based launcher. There, with Peter's help, I was able to close undercorated windows via mouse click or the ESC key. With kind regards, vovchik Attachments:
|
|
|
Post by SunBurnt on Oct 3, 2011 8:50:34 GMT 1
Wow... There`s a lot of answers in Pnotify.
Little point asking more Qs until I`ve spent awhile code staring.
I will say that it looks like it will take more code than my entire app. does!
|
|
|
Post by GatorDog on Oct 3, 2011 14:24:34 GMT 1
sunburnt, Your code worked for me -
INCLUDE "/usr/share/BaCon/hug_imports.bac" INIT winMain_ = WINDOW( "", 300, 200 ) PROPERTY( winMain_, "decorated", FALSE ) DISPLAY
rod
|
|
|
Post by SunBurnt on Oct 3, 2011 21:00:32 GMT 1
Rod; My code example explains better than what I wrote I guess.
TIMEOUT(1000, Change_Size) TIMEOUT(10000, QUIT) This freezes up the gui ( more or less...)
I tried my borderless window example again just for the heck of it, and no workee. The window still has the title bar on it.
# Rod... I would really like to know how to get it to work with my code!
|
|
|
Post by GatorDog on Oct 3, 2011 22:26:27 GMT 1
TIMEOUT(10000, QUIT) This freezes up the gui ( more or less...) Couple of things to try. 1.) Put "QUIT" in a FUNCTION and send the TIMEOUT there. 2.) TRY "END" in the FUNCTION instead of "QUIT". I just cut-n-pasted your example into BaconGUI and it worked. 1.0.24beta hug 63rod
|
|
|
Post by SunBurnt on Oct 4, 2011 3:19:07 GMT 1
Odd... Different resuilts each time I try this stuff.
1) Putting QUIT in a SUB worked, but only the last TIMEOUT is recognized.
2) The SHOW and HIDE SUB got the window borderless, but very oddly. # The first show was decorated, the next the title bar was black with no buttons, the third show the window was a gray square ( I assume this is what it looks like ). Most of the time it will only do the black title bar.
# I`m using the October 1 bacon.bac and it compiled fine.
# And... I just tried to compile the latest hug from the BaCon site and it errored! Error:File '/usr/share/BaCon/hug.bac'
Line 1038: DECR hug_widget_comborows(STR$(hug_widget))
Cause: lvalue required as left operand of assignment
|
|