Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOW CAN I DISABLE ZOOM IN DATAWINDOW'S PB8

Status
Not open for further replies.

zakkar

Programmer
Dec 3, 2002
72
GR
Hello,
It's not much of a problem but sometimes it becomes annoying.In pb8 when i have focus in a datawindow control if i press ctrl key and the rollover button of the mouse then the datawindow control starts to maximize or minimize .Like if i have called the zoom command.Probably it's default of the powerbuilder 8.How can i disable it?.It does this in all of my screens so i assume that it is a general property of Pb.Any suggestions?
Thank you in advance
 
Hi,

You need to trap the mousescroll event on the datawindow. I do not know if PB8 has a defined event i.e. pbm_mousescrolldown (or whatever), which you could add to the datawindow as a user event. I had success in PB6.5 using the
Code:
other
event (it's the one which all non-PB messages [i.e. windows] are sent to), and trapping on the
Code:
WPARAM
event argument. Return 1 to stop any further processing of a message, and 0 to allow continued processing. The windows.h (or one of the later ms header files) should contain the definition of the messages you'll need. If you want to output the values sent to the
Code:
other
event, use a multilineedit control and code like this in the datawindow's
Code:
other
event:
Code:
mle_1.text += (String(wparam) + " :: " + String(lparam) + "~r~n")
mle_1.SelectText(Len(mle_1.text),0)

return 0

Do not use a MessageBox as things will get messy.

Cheers.
 
Hello ,
How can i avoid this.Meaning with that not to write code to trap the rollover button.Is there any public option to disable this datawindow's zoom?I suppose not.Thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top