Jump to content

55143681

uniGUI Subscriber
  • Posts

    670
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by 55143681

  1. what does the parameters mean? UniURLFrame1.JSInterface.JSCode(#1'.iframe.contentWindow.yourFunction();'); 1‘’ ?? iframe ?? contentWindow??
  2. An old question,Can anyone help me?
  3. Of course, I wish mobile's uniMap comes out.
  4. I want LeafJet+unigui example, Thank you .
  5. Dear In Chinese, We can not access google, Leaflet.js seems a good choice, Is there any code for study?
  6. I think Client Mode and Server Mode are both what I needed, Can you make some test case for us, Thanks a lot.
  7. Someone Save files into database and someone save files in folders, They are all right. But the new problem is : if your project run in cluster servers, If your folders are not cluster, and your database are clusters,you should select save files in database. If your folders are cluster,and your database are not cluseters,you should select save files in folders. Most of all ,is the stabilization
  8. where to user UniApplication.ScreenWidth?
  9. I am making a mobile application, sometime,I test it in pc's chrome, I want to make the width=600, maybe that seems good. Where to add the code, and how to judge the platform, and how to set the application width in chrome.?
  10. Everything can be created dynamicly, Is that ok?
  11. Thank you very much,As you see,I have make my kanban with UniGUI's UniPanel. Is that ok?
  12. <style type="text/css"> .x-body { background-color:rgb(11,250,180); margin:0; } .x-tab-active .x-tab-inner { color: #800000 !important; } .x-calendar-weeks-today-cell{ background-color:lightblue; border-color:red !important; border-style:solid !important; } .x-grid-cell-inner { white-space: initial; } .x-calendar-weeks-weekend-cell { background-color: lightgray; } </style>
  13. UniGUI should have UniGridPanel, UniGridPanel is a kind of Panel, the Panel have rowCount and colCount property, if I set rowCount=5 and colCount=3, than the UniGridPanel will have rows=5 and cols=3, there will be 5*3 cells, all the cells are the same width and same height, in any Cell,I can place a UniImage\UniBitBtn etc... Of course,just like UniHiddenPanel, In the design time,all the cells have borders, But in the runtime,alll the cells have no borders.
  14. In my UniForm,I created so many UniPanels like this: TUniPanel *newCtl=new TUniPanel(Sender); newCtl->Name="panel_"+seqStr; Need I free all the newCtl before I close the UniForm? Or all the newCtl will be freeed after the UniForm closed automatic?
  15. Ha ha. work hard,good job.
  16. See demos please C:\Program Files (x86)\FMSoft\Framework\uniGUI\Demos\Desktop\AllFeaturesDemo
  17. work s well ,thanks. the code as follow,see the image please. void __fastcall TMainForm::UniBitBtn1Click(TObject *Sender) { P1++; TUniPanel * newCtl=new TUniPanel(this); newCtl->Left=LastX; newCtl->Top=LastY; newCtl->Parent=UniPanelA; newCtl->Caption="UniPanel"+String(P1); newCtl->Name=newCtl->Caption; newCtl->Draggable->Enabled=true; newCtl->Cursor=crDrag; newCtl->OnEndDrag=AnyEndDrag; newCtl->Collapsible=true; newCtl->Collapsed=false; newCtl->CollapseDirection=cdTop; //newCtl->JSInterface->JSAddListener("afterrender","function(){this.body.dom.style.borderRadius=\"10px\"}"); //newCtl->JSInterface->JSCallDefer("setBodyStyle", "['borderRadius', '10px']",200); newCtl->ClientEvents->ExtEvents->Values["afterrender"]="function(sender){sender.body.dom.style.borderRadius=\"10px\"}"; } //---------------------------------------------------------------------------
  18. I am from china,so far from you and the network is so slow. See the video and the code please. void __fastcall TMainForm::UniBitBtn1Click(TObject *Sender) { P1++; TUniPanel * newCtl=new TUniPanel(this); newCtl->Left=LastX; newCtl->Top=LastY; newCtl->Parent=UniPanelA; newCtl->Caption="UniPanel"+String(P1); newCtl->Name=newCtl->Caption; newCtl->Draggable->Enabled=true; newCtl->Cursor=crDrag; newCtl->OnEndDrag=AnyEndDrag; newCtl->Collapsible=true; newCtl->Collapsed=false; newCtl->CollapseDirection=cdTop; //newCtl->JSInterface->JSAddListener("afterrender","function(){this.body.dom.style.borderRadius=\"10px\"}"); newCtl->JSInterface->JSCall("setBodyStyle", "['borderRadius', '10px']"); } Video_2020-01-28_235731.wmv
  19. Hello dear.

    my corner,haha

    1. Sherzod

      Sherzod

      Try with defer:

      JSInterface.JSCallDefer('setBodyStyle', ['borderRadius', '10px'], 200);

       

    2. Sherzod

      Sherzod

      Try this:

          Name := 'testPanel'; //It's necessary
          ClientEvents.ExtEvents.Values['afterrender'] := 'function(sender){sender.body.dom.style.borderRadius="10px"}';
          //JSInterface.JSCallDefer('setBodyStyle', ['borderRadius', '10px'], 200);

       

  20. See the Code please,click UniBitBtn1 to see. testPanelC.zip
×
×
  • Create New...