|
Post by vovchik on May 28, 2012 19:07:50 GMT 1
Dear axelfish,
These IMPORTS are in HUG:
IMPORT "g_object_get(long,char*,...)" FROM hug_Gobject$ TYPE void IMPORT "g_object_set(long,char*,...)" FROM hug_Gobject$ TYPE void IMPORT "g_signal_connect_data(long,char*,void*,long,long,int)" FROM hug_Gobject$ TYPE void
With kind regards, vovchik
|
|
2lss
Full Member
Posts: 140
|
Post by 2lss on May 28, 2012 19:47:08 GMT 1
Guys,
I updated my code on the previous page. I was able to (hopefully) solve the problem by using 'g_signal_connect_object ' in place of 'g_signal_connect_data' to avoid the re-importing problem with hug.
|
|
|
Post by alexfish on May 28, 2012 20:02:57 GMT 1
Guys, I updated my code on the previous page. I was able to (hopefully) solve the problem by using 'g_signal_connect_object ' in place of 'g_signal_connect_data' to avoid the re-importing problem with hug. Will give it a go like to point you to-wards the mouse demo I posted .. maybe get the two ideas of the GTK solution + the X11 solution working together , have updated post to NOTICE SOMETHING.@ when the mouse button is pressed ? regards alexfish
|
|
|
Post by vovchik on May 28, 2012 20:11:31 GMT 1
@ 2lss,
The new version compiles and works:) Now, perhaps, mouse and cursor-key control.
@ 2lss and axelfish
What about merging the two code bases (axelfish and 2lss)? Any takers? In any case, some real progress is being made very quickly. Thanks!!!
With kind regards, vovchik
|
|
|
Post by alexfish on May 28, 2012 20:26:41 GMT 1
Guys, I updated my code on the previous page. I was able to (hopefully) solve the problem by using 'g_signal_connect_object ' in place of 'g_signal_connect_data' to avoid the re-importing problem with hug. Im getting <unknown> handle ):Gtk-CRITICAL ** : ERROR Had noticed this ERROR when trying to RESIZE a widget directly , nothing to do with this project ,This led me to hiding the Widget then casting another to replace it , this is leading me to think of " is the correct handle id been used" or is because of the way the HUG lib is compiled ? Have done similar in pure GTK and had no problems ,, of note look at the demo by vovchik
|
|
|
Post by alexfish on May 28, 2012 20:39:33 GMT 1
@ 2lss, The new version compiles and works:) Now, perhaps, mouse and cursor-key control. @ 2lss and axelfish What about merging the two code bases (axelfish and 2lss)? Any takers? In any case, some real progress is being made very quickly. Thanks!!! With kind regards, vovchik Pleased to see you got it working , but do any errors show in the console if all ok , the need to look at my set up ,, or my window manager Think Now is time to Pool the resources , Need a plan and see if can put things into action possible get together via PM's to work things out' think can contact via PM's to throw some ideas. regards alexfish
|
|
|
Post by vovchik on May 28, 2012 20:39:57 GMT 1
# 2lss and axelfish,
I get the following non-fatal runtime error:
(<unknown>:526): Gtk-CRITICAL **: gtk_fixed_move_internal: assertion `GTK_IS_WIDGET (widget)' failed
when I try to assign widget properties without first giving focus (cliking on) the fixed-window button. The solution might be to use FOCUS() beforehand.
Furthermore, I use just hug.bac and it works.
With kind regards, vovchik
|
|
|
Post by alexfish on May 28, 2012 20:56:14 GMT 1
# 2lss and axelfish, I get the following non-fatal runtime error: (<unknown>:526): Gtk-CRITICAL **: gtk_fixed_move_internal: assertion `GTK_IS_WIDGET (widget)' failed when I try to assign widget properties without first giving focus (cliking on) the fixed-window button. The solution might be to use FOCUS() beforehand. Furthermore, I use just hug.bac and it works. With kind regards, vovchik THANKS SOLVED but suggest using Hug to set the focus through coding ,,, thanks again , alexfish
|
|
2lss
Full Member
Posts: 140
|
Post by 2lss on May 28, 2012 21:05:16 GMT 1
# 2lss and axelfish, I get the following non-fatal runtime error: (<unknown>:526): Gtk-CRITICAL **: gtk_fixed_move_internal: assertion `GTK_IS_WIDGET (widget)' failed when I try to assign widget properties without first giving focus (cliking on) the fixed-window button. The solution might be to use FOCUS() beforehand. Furthermore, I use just hug.bac and it works. With kind regards, vovchik Yes, the error is expected. I need a way to DISABLE the property tab when there are no widgets selected. I like the way alexfish uses the PNG's for the menu. I'm just not sure how to generate a callback when the icon is selected. Unless.... we use buttons and figure out how to place the icons on them?? That would simplify things a lot. I think we are heading in the right direction.
|
|
|
Post by vovchik on May 28, 2012 21:22:47 GMT 1
@ 2lss, I posted this somewhere else, but it shows how to create buttons using user-defined images using HUG's STOCK. Here it is.... With kind regards, vovchik Attachments:
|
|
2lss
Full Member
Posts: 140
|
Post by 2lss on May 28, 2012 21:39:24 GMT 1
vovchik,
Thats perfect!
I have to take a break for a while, so I will work on it later..... Unless someone else wants to.
|
|
|
Post by alexfish on May 28, 2012 22:06:41 GMT 1
vovchik, Thats perfect! I have to take a break for a while, so I will work on it later..... Unless someone else wants to. Have done some coding on the the callbacks with reference to the png/ re IMAGE as Widget Will do some demo work , Thanks vochik for the code for stock Buttons, will use in a demo + will implement the code from 2lss any Artistic graphics designers willing to have an input for the PNG's + a Splash Screen etc .. need to reflect the RAD tools own identity. Some food for thought , Re a "Video how to get started" , this could be done using webkit Thanks to you all alexfish
|
|
|
Post by fragadelic on May 28, 2012 23:36:12 GMT 1
This is awesome guys. I've been pretty busy lately but plan to help out as soon as possible on this.
|
|
|
Post by alexfish on May 29, 2012 2:01:54 GMT 1
Had some thoughts after testing coding posted
This is what I will be coding into the demo
1. canvas mouse technique ....: bigbass 2. gtk + callbacks etc.............:2lss 3. widget and file handling........:alexfish 4. the x11 mouse driver for constant positional feedback
regards
alexfish
|
|
mobeus
Junior Member
Posts: 86
|
Post by mobeus on May 29, 2012 16:41:03 GMT 1
Hi Guys, Before you go much further you may want to consider the end product. Do you think the user should be able to take advantage of their screen real estate with a resizeable GUI and scrollable layout area? Attachments:
|
|