KiXforms Forum Index KiXforms
The Forum for the KiXforms Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Quick Links 
Site News
Downloads
Documentation
Donations
Script Archive
Tracking Systems

Need another Toolbutton behavior ....
Goto page 1, 2  Next
 
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri Aug 06, 2004 6:05 am    Post subject: Need another Toolbutton behavior .... Reply with quote

Shawn,

if possible I'd like to have ToolButton doing nothin OnClick (Of course only graphically spoken)

Could use a Label but would loose the 'powers' of the ToolButton control Wink

Furhtermore: Will it be possible sometime to add Transparent to any Controls' BackgroundColor Property ? That'd be great

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Aug 06, 2004 11:03 am    Post subject: Reply with quote

How would you like the toolbutton to behave ?
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri Aug 06, 2004 11:07 am    Post subject: Reply with quote

hard to explain obviously Smile

I like it to behave as any other Toolbutton but the behavior should not be indicated by a graphical change of it.
Like the button appears to be pushed while Mousebutton is down...
Comparable to what happens (graphically) when you click a Label (nothing!)

And of course $object.BackColor = Transparent

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Aug 06, 2004 11:17 am    Post subject: Reply with quote

And you cant use a label because ....
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Fri Aug 06, 2004 11:41 am    Post subject: Reply with quote

say, you have a game that uses areas...
toolbutton in this state would be great as user would see only the background done behind it...

but there are simplier things... must wonder too why jochen is looking for this.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri Aug 06, 2004 12:42 pm    Post subject: Reply with quote

Hmmm .... on the other side ... Label can contain an Image in the mean time, right ?

Yeah, why would I use Toolbutton then Rolling Eyes

Still Transparent Background would be much appreciated

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Fri Aug 06, 2004 12:58 pm    Post subject: Reply with quote

jochen, can you manage to be online later today...
have something wanna discuss about.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri Aug 06, 2004 12:59 pm    Post subject: Reply with quote

can't promise as I have to work as usual after bureau time Tired
We'll see

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Aug 06, 2004 1:04 pm    Post subject: Reply with quote

ok - will let you in on a little secret - this was a feature of the new label i was working on - check it out ... experimental !

Find your self a nice big bitmap and modify the code below as required, check-out the label background ...

Code:

break on

$system = createobject("kixtart.system")

$form = $system.form()

$panel = $form.panel()
$panel.borderstyle = 1
$panel.backgroundimage = $system.bitmap("e:\docs\roses.jpg")

$panel.size = $panel.backgroundimage.size
$panel.dock = "fill"

$label = $panel.label()
$label.forecolor = "white"
$label.font = $system.font("Verdana",16)
$label.center
$label.text = "Captain!"
$label.backcolor = "transparent"

$form.clientsize = $panel.size

$form.center
$form.show()

while $form.visible
 $=execute($form.doevents)
loop

exit 1


-Shawn
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Fri Aug 06, 2004 1:22 pm    Post subject: Reply with quote

heh, with background being white (or grey) couldn't see a shit.
ja, nice.

even though the label is screwed, shows only half of the text.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri Aug 06, 2004 1:23 pm    Post subject: Reply with quote

$label.backcolor = "transparent"

Just as I asked and in no time Shocked

But how to add an Image from an ImageList (with defined TransparentColor) to that Label ? Rolling Eyes

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Aug 06, 2004 1:26 pm    Post subject: Reply with quote

Thats been in for a while - was something being worked on - the ImageList thingy isn't supported Sad
Back to top
View user's profile Send private message
Lonkero
KiXforms Devotee
KiXforms Devotee


Joined: 13 Mar 2003
Posts: 1022
Location: Espoo, Finland

PostPosted: Fri Aug 06, 2004 1:26 pm    Post subject: Reply with quote

why labels?
shawn, this is getting to the picturebox area.
I wanna have picture laid over picture.
transparency isn't needed.

_________________
Hammer
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shawn
KiXforms Developer
KiXforms Developer


Joined: 22 Feb 2003
Posts: 1983
Location: Canada

PostPosted: Fri Aug 06, 2004 1:34 pm    Post subject: Reply with quote

Picture laid over picture could be done with the Label, try using the BackgroundImage property for the background, and the Image property for foreground (with ImageAlign to align the foreground image).

Painting on labels isn't supported yet.

-Shawn
Back to top
View user's profile Send private message
Jochen
KiXforms Devotee
KiXforms Devotee


Joined: 05 Mar 2003
Posts: 1204
Location: Stuttgart, Germany

PostPosted: Fri Aug 06, 2004 1:39 pm    Post subject: Reply with quote

Hehe,

so either I need to have
$toolbutton.BackColor = 'Transparent' or
$label.Icon
enabled which both would have my desired result !

I'd prefer Labels supporting Icons though as the Toolbuttons have undesired effects when Mouse is over them

Please ?

_________________
Jochen

Tell me, and I will forget.
Show me, and I may remember.
Involve me, and I will understand.
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    KiXforms Forum Index -> Discussion 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 cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group