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 Image on a Panel

Author
Message
Bmad6
19
Years of Service
User Offline
Joined: 25th Aug 2005
Location: Virginia, United States
Posted: 26th Jul 2006 06:32 Edited at: 26th Jul 2006 06:37
I'm using BlueGUI, and I'm having problems with one part of my program.

I have a subroutine which SHOULD create a new window, add a panel to the window, and put an image on the panel. Instead, it creates a window, but doesn't show an image or panel or anything... Here's my code:


edit_image is a Edit where I have them input the filename, and image_windows is an array of type imagewindow



This code works if I replace:



with:



However, this only allows bitmaps, whereas DBPro supports TGA,DDS,JPG,etc...

btw, num_windows is a variable which increases every time I open a new window, so I use it to determine which image, bitmap, array index, etc. to use...

thanks in advance

driftman
19
Years of Service
User Offline
Joined: 7th Aug 2005
Location: Somewhere Outside of Sanity
Posted: 26th Jul 2006 07:53
make sure to make a memblock somewhere, then you can delete the memblock after. It needs the memblock dll loaded so that it can add the image.

I have a lil' white jacket that lets me hug myself forever.
Bmad6
19
Years of Service
User Offline
Joined: 25th Aug 2005
Location: Virginia, United States
Posted: 26th Jul 2006 08:04
that sounds promising - thanks, i'll try that!

Bmad6
19
Years of Service
User Offline
Joined: 25th Aug 2005
Location: Virginia, United States
Posted: 26th Jul 2006 08:19 Edited at: 26th Jul 2006 08:21
Ok, one last problem. Now, when I load some images, they're WAY to big - they go all the way to the edge of the window, sometimes farther, but they window I created was supposed to be 100 pixels larger

is there a limit to how big a window can be?

Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 6th Aug 2006 03:43
Hello Bmad6,

You need to put a ",1" (comma followed by a 1) on the end of the LOAD IMAGE command when you load your images before putting them into the panel.

This ensures that the image size doesn't get inflated at all.


BlueGUI Windows Plugin
Tartopom
20
Years of Service
User Offline
Joined: 27th Jun 2004
Location:
Posted: 6th Aug 2006 15:18
Hello,

I know this is not the right place, but Rob, any idea about an update of blueGui ?
Rob K
Retired Moderator
22
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 17th Aug 2006 01:39
Hello Tartopom,

Yes - I will try and find some time in the next few days to fix outstanding bugs and produce a new beta release.

Regards,
Robert.


BlueGUI Windows Plugin

Login to post a reply

Server time is: 2024-11-22 12:19:36
Your offset time is: 2024-11-22 12:19:36