| View previous topic :: View next topic |
| Author |
Message |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Jan 28, 2003 3:51 pm Post subject: Invisible style problem |
|
|
Hi,
There something I cant seem to figure out, (probably because not enough sleep ).
Im trying to add a bitmap element with the invisible style but it doesnt seem to work:
DIALOG ADD,BITMAP,TEST,100,100,30,30,@path(%0)test.bmp,Hello,click,INVISIBLE
When I do the the white region of my TEST.BMP that is suppose to be the invisble part doesnt work... What am I doing wrong ?
Thanks...
 |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Jan 28, 2003 3:56 pm Post subject: |
|
|
Hey Martin,
That's interesting. Is the Upper Left pixel white as well? That is what
color is invisible throughout the image. (I'm not saying you didn't
know that, just making sure you remember. ). _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Jan 28, 2003 4:10 pm Post subject: |
|
|
Yup, the bitmap has a round red circle in the middle, and the exterior is white.
I tried changing the exterior color to other colors to make sure...
Im suppose to see only the red circle not the white square background. |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Jan 28, 2003 4:13 pm Post subject: |
|
|
Can you post a copy of the bitmap? _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Rebel49 Contributor


Joined: 23 Aug 2002 Posts: 78 Location: Nova Scotia, Canada
|
Posted: Tue Jan 28, 2003 4:25 pm Post subject: |
|
|
If memory serves me, and it often does not, I ran into that same problem when I was first trying out and exploring VDS. I attributed to my lack of familiarity with the code and left it as that. Think I then went to plan "B" with whatever I was trying to do at the time.
Anyway I would be interested in any clarity to this.
REB _________________ OLD and eager! |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Jan 28, 2003 6:34 pm Post subject: |
|
|
If you don't create your Dialog with the INVISIBLE Style your bitmap won't be transparent.
Doesn't make a whole lot of sense to me but I don't see another way around it. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Jan 28, 2003 7:56 pm Post subject: |
|
|
Yeah, that seems the case. I hope that it works right in the next version. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Jan 28, 2003 8:02 pm Post subject: |
|
|
Here's a the rought code of what I'm trying to do and the link for the BMP is
http://www.extremesenses.com/vdsworld/seektest.bmp
| Code: | Title test
option decimalsep,.
DIALOG CREATE,Test1 ,-1,0,300,170,smallcap,resizable,DRAGDROP,CLASS XTTEST
dialog add,menu,File,Open test2...,Open test2...,-,Exit
dialog add,list,list1,25,25,100,30
DIALOG ADD,BITMAP,SEEKFW,120,108,30,30,@path(%0)seektest.bmp,hello,click,invisible
DIALOG SHOW
:timer
:Evloop
%E = @event()
if %E
goto %E
end
wait event,.1
goto @event()
:RESIZE
PARSE "%H;%W",@dlgpos(,HW)
if @greater(300,%W)
dialog setpos,,,,300
%W = 300
end
if @greater(300,%H)
dialog setpos,,,,,300
%H = 300
end
DIALOG SETPOS,list1,1,1,@diff(%W,2),@diff(%H,50)
rem here I tried without the click,invisble too.
dialog setpos,seekfw,@diff(%H,35),175,30,30,,click,invisible
goto evloop
:close
exit |
Adding INVISIBLE to the DIALOG CREATE doesnt work well at all for me.  |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Tue Jan 28, 2003 8:18 pm Post subject: |
|
|
Adding INVISIBLE doesn't make it look very well, but it's the only way the bitmap will be Transparent. I guess SADE figured transparent bitmaps were only good for skinning the whole app. _________________ -Sheep
My pockets hurt... |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Jan 28, 2003 8:21 pm Post subject: |
|
|
So in a way thats a bug right?
In the help it says:
| Quote: | DIALOG ADD, BITMAP,<name>,<top>,<left>,<width>,<height>,<filename>{,<hint>,<styles> }
This dialog element creates a bitmap at the position and size specified, containing the image <filename>.
If INVISIBLE is specified, the bitmap will create invisible portions within the image. The color at the position 0,0 on the bitmap determines the mask to use when making the image invisible. This style allows you to click and see desktop items under the bitmap control in the invisible portion. |
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Jan 28, 2003 8:22 pm Post subject: |
|
|
The only thing that I can think to do would be to use an icon. You
can then make the background of the icon invisible.
That may or may not work for what you want to do. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Jan 28, 2003 8:25 pm Post subject: |
|
|
Thanks Chris, that's what I will probably do then ...
Now to convert my bitmaps to ICO....
This may sound as a strange question, but how do I convert Anim GIFS to ANIM ICO?
Thanks guys... |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Tue Jan 28, 2003 8:33 pm Post subject: |
|
|
| I just download that, and converted my BMP to ICO, and it still doesnt work. Strange. |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Jan 28, 2003 8:38 pm Post subject: |
|
|
I converted the Seektest.bmp to an icon and made the background
transparent and it worked fine for me. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|