exit form dcbrows-object with double click

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
obelix
Posts: 48
Joined: Tue Dec 03, 2013 7:44 am
Location: Villingen-Schwenningen, Black Forest, Germany

exit form dcbrows-object with double click

#1 Post by obelix »

hi everybody

i want to leave a DCBROwSE object. If I use the ENTER-key it works but not with a mouse double click.

@ 3,2 DCBROWSE oVBrowse;
DATA cAlias SIZE wcol,wrow FONT feldfont DATALINK {||oVbrowse:doppelklick()}


Unfortunely I only found the following hint:
DATALINK <bDataLink> is an optional code block to evaluate whenever the user double-clicks the mouse
or presses the ENTER key within the browse area. The browse object is passed as a parameter to the code block.

but I don't know how to use ist. :roll:
quiet old but still young and unskilled in express++

User avatar
Tom
Posts: 1179
Joined: Thu Jan 28, 2010 12:59 am
Location: Berlin, Germany

Re: exit form dcbrows-object with double click

#2 Post by Tom »

Hi, Obelix.

DCBROWSE ... DATALINK should not be used. Use ITEMSELECTED instead. It should work like you want if you do this:

Code: Select all

@ ... DCBBROWSE ... ITEMSELECTED {||DC_ReadGuiEvent(DCGUI_EXIT_OK,GetList)}
This should exit your browse if either ENTER is pressed or a doubleclick (left mouse key) occurs.
Best regards,
Tom

"Did I offend you?"
"No."
"Okay, give me a second chance."

User avatar
obelix
Posts: 48
Joined: Tue Dec 03, 2013 7:44 am
Location: Villingen-Schwenningen, Black Forest, Germany

Re: exit form dcbrows-object with double click

#3 Post by obelix »

Danke Tom :D
Precisely that what I needed, and not the first time.
Are there questions you can't bring to a successfil end ? I think, the next weeks I will try to bring you in troubles with my foolish problems.
Thanks for your help.
quiet old but still young and unskilled in express++

Post Reply