forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Invisible style problem
Goto page 1, 2  Next
 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Jan 28, 2003 3:51 pm    Post subject: Invisible style problem Reply with quote

Hi,

There something I cant seem to figure out, (probably because not enough sleep Wink ).

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...
Smile
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Jan 28, 2003 3:56 pm    Post subject: Reply with quote

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. Wink ).

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Jan 28, 2003 4:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Jan 28, 2003 4:13 pm    Post subject: Reply with quote

Can you post a copy of the bitmap?
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Rebel49
Contributor
Contributor


Joined: 23 Aug 2002
Posts: 78
Location: Nova Scotia, Canada

PostPosted: Tue Jan 28, 2003 4:25 pm    Post subject: Reply with quote

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. Exclamation

Anyway I would be interested in any clarity to this.

REB

_________________
OLD and eager!
Back to top
View user's profile Send private message
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Jan 28, 2003 6:34 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Jan 28, 2003 7:56 pm    Post subject: Reply with quote

Yeah, that seems the case. I hope that it works right in the next version.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Jan 28, 2003 8:02 pm    Post subject: Reply with quote

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. Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Tue Jan 28, 2003 8:18 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Jan 28, 2003 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Jan 28, 2003 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Jan 28, 2003 8:25 pm    Post subject: Reply with quote

Thanks Chris, that's what I will probably do then ...

Now to convert my bitmaps to ICO.... Confused

This may sound as a strange question, but how do I convert Anim GIFS to ANIM ICO?

Thanks guys...
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Jan 28, 2003 8:29 pm    Post subject: Reply with quote

I think Microangelo can do that, but, I'm not sure. You can DL
the trial and try it. --> http://www.impactsoft.com

_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
marty
Professional Member
Professional Member


Joined: 10 May 2001
Posts: 789

PostPosted: Tue Jan 28, 2003 8:33 pm    Post subject: Reply with quote

I just download that, and converted my BMP to ICO, and it still doesnt work. Strange.
Back to top
View user's profile Send private message Send e-mail Visit poster's website MSN Messenger
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Jan 28, 2003 8:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
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

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group