Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Pressed Buttons
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Philip Salgannik  
View profile  
 More options Jul 18 2003, 5:07 pm
Newsgroups: powersoft.public.powerbuilder.objects
From: "Philip Salgannik" <phile...@comcast.net>
Date: Fri, 18 Jul 2003 14:00:57 -0400
Local: Fri, Jul 18 2003 2:00 pm
Subject: Re: Pressed Buttons
He is probably thinking about windows taskbar, where this behaviour is
implemented thru a paticular style of a tab control (this style
unfortunately i not supported by PB wrappers of Micro$oft's tab control,
although I numerously requested it as an enhancement request).

--
This is a FAQ, read Help, then search
www.groups.google.com/advanced_group_search

pbm_thisusuallydoesnothelp:-))
Philip Salgannik

"Tyler Craft" <NoSpamTyler.Cr...@gnb.ca> wrote in message

news:u21tCaVTDHA.344@forums-2-dub...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Piotr  
View profile  
 More options Jul 18 2003, 5:07 pm
Newsgroups: powersoft.public.powerbuilder.objects
From: "Piotr" <p...@o2.pl>
Date: Fri, 18 Jul 2003 10:47:53 -0700
Local: Fri, Jul 18 2003 1:47 pm
Subject: Pressed Buttons
Hello again, the problem is: Suppose you have a CommandButton. When you click on
it using left mouse button and hold it, the CommandButton will be in pressed
state. When you push the left mouse button up, the CommandButton will return to
its default, lets say, unpressed state. How to obtain the situation that after
pushing the left mouse button up, the CommandButton will be still in pressed
state? I other words clicking on the CommandButton will be changing its state
from pressed to unpressed and vice-versa. Thnx...
---== Posted via the PFCGuide Web Newsreader ==---
http://www.pfcguide.com/_newsgroups/group_list.asp

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tyler Craft  
View profile  
 More options Jul 18 2003, 5:07 pm
Newsgroups: powersoft.public.powerbuilder.objects
From: "Tyler Craft" <NoSpamTyler.Cr...@gnb.ca>
Date: Fri, 18 Jul 2003 14:52:12 -0300
Local: Fri, Jul 18 2003 1:52 pm
Subject: Re: Pressed Buttons
This goes against the default way that a command button works so short
answer is you can't with the commandbutton control.

In order to do this you must roll your own command button as a userobject IE
two labels, offset from each other to give the effect of a commandbutton (
its all it really is anyway).
In the clicked of the top label check your instance boolean ib_raised

//Puesdo start not tested
If ib_raised Then
    l_top.x = l_bottom.x + 5
    l_top.y = l_bottom.y + 5
else
    l_top.x = l_bottom.x - 5
    l_top.y = l_bottom.y - 5
End if
ib_raised = Not ib_raised
//Puesdo end

you would then just trigger and event on the userobject that you would place
the code you need to happen.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tyler Craft  
View profile  
 More options Jul 18 2003, 5:07 pm
Newsgroups: powersoft.public.powerbuilder.objects
From: "Tyler Craft" <NoSpamTyler.Cr...@gnb.ca>
Date: Fri, 18 Jul 2003 15:01:48 -0300
Local: Fri, Jul 18 2003 2:01 pm
Subject: Re: Pressed Buttons
Or better yet use one label on user object with this code in the clicked
event of the label. Just create the userevent ue_clicked for special
handling.

If ib_raised Then
 this.borderstyle = StyleLowered!
else
 this.borderstyle = StyleRaised!
End if
ib_raised = Not ib_raised
this.triggerevent('ue_clicked')


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »