vcl4php-developers Mailing List for VCL for PHP (Page 9)
Brought to you by:
ttm
You can subscribe to this list here.
2007 |
Jan
|
Feb
|
Mar
|
Apr
(63) |
May
(29) |
Jun
(135) |
Jul
(36) |
Aug
(15) |
Sep
(30) |
Oct
|
Nov
(6) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2008 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(9) |
Dec
(15) |
2009 |
Jan
(2) |
Feb
(4) |
Mar
(2) |
Apr
|
May
(8) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2012 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: Rob W. <rob...@gm...> - 2007-06-18 22:38:41
|
I see "readImageList()" and "writeImageList()" but no "getImageList()" in CustomTreeView. If I access read/write functions, it works without issue. Perhaps you can give an example of where you used this that you have a problem? -Rob On 6/18/07, FrozenDice <fro...@gm...> wrote: > This is only the second component I've made and the first extended > Control so this is really my first component extending an existing > component from the VCL. I followed the same basic template but keep > getting an error > Call to undefined method MegaTree::setImageList() > Which makes sense because there is no MegaTree->setImageList, it's > extended from CustomTreeView so it should be looking for > CustomTreeView->setImageList. > > Any idea why it's doing this? The basic functionality I'm adding is a > property whether to have the tree open by default or not. Here's my > code: > > > <?php > > //Includes > require_once("vcl/vcl.inc.php"); > use_unit("stdctrls.inc.php"); > use_unit("comctrls.inc.php"); > > //Class definition > class MegaTree extends CustomTreeView > { > function __construct($aowner = null) > { > parent::__construct($aowner); > } > protected $_allOpen=false; > > function getAllOpen() { return $this->_allOpen; } > function setAllOpen($value) { $this->_allOpen=$value; } > function defaultAllOpen() { return false; } > > function dumpItem($item, $parent, $level) > { > $c='p_'.$level; > $trsname = $this->dumpRow($item, $level); > > if (array_key_exists('Items', $item)) $items = $item['Items']; > else $items=array(); > > if (count($items) == 0) > { > echo " var $c = new > qx.ui.treefullcontrol.TreeFile(trs);\n"; > } > else > { > echo " var $c = new > qx.ui.treefullcontrol.TreeFolder(trs);\n"; > if($this->_allOpen) // added > echo " $c.setOpen(true);"; // added > } > > if (array_key_exists('Tag', $item)) $tag=$item['Tag']; > else $tag=0; > > __QLibrary_SetCursor($c, $this->Cursor); > > echo " $c.tag=$tag;\n"; > echo " $parent.add($c);\n\n"; > > if (count($items) != 0) > { > $i = 0; > while (list($k, $child)=each($items)) > { > $this->dumpItem($child, $c, ($level + 1)); > } > } > } > > } > > ?> > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: FrozenDice <fro...@gm...> - 2007-06-18 20:49:12
|
This is only the second component I've made and the first extended Control so this is really my first component extending an existing component from the VCL. I followed the same basic template but keep getting an error Call to undefined method MegaTree::setImageList() Which makes sense because there is no MegaTree->setImageList, it's extended from CustomTreeView so it should be looking for CustomTreeView->setImageList. Any idea why it's doing this? The basic functionality I'm adding is a property whether to have the tree open by default or not. Here's my code: <?php //Includes require_once("vcl/vcl.inc.php"); use_unit("stdctrls.inc.php"); use_unit("comctrls.inc.php"); //Class definition class MegaTree extends CustomTreeView { function __construct($aowner = null) { parent::__construct($aowner); } protected $_allOpen=false; function getAllOpen() { return $this->_allOpen; } function setAllOpen($value) { $this->_allOpen=$value; } function defaultAllOpen() { return false; } function dumpItem($item, $parent, $level) { $c='p_'.$level; $trsname = $this->dumpRow($item, $level); if (array_key_exists('Items', $item)) $items = $item['Items']; else $items=array(); if (count($items) == 0) { echo " var $c = new qx.ui.treefullcontrol.TreeFile(trs);\n"; } else { echo " var $c = new qx.ui.treefullcontrol.TreeFolder(trs);\n"; if($this->_allOpen) // added echo " $c.setOpen(true);"; // added } if (array_key_exists('Tag', $item)) $tag=$item['Tag']; else $tag=0; __QLibrary_SetCursor($c, $this->Cursor); echo " $c.tag=$tag;\n"; echo " $parent.add($c);\n\n"; if (count($items) != 0) { $i = 0; while (list($k, $child)=each($items)) { $this->dumpItem($child, $c, ($level + 1)); } } } } ?> |
From: Tiago L. T. <ti...@la...> - 2007-06-15 20:03:17
|
Hi Rob That's not the point. The question is that using vcl4php you could use the same methods to do something wich if done in JavaScript will require specific knowledge of the underlying APIs (qooxdoo, dynapi, jquery and so on). I think this could be a nice approach as the component writer could provide this knowledge wrapped in "JS aware" methods. Thanks :) Rob Wilkens wrote: > That blurs the line b/w client and server code too much.... You might next expect to be able to -- for example, change a value of a php variable and access it alterred... But php doesn't run on the client browsers 'yet'.. > > -----Original Message----- > From: Tiago Lima Trinidad <ti...@la...> > Sent: June 15, 2007 3:03 PM > To: vcl...@li... > Subject: [vcl4php-developers] RFC: "JavaScript aware components" - ie. Automatic switching between PHP and JavaScript code generation > > Hi all, > Today vcl4php works like this, if you write an jsOnClick event like > function Button1jsOnClick($sender, $params) { > $this->Button1->Caption = "You've clicked me!"; > echo "return false;"; > } > it will only generate a JS function containing "return false;". This > happens because the Caption property is not "JavaScript aware", thus it > only sets the PHP property named Caption wich is using for dumping the > Component (ajax or non-ajax dumping) and nowhere else. > > My idea is the following: > - Add to Component a set of functions that switch between PHP and JS > "mode" (I will call them BeginJSMode, EndJSMode). > - Modify the magic __get(), __set() so when in JS mode when trying to > get, for example, Caption, it will search first for jsgetCaption (this > naming is just an example) and if it's not found it will act like it > does now (looking for getCaption). > - Add a magic __call() so when in JS mode it will look for functions > beginning with "js" and if not found it will call the actual function > (ex: $this->ListBox1->Clear() if in JS mode will call > $this->ListBox1->jsClear()). > > Those js functions will generate the JS equivalent code of the PHP > version, so the example of using $this->Button->Caption will work inside > JS events. > > One problem that comes to mind is persistence. If the page is submited, > JS modified properties will not propagate to PHP properties and thus > undoing what JS aware code did. > > I would like to hear from you and receive suggestions, new ideas, > solutions, problems or even telling me that this would never work (but > please, tell me why :P)! > > Regards > > PS: Resent because it looks like it didn't arrive at the mailing list... -- Tiago Lima Trinidad |
From: Rob W. <rob...@gm...> - 2007-06-15 19:55:55
|
That blurs the line b/w client and server code too much.... You might next= expect to be able to -- for example, change a value of a php variable and = access it alterred... But php doesn't run on the client browsers 'yet'.. -----Original Message----- From: Tiago Lima Trinidad <ti...@la...> Sent: June 15, 2007 3:03 PM To: vcl...@li... Subject: [vcl4php-developers] RFC: "JavaScript aware components" - ie. Auto= matic switching between PHP and JavaScript code generation Hi all, Today vcl4php works like this, if you write an jsOnClick event like function Button1jsOnClick($sender, $params) { $this->Button1->Caption =3D "You've clicked me!"; echo "return false;"; } it will only generate a JS function containing "return false;". This happens because the Caption property is not "JavaScript aware", thus it only sets the PHP property named Caption wich is using for dumping the Component (ajax or non-ajax dumping) and nowhere else. My idea is the following: - Add to Component a set of functions that switch between PHP and JS "mode" (I will call them BeginJSMode, EndJSMode). - Modify the magic __get(), __set() so when in JS mode when trying to get, for example, Caption, it will search first for jsgetCaption (this naming is just an example) and if it's not found it will act like it does now (looking for getCaption). - Add a magic __call() so when in JS mode it will look for functions beginning with "js" and if not found it will call the actual function (ex: $this->ListBox1->Clear() if in JS mode will call $this->ListBox1->jsClear()). Those js functions will generate the JS equivalent code of the PHP version, so the example of using $this->Button->Caption will work inside JS events. One problem that comes to mind is persistence. If the page is submited, JS modified properties will not propagate to PHP properties and thus undoing what JS aware code did. I would like to hear from you and receive suggestions, new ideas, solutions, problems or even telling me that this would never work (but please, tell me why :P)! Regards PS: Resent because it looks like it didn't arrive at the mailing list... --=20 Tiago Lima Trinidad ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ vcl4php-developers mailing list vcl...@li... https://lists.sourceforge.net/lists/listinfo/vcl4php-developers |
From: Tiago L. T. <ti...@la...> - 2007-06-15 19:54:27
|
I've been thinking, and persistence issues could be addressed using hidden fields in the form (like it's done with checkboxes) Tiago Lima Trinidad wrote: > Hi all, > Today vcl4php works like this, if you write an jsOnClick event like > function Button1jsOnClick($sender, $params) { > $this->Button1->Caption = "You've clicked me!"; > echo "return false;"; > } > it will only generate a JS function containing "return false;". This > happens because the Caption property is not "JavaScript aware", thus it > only sets the PHP property named Caption wich is using for dumping the > Component (ajax or non-ajax dumping) and nowhere else. > > My idea is the following: > - Add to Component a set of functions that switch between PHP and JS > "mode" (I will call them BeginJSMode, EndJSMode). > - Modify the magic __get(), __set() so when in JS mode when trying to > get, for example, Caption, it will search first for jsgetCaption (this > naming is just an example) and if it's not found it will act like it > does now (looking for getCaption). > - Add a magic __call() so when in JS mode it will look for functions > beginning with "js" and if not found it will call the actual function > (ex: $this->ListBox1->Clear() if in JS mode will call > $this->ListBox1->jsClear()). > > Those js functions will generate the JS equivalent code of the PHP > version, so the example of using $this->Button->Caption will work inside > JS events. > > One problem that comes to mind is persistence. If the page is submited, > JS modified properties will not propagate to PHP properties and thus > undoing what JS aware code did. > > I would like to hear from you and receive suggestions, new ideas, > solutions, problems or even telling me that this would never work (but > please, tell me why :P)! > > Regards > > PS: Resent because it looks like it didn't arrive at the mailing list... -- Tiago Lima Trinidad |
From: Tiago L. T. <ti...@la...> - 2007-06-15 19:05:00
|
Hi all, Today vcl4php works like this, if you write an jsOnClick event like function Button1jsOnClick($sender, $params) { $this->Button1->Caption = "You've clicked me!"; echo "return false;"; } it will only generate a JS function containing "return false;". This happens because the Caption property is not "JavaScript aware", thus it only sets the PHP property named Caption wich is using for dumping the Component (ajax or non-ajax dumping) and nowhere else. My idea is the following: - Add to Component a set of functions that switch between PHP and JS "mode" (I will call them BeginJSMode, EndJSMode). - Modify the magic __get(), __set() so when in JS mode when trying to get, for example, Caption, it will search first for jsgetCaption (this naming is just an example) and if it's not found it will act like it does now (looking for getCaption). - Add a magic __call() so when in JS mode it will look for functions beginning with "js" and if not found it will call the actual function (ex: $this->ListBox1->Clear() if in JS mode will call $this->ListBox1->jsClear()). Those js functions will generate the JS equivalent code of the PHP version, so the example of using $this->Button->Caption will work inside JS events. One problem that comes to mind is persistence. If the page is submited, JS modified properties will not propagate to PHP properties and thus undoing what JS aware code did. I would like to hear from you and receive suggestions, new ideas, solutions, problems or even telling me that this would never work (but please, tell me why :P)! Regards PS: Resent because it looks like it didn't arrive at the mailing list... -- Tiago Lima Trinidad |
From: Rob W. <rob...@gm...> - 2007-06-14 23:14:22
|
Attached is an updated patch for the two things patched earlier. Discard earlier patches that haven't already been applied from me (because this has both of them in it). Essentially: -RichEdit now works on page control properly and there are no page load errors. -Session storing of xml file is still working properly, including on page control and dynamically loaded objects now (the latter are NOT stored). -Rob -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: <ti...@la...> - 2007-06-13 14:34:59
|
Hi, My previous patch adds this too! You should take a look at it and maybe add your own improvements ;) > I was wondering how I submit changes so whoever needs to can look over > it and put it into the main VCL? For example, on the Window component > there was previously no way to set the Icon for each window, I added a > property "Icon", and in DumpContents it checks if the value is not "", > then it echos that value where the icon should be defined in making a > new window. > > - Daniel > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > |
From: Rob W. <rob...@gm...> - 2007-06-13 13:48:26
|
I did an 'SVN Update' and found some conflicts in the patches I submitted this week. I think I've resolved them all now. This patch contains: (1) RichEdit on PageControl fix (2) Session Storing fix for when page control used or dynamic controls created. It is attached. -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Jim H. <ji...@di...> - 2007-06-13 02:43:11
|
Check the XML file. Jim www.D4PHP.org www.D4PHP-Hosting.com On 6/12/07, FrozenDice <fro...@gm...> wrote: > > I made a custom component a little while back and had used it in a > project I'm working on. Since then I've found I don't need it > anymore, so I deleted it from the form, went to packages removed it > from there, removed the requrire_once form the code, and deleted the > actual files that had the component code in them. Then I restarted > the IDE and ran my program. > > To my great surprise there was a message saying it couldn't > require_once in my component, which I had deleted. There is no > reference to the component in my code at all, I'm stumped, any ideas > on how to get this to work? > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > |
From: FrozenDice <fro...@gm...> - 2007-06-13 00:24:54
|
Where is the forum you mentioned where I can submit a feature request? > FrozenDice escribi?: > > I've noticed when using the MainMenu component that if you create an > > item on the top level that has nothing inside it and click it during > > runtime you get this small grey box that appears under it where a menu > > would usually come out. I know it's hard to explain so here's a > > picture: http://uomu.com/public/differenceMenus.jpg This sets Items => > > null for this specific item(Test). If you set Items => null then it > > doesn't show that, and acts like a you would expect a menu to when it > > has nothing under it, more like a button. > Ok, this has been fixed, a check has been added to detect if the array > is empty. > > > Also another question I have, is it possible to have a click > > Javascript event fire when you click on a menu with things inside > > it(if Test had options under it, could I click on Test and have a > > click event be fired)? I'm asking this because if I combine Items => > > null and a click event like this then you could make a about, or help, > > or anything on the main menu that acted more like a button rather than > > a dropdown. > Not yet, you can submit a feature request on the forum for that. > > > Another thing, what's with the limited scope of this > > MainMenu? Qooxdoo has the ability to do RadioButtons, CheckBoxes, and > > a whole ton of other things. > That features are not yet wrapped on the component, but you can use them > using qooxdoo syntax, you can also submit feature requests for that, so > we have it into account for new developments. > > Regards > -- > Jos? Le?n > qadram software > C/Juan Ram?n Jim?nez, 15 Entlo. 2 > 03203 Elche ALICANTE (SPAIN) > T: +34 965 45 48 48 > F: +34 965 45 48 48 > M: +34 618 28 13 69 > http://www.qadram.com > |
From: Rob W. <rob...@gm...> - 2007-06-12 22:32:23
|
I will try to remember to do that this week some time, perhaps tonight. I'm out of the house at the moment and can't do it immediately. I'm still hoping you receive my previous two patches sent approx June 9 (It's June 12 today). I submitted a fix which *doesn't* require any alterations to htmlarea, but there are still page errors generated as before. They are at the status bar in the browser (Internet explorer says something along the lines of "There are errors on this page.") There is a way to silence the errors, I've done it before. Right now, they're there though. It still works with the patch i've most recently submitted approx June 9, please let me know if you receive that and/or the propper 'session storing' fix (which doesn't disable it). -Rob On 6/9/07, qadram support <su...@qa...> wrote: > Rob Wilkens escribi=F3: > > In fact, all these bugs may be fixed in xinha --- I don't know, they > > no longer use htmlarea.js :--), it's a compatibility file which links > > to what I'll call a 'compressed for space' XinhaCore.js file > > > > Should I try replacing htmlarea with a clean xinha download????? > > > > If I do, we'll still have to deal with xinha_editors[id] assignment > > unless they dealt with that too, and that's easy to do, in my earlier > > patch just modify 'new HTMLArea(...)" with "xinha_editors[id]=3Dnew > > HTMLArea(...);" where id is the text area id which I believe we have > > at the time of the call (or can easily get). > If that updates the editor we are using to a newer version, then it's OK > for me, don't know what others developers think, but you should try to > provide patches for your changes, SVN compliant, the mechanism we use > for integration is: > -Get your patch > -Check the changes to see if, at glance, look good > -Integrate it > -Test it > -If everything is OK, we commit the changes to the source repository, if > not, we revert back changes and send comments on the list > > So you can try to replace xinha by a newer version and send a patch with > all the modifications and we will check it. > > Regards > -- > Jos=E9 Le=F3n > qadram software > C/Juan Ram=F3n Jim=E9nez, 15 Entlo. 2 > 03203 Elche ALICANTE (SPAIN) > T: +34 965 45 48 48 > F: +34 965 45 48 48 > M: +34 618 28 13 69 > http://www.qadram.com > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > vcl4php-developers mailing list > vcl...@li... > https://lists.sourceforge.net/lists/listinfo/vcl4php-developers > --=20 Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Rob W. <rob...@gm...> - 2007-06-12 22:17:28
|
On 6/9/07, qadram support <su...@qa...> wrote: > Rob Wilkens escribi=F3: > > FYI - This is a critical patch because without it I get a stack trace > > similar to the following when I reload a page: > > > > Application raised an exception class EPropertyNotFound with message > > 'Error using a property, not defined as a member [RWDContactPage.]' > > Callstack #0 File: C:\Users\Robert Wilkens\Documents\Delphi for PHP > > Projects\index.php Line: 707 > > |_Callstack #1 File: C:\program files\CodeGear\delphi for > > php\1.0\vcl\classes.inc.php Line: 1375 > > |_Callstack #2 File: C:\program files\CodeGear\delphi for > > php\1.0\vcl\classes.inc.php Line: 1402 > > > > Or, alternatively, a page control might show-through what's on each > > page all on one page. This fixes something that is badly broken. > > > > I fixed the description this time to be: > > Disable LOADNIG of resources stored in the session because they don't > > work yet, they are still stored in the session. > Instead disable a change we have made to the library, please, send the > source code that causes you problems and we will try to fix the > problems, instead disable the feature. > > Regards > -- > Jos=E9 Le=F3n I fixed the problem in another e-mail/patch, but it looks like the sourceforge mailing list servers are having difficulties,... They might be catching up now. There were two separate problems/weaknesses and I've correced them both. --=20 Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Rob W. <rob...@gm...> - 2007-06-12 21:59:26
|
This also didn't go through twice, I'm trying one more time now that I see messages flowing on the list. -Rob On 6/9/07, Rob Wilkens <rob...@gm...> wrote: > Attached is a fix that lets the richedit work on a PageControl and be > accessed via the xinha_editors[] array like the rest of them. > > There are still page errors from pre-existing code, but this is a big > step in the right direction, as it adds the functionality needed. > > -- > Rob Wilkens > http://RobWilkens.com > 516-874-0579 > > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Rob W. <rob...@gm...> - 2007-06-12 21:58:34
|
This didn't go through twice, I'm trying one more time now that I see messages flowing on the list. On 6/9/07, Rob Wilkens <rob...@gm...> wrote: > Take a look at this one, it keeps and uses sessions storing, and at > least allows my code to run properly. > > What I did: > > 1. Used an empty try/catch to skip over code when the object stored in > the session that isn't really part of the class. > > 2. Stored the "layer" in the session, and recoverred it at load time. > This way page controls can be used with the session storing. > > Otherwise, it's good! > > Take a look, let me know what you think. > > -Rob > > -- > Rob Wilkens > http://RobWilkens.com > 516-874-0579 > > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: FrozenDice <fro...@gm...> - 2007-06-12 17:42:16
|
I made a custom component a little while back and had used it in a project I'm working on. Since then I've found I don't need it anymore, so I deleted it from the form, went to packages removed it from there, removed the requrire_once form the code, and deleted the actual files that had the component code in them. Then I restarted the IDE and ran my program. To my great surprise there was a message saying it couldn't require_once in my component, which I had deleted. There is no reference to the component in my code at all, I'm stumped, any ideas on how to get this to work? |
From: FrozenDice <fro...@gm...> - 2007-06-12 17:17:15
|
I was wondering how I submit changes so whoever needs to can look over it and put it into the main VCL? For example, on the Window component there was previously no way to set the Icon for each window, I added a property "Icon", and in DumpContents it checks if the value is not "", then it echos that value where the icon should be defined in making a new window. - Daniel |
From: Tiago L. T. <ti...@la...> - 2007-06-12 14:44:56
|
Forgot to attach the patch, hehe Changelog: + Added GetParentPage function. + Added IconSource property to Window component. If not empty it's value is used as the Window icon URI. + Added property editor for Window's IconSource property. + Added jsOnClick event to Window component. + Added Ajax support to Window component. Thanks qadram support wrote: > Tiago Lima Trinidad escribió: >> Hi all! >> This fixes the problem when using ajax and having a Window widget that >> you end getting multiple copies of the same window. >> >> The Canvas class now allows ajax drawing and JavaScript drawing. This >> was done fixing some initialization of the component's name required >> prior to using the drawing methods. >> >> I added a function named boolToStr in (rtl.inc.pas) wich converts a PHP >> boolean into a JavaScript compatible boolean string. This can be used >> while dumping component boolean properties, replacing things like: >> if ($this->_tabposition==tpTop) { $position="true"; } >> else { $position="false"; }; >> with >> $position=boolToStr($this->_tabposition==tpTop); >> >> I also did some formatting in the source code, specially in the >> indentation. >> >> Any comments? > Hi Tiago, thanks a lot for this patch, some of the changes have been > applied, but there are many differences and conflicts between your > forms.inc.php and the current one (my fault for not to apply this patch > earlier), so can you checkout the current forms.inc.php and create a new > patch for your modifications? > > Regards |
From: Tiago L. T. <ti...@la...> - 2007-06-12 14:43:28
|
Hi Here's the new patch for forms.inc.php and standard.package.php. No conflicts! 8) Changelog: + Added GetParentPage function. + Added IconSource property to Window component. If not empty it's value is used as the Window icon URI. + Added property editor for Window's IconSource property. + Added jsOnClick event to Window component. + Added Ajax support to Window component. Thanks qadram support wrote: > Tiago Lima Trinidad escribió: >> Hi all! >> This fixes the problem when using ajax and having a Window widget that >> you end getting multiple copies of the same window. >> >> The Canvas class now allows ajax drawing and JavaScript drawing. This >> was done fixing some initialization of the component's name required >> prior to using the drawing methods. >> >> I added a function named boolToStr in (rtl.inc.pas) wich converts a PHP >> boolean into a JavaScript compatible boolean string. This can be used >> while dumping component boolean properties, replacing things like: >> if ($this->_tabposition==tpTop) { $position="true"; } >> else { $position="false"; }; >> with >> $position=boolToStr($this->_tabposition==tpTop); >> >> I also did some formatting in the source code, specially in the >> indentation. >> >> Any comments? > Hi Tiago, thanks a lot for this patch, some of the changes have been > applied, but there are many differences and conflicts between your > forms.inc.php and the current one (my fault for not to apply this patch > earlier), so can you checkout the current forms.inc.php and create a new > patch for your modifications? > > Regards |
From: Tiago L. T. <ti...@la...> - 2007-06-11 18:17:22
|
Hi José. Sure, I'll make an updated diff as soon as possible. ;) qadram support wrote: > Tiago Lima Trinidad escribió: >> Hi all! >> This fixes the problem when using ajax and having a Window widget that >> you end getting multiple copies of the same window. >> >> The Canvas class now allows ajax drawing and JavaScript drawing. This >> was done fixing some initialization of the component's name required >> prior to using the drawing methods. >> >> I added a function named boolToStr in (rtl.inc.pas) wich converts a PHP >> boolean into a JavaScript compatible boolean string. This can be used >> while dumping component boolean properties, replacing things like: >> if ($this->_tabposition==tpTop) { $position="true"; } >> else { $position="false"; }; >> with >> $position=boolToStr($this->_tabposition==tpTop); >> >> I also did some formatting in the source code, specially in the >> indentation. >> >> Any comments? > Hi Tiago, thanks a lot for this patch, some of the changes have been > applied, but there are many differences and conflicts between your > forms.inc.php and the current one (my fault for not to apply this patch > earlier), so can you checkout the current forms.inc.php and create a new > patch for your modifications? > > Regards |
From: Rob W. <rob...@gm...> - 2007-06-10 23:47:02
|
Forgot to mention, this one doesn't touch 'htmlarea.js'. -Rob On 6/9/07, Rob Wilkens <rob...@gm...> wrote: > Attached is a fix that lets the richedit work on a PageControl and be > accessed via the xinha_editors[] array like the rest of them. > > There are still page errors from pre-existing code, but this is a big > step in the right direction, as it adds the functionality needed. > > -- > Rob Wilkens > http://RobWilkens.com > 516-874-0579 > > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Rob W. <rob...@gm...> - 2007-06-10 23:46:32
|
I sent this yesterday, checked the archives today, it wasn't there.. I'm reattaching the patch. -Rob On 6/9/07, Rob Wilkens <rob...@gm...> wrote: > Take a look at this one, it keeps and uses sessions storing, and at > least allows my code to run properly. > > What I did: > > 1. Used an empty try/catch to skip over code when the object stored in > the session that isn't really part of the class. > > 2. Stored the "layer" in the session, and recoverred it at load time. > This way page controls can be used with the session storing. > > Otherwise, it's good! > > Take a look, let me know what you think. > > -Rob > > -- > Rob Wilkens > http://RobWilkens.com > 516-874-0579 > > -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: Rob W. <rob...@gm...> - 2007-06-09 23:42:03
|
Take a look at this one, it keeps and uses sessions storing, and at least allows my code to run properly. What I did: 1. Used an empty try/catch to skip over code when the object stored in the session that isn't really part of the class. 2. Stored the "layer" in the session, and recoverred it at load time. This way page controls can be used with the session storing. Otherwise, it's good! Take a look, let me know what you think. -Rob -- Rob Wilkens http://RobWilkens.com 516-874-0579 |
From: qadram s. <su...@qa...> - 2007-06-09 23:08:08
|
Rob Wilkens escribió: > I still owe you a fix for the richedit on page control thing which > doesn't alter htmlarea.js. Today looks like a rainy day here, so with > any luck I'll get to it today. > > -Rob > No, please, no one owes anything to anyone ;-) Regards -- José León qadram software C/Juan Ramón Jiménez, 15 Entlo. 2 03203 Elche ALICANTE (SPAIN) T: +34 965 45 48 48 F: +34 965 45 48 48 M: +34 618 28 13 69 http://www.qadram.com |
From: qadram s. <su...@qa...> - 2007-06-09 23:07:34
|
Rob Wilkens escribió: > FYI - This is a critical patch because without it I get a stack trace > similar to the following when I reload a page: > > Application raised an exception class EPropertyNotFound with message > 'Error using a property, not defined as a member [RWDContactPage.]' > Callstack #0 File: C:\Users\Robert Wilkens\Documents\Delphi for PHP > Projects\index.php Line: 707 > |_Callstack #1 File: C:\program files\CodeGear\delphi for > php\1.0\vcl\classes.inc.php Line: 1375 > |_Callstack #2 File: C:\program files\CodeGear\delphi for > php\1.0\vcl\classes.inc.php Line: 1402 > > Or, alternatively, a page control might show-through what's on each > page all on one page. This fixes something that is badly broken. > > I fixed the description this time to be: > Disable LOADNIG of resources stored in the session because they don't > work yet, they are still stored in the session. Instead disable a change we have made to the library, please, send the source code that causes you problems and we will try to fix the problems, instead disable the feature. Regards -- José León qadram software C/Juan Ramón Jiménez, 15 Entlo. 2 03203 Elche ALICANTE (SPAIN) T: +34 965 45 48 48 F: +34 965 45 48 48 M: +34 618 28 13 69 http://www.qadram.com |