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 / [BlueGUI] Radio button bug

Author
Message
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Oct 2006 14:22
When I put a radio button inside a frame the background turns black and I can't change it's color. When I have it in a panel it seems to have a transparent background.

Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 5th Oct 2006 14:52
Here's another thing with radiobuttons. The frame that is the parent for the radiobuttons flashes whenever the mouse enters or leaves the radiobutton.

jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 6th Oct 2006 06:09
Radio buttons are parts of groups. Also, there is usually a static parent frame that is an outline. It seems to me that you are complaining that:
1. The radio button is not grouped in the frame properly. Probably has the wrong parent handle.
2. There is a related issue with focus in this improperly made group.

What is the entire content of the frame in question? (i.e. Are there more radio buttons in the window, or perhaps other controls?)

I do not have BlueGUI and do not know how much control you have over the attributes of controls you create, but...if you give me that information, I can tell you what the legal Windows code is, and what the values need to be for BlueGUI calls.
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 6th Oct 2006 11:23
I don't see why you are replying when you don't know how BlueGUI works.

Anyway, I was thinking of posting a shot anyway. The radiobuttons are childs to the Camera frame because that's the only way to have them related. As you can see I also have the problem with the caption on frames in frames that someone reported earlier.

Attachments

Login to view attachments
Alquerian
19
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 6th Oct 2006 19:35
@DA- Post some code and I will take a look at it for ya.

"We are what we repeatedly do. Excellence, therefore, is not an act, but a habit." - Aristotle
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 6th Oct 2006 22:44
It's not my code that's the problem, they show up nicely outside frames. As soon as I change the parent to a frame they turn black.

Alquerian
19
Years of Service
User Offline
Joined: 29th Mar 2006
Location: Reno Nevada
Posted: 7th Oct 2006 01:14 Edited at: 7th Oct 2006 01:15
@DA - I am unable to replicate your problem. Here is a code snippet that I used to set radio buttons to both a panel and a frame as well as changing their colors on both. On a panel, you can see that the radio does not have a transparent background by default.



When the DBP window has the focus (not the RadioWindow) hit the spacebar to modify the colors of the gadgets.

Attached is the output of the code (2 spliced screenies), the bottom radios are on a panel, where the top ones are in a frame.
Hope this helps!

"We are what we repeatedly do. Excellence, therefore, is not an act, but a habit." - Aristotle

Attachments

Login to view attachments
jinzai
18
Years of Service
User Offline
Joined: 19th Aug 2006
Location: USA
Posted: 7th Oct 2006 11:03
I am replying because I know how Windows works...but then again, if you do not wish my assistance..I understand.
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 7th Oct 2006 16:04
Alquerian:
That works for me as well. I have to dig deeper and see what exactly are causing the black backgrounds. I'm on a different computer over the weekend and I'm bussy on monday but I'll have a go on tuesday.

jinzai:
Sorry, but knowing how windows works doesn't really help me with BlueGUI. Thanks anyway.

Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 8th Oct 2006 12:45 Edited at: 8th Oct 2006 12:50
I recalled that I had the latest version of my program on my USB memory so i ran it and I got the same bug. But I tried to remove the manifest file and eureka the bug dissapeared. So I tried Alquerian's code with a manifest and there's the bug again.

So, the bug is in BlueGUI but only when using the manifest file.

OH! And running without the manifest also sorted out the bug with the frame in frame captions and the frame flickering when mousing over the radio buttons.

Here's a screenshot. I need to figure out what to do about the colors because nothing looks the same on this computer as my work computer.

Attachments

Login to view attachments
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 9th Oct 2006 21:26
Hello DA,

I find this happens with other development environments besides DarkBASIC / BlueGUI.

The solution is to put a flat panel ( or empty label - same thing ) inside the frame and place the radio buttons on that.


BlueGUI Windows Plugin
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 10th Oct 2006 10:50
So it's a bug in Windows? I figured out an easy way for me to add panels inside the frames and that worked great Both radiobuttons and frames works now.

Login to post a reply

Server time is: 2025-05-18 00:11:45
Your offset time is: 2025-05-18 00:11:45