bb.donnay-software.com

Donnay Software Web Forums
It is currently Fri Aug 23, 2019 7:57 pm

All times are UTC - 7 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: CJPOPUP / ItemClicked
PostPosted: Tue Oct 05, 2010 8:34 am 
Offline
User avatar

Joined: Thu Jan 28, 2010 12:59 am
Posts: 742
Location: Berlin, Germany
Hi, Roger.

If you run your sample for the popup control and click on the item, you will receive a runtime error, cause the ITEMCLICK clause does not hand the popup object to the codeblock (anymore? I remember this worked in earlier versions). I found out that you create a PostAppEvent there. If one popup control is used for several parts of the app, the item id is needed to identify the code to be executed on click. Without any knowledge about the object, there seems to be no way to find out the item id.

_________________
Best regards,
Tom

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


Top
 Profile  
 
PostPosted: Sat Oct 09, 2010 11:21 am 
Offline
Site Admin
User avatar

Joined: Wed Jan 27, 2010 6:58 pm
Posts: 3958
Location: Boise, Idaho USA
Tom -

Here is a fix for the problem in XCJCLASS.PRG (approximately line 1547).

Code:
IF Valtype(aOptions[15]) == 'B' ; ::itemClick := {|o|PostAppEvent(DCGUI_EVENT_ACTION,aOptions[15],o,self)} ; ENDIF

_________________
The eXpress train is coming - and it has more cars.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 3 guests


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group