Jump to content

mhmda

uniGUI Subscriber
  • Posts

    1141
  • Joined

  • Last visited

  • Days Won

    157

Everything posted by mhmda

  1. Hi, Use something like this: ajaxRequest(MainForm.window, 'test', ['a=10']);
  2. What about server side: procedure TMainForm.uniUrlframe1AjaxEvent(Sender: TComponent; EventName: string; Params: TStrings); begin If SameText(EventName, 'dosyacildi' ) Then Begin showmessage(Params.Values['konu']); End; end;
  3. mhmda

    Autoresize panels

    Which extjs ver. you use and which unigui ver.?? The idea here is: 1. Remove all child panels from parent and save them in an array of objects. 2. Set flex property for every child (panel) as you wish. 3. Create a new parent panel with specific 'layout' property (because you can't change 'layout' dynamically at run time of existing control - parent). 4. Attach the child panels which been saved in array to the new parent. 5. Add the new parent to the form. 6. Refresh the form to display the new components. * The case become more complicated when you have nested panels.
  4. mhmda

    Autoresize panels

    You need to implement the 'layout' property for the container (hbox) and set the 'flex' property for the three panels. But we have to wait until Farshad implement this in Desktop applications (in mobile- unitouch it's exists). You can see this post: http://forums.unigui.com/index.php?/topic/5437-panel-layout-property-and-flex-property/?hl=flex For now you may use extra js code in client side to achieve what you want, here an example for your case: function window.afterrender(sender, eOpts) { Ext.apply(UniForm1.UniPanel1, {flex:1}); Ext.apply(UniForm1.UniPanel2, {flex:1}); Ext.apply(UniForm1.UniPanel3, {flex:1}); var w=$(window).width(); var h=$(window).height(); var first_panels = UniForm1.containerxxx.removeAll(false); var first_container = Ext.create('Ext.panel.Panel', { border:false, width:w, height:h, layout: { type: 'hbox',align : 'stretch'}, items:first_panels }); UniForm1.form.add(first_container); UniForm1.form.doLayout(); } It's working great but you need extra code...I hope Farshad will implement this soon :-) You can download attached project http://3msoft.net/mhmd/Layout_Flex.rar. I hope this will help you
  5. any update for this issue? it is very important.
  6. Hi, This is very important issue, is there any progress or any future plan?
  7. I have a solution (works great for me) : function added(sender, container, pos, eOpts) { sender.getStore().sorters.add(new Ext.util.Sorter({property: '1',direction: 'DESC'})); } Where '1' is SECOND column... 0: first column.....etc
  8. mhmda

    Eid Mubarak

    تقبل الله الطاعات، وكل رمضان وأنتم بخير
  9. How can I execute code that NOT related to the datasource/table? For example changing a label caption? I tried but my code was IGNORED? why? Thanx
  10. Is there any future plan for adding this to unigui?
  11. Use Indy http 'Get' to get the content of the page.
  12. Use field.ongettext in you table, for example: procedure TUniMainModule.qryTmpwerGetText(Sender: TField; var Text: string; DisplayText: Boolean); begin //you can use html also as text Text:='xxxxxxx'; end;
  13. [Client side] Use 'beforeedit' event and change the caption as you wish for example: MainForm.UniButton1.setText('xxxxxxx');
  14. What is the content of the uniFrame: is it regular html content or you place a unigui components? You can use extjs query 'up' and 'down', for example if you have a uniframe called 'UniFrame1' on 'MainForm' and it contains other components you may use: MainForm.UniFrame1.down('xxx')
  15. Farshad please add 'layout' property to UniPanel (vbox,hbox,fit....) and please add 'flex' property to all unigui components, it's very important for front-end designing. Thank you for your great work :-)
  16. Hi, I use the (unihtmlframe) client side event 'resize' which calls ajaxRequest in server side, when the event fires it calls the server side and the 'resize' fires again and calling the server side....loop... the procedure in server side is empty with no code. I use the unigui 0.99.0.1169
  17. I also use TSilang with unigui for 3 languages, this component can save any property of any component for every language, you may export the translation to dictionary which make it easy to translate. And it gives you the expected width of every string for any language when you typing the translation. It is a great tool and has many advance properties.
  18. Try to download it again, I think there is a problem with godaddy hosting server :-|
  19. Hi, You can start with this: http://forums.unigui.com/index.php?/topic/4715-uniformshow-on-left-1000-pixel/ and create a custom animation as you like.
  20. I set 'readonly' at design time in all places where is it possible (grid,table...) still have problem
×
×
  • Create New...