Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / [BlueGUI2]

Author
Message
Escaped Ape
18
Years of Service
User Offline
Joined: 25th Jul 2006
Location: Germany
Posted: 6th Sep 2006 23:07 Edited at: 6th Sep 2006 23:08
Heyho!

I asked myself if it is possible to create gadgets in the main -window but still use the sync command.
By now the gadget is not visible when using the sync command and not using it does not refresh the window (realy?).
If there a solution or do i have to use windows instead?

Thanks.

EDIT: Sorry i kinda forgot the thread-title
Jack LOL
18
Years of Service
User Offline
Joined: 4th Aug 2006
Location: Near the CPU Close to the graphic card
Posted: 7th Sep 2006 13:45 Edited at: 7th Sep 2006 13:46
Well maybe if u create the gadgets at the start of the loop and delete them at the end, it will work.
i have'nt tested it but it might just work.

(forgive my english) lol?! xD
Escaped Ape
18
Years of Service
User Offline
Joined: 25th Jul 2006
Location: Germany
Posted: 7th Sep 2006 17:36 Edited at: 7th Sep 2006 17:43
Doesn't work
Here an example where its implemented...so it must be possible.
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th Sep 2006 17:49
Works OK for me.

I create my gadgets, then run my main code. I can SYNC and all is fine.

The only problem is with Modal windows. That is, windows that keep the focus until you close them. In this case, you can still SYNC, but it switches the backdrop off for some reason.



Escaped Ape
18
Years of Service
User Offline
Joined: 25th Jul 2006
Location: Germany
Posted: 7th Sep 2006 18:06
Could you post a little example code of your working program please?
Heres what i do:

I only see the gadgets in the main window when i resize the main Window.
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 7th Sep 2006 19:11
Create an interface using Rainbow, and you will get a whole load of code showing you how it's done.



Escaped Ape
18
Years of Service
User Offline
Joined: 25th Jul 2006
Location: Germany
Posted: 7th Sep 2006 19:37 Edited at: 7th Sep 2006 22:27
Rainbow doesn't use syncs.
In the examples of bluegui no sync is used as well - thats the point.

EDIT: Got the problem.
I had some code which changed the main window attributes AFTER i made it to a gadget - for some reason that caused the problem.
Escaped Ape
18
Years of Service
User Offline
Joined: 25th Jul 2006
Location: Germany
Posted: 8th Sep 2006 00:47 Edited at: 8th Sep 2006 13:57
Got another problem since i've updated from v. 2.01 to 2.052.
My program got a main window with a menu and a additional window which contains some buttons.
When i press items in the menu of the main window all works fine, but when i press buttons in the additional window the program calls also the menu-item-code.
There must be a conflict between some events i think, but i don't know what it could be..
The problem appears in all versions but in the 2.01.

EDIT:
Here an example:
For the main menu my code is:

now the code for the new window:

The variables about and selFolder are set with the handle of the gadget.
Now when i click on the folder button in the new window the about menu pops up, too...
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 19th Sep 2006 04:52
Hello,

Please update to 2.053 and copy the newer gui.dba file provided into your own projects.

The value of the MENU_CLICKED constant was changed to solve this problem.

Regards,
Robert.


BlueGUI Windows Plugin

Login to post a reply

Server time is: 2025-05-17 22:44:52
Your offset time is: 2025-05-17 22:44:52