Jump to content

newsanti

uniGUI Subscriber
  • Posts

    323
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by newsanti

  1. -Place TuniTagField in Form -write code with TagField1.onKeydown -Run Program -Check on Server ...I founded. Onkeydown procedure execute all the time...
  2. I want to display the PopupMenu by writing commands.
  3. If we know the node, How to know the display position of TUniTreeNode? procedure Tsti0001CustomUniguiMarvelExplorerFrameLink1002_TREEVIEW_EVENTS. ExplorerClick_PopupMenu; var oNode: TUniTreeNode; P: TPoint; begin inherited; oNode:= MyFrame.TreeView1.Selected; if Assigned(oNode) then begin MyFrame.TreeViewPopupMenu.LoadMenu(oNode); P.X:= ????; P.Y:= ????; MyFrame.TreeViewPopupMenu.PopupMenu.Popup(P.X,P.Y,MyFrame.TreeView1); end; end;
  4. when move selection on each node...row selection width changed.
  5. use this procedure not effect with mainform in mfpage mode. procedure TisteeuniGUICustomFormLink.EnableFormEnterLikeTab( const AForm: TuniForm); begin AForm.NavigateKeys.Prior.Key:= 13; AForm.NavigateKeys.Prior.ShiftState:= [ussShift]; AForm.NavigateKeys.Next.Key:= 13; AForm.NavigateKeys.Enabled:= True; //กด Enter เป็น Tab end;
  6. Theme: aria Theme: uni_win10 Same font-size: 8px but show with different size.
  7. procedure TisteeuniGUICustomFormLink.ShowHintToolTip(const AControl: TUniControl; const AHint: String); begin AControl.JSInterface.JSCall('tip.update', [AHint]); end; function afterrender(sender, eOpts) { sender.tip = Ext.create('Ext.tip.ToolTip', { target: sender.el, componentCls: 'customTip', html: '<span class="hintClass">MyHint</span>' }); } css .customTip{' font-size: 8px; '}
  8. How to customize tooltip font-size? css .customTip{' font-size: 8px; '} don't effect.
  9. aria default font-size is bigger then other theme, cause text label is wrap. How to change it?
  10. read color from theme color (Selection) to panel.color. function mouseover(sender, eOpts) { sender.setBodyStyle('background-color', 'xxxx'); <<Change Color with Mouseover ClientEvents }
  11. How to change gray with theme focus color? function mouseover(sender, eOpts) { sender.setBodyStyle('background-color', 'gray'); }
  12. Yes.. but no effect... ............................................. ChangeAppWallPaper procedure work OK. if run localhost only. if Apply to Production Server ...don't work.. with Access Violation Error. ............................................. procedure TisteeuniGUICustomFormLink.ChangeAppWallPaper( const AFileName: String; const ADefault: Boolean); var oMainForm: TUniForm; oPanel: TUniPanel; S: String; begin if Not System.IOUtils.TFile.Exists(AFileName) then Exit; S:= AFileName; if Not ADefault then begin S:= ExtractFileName(AFileName); S:= isteePlatform.Context.DesktopWallpaperPath+S; end; oMainForm:= UniApplication.UniMainModule.MainForm as TuniForm; oPanel:= TuniPanel(oMainForm.FindComponent('Panel_BACKGROUND')); if Assigned(oPanel) then begin oPanel.Background.Picture.LoadFromFile(S); << Access Violation *** Picture object *** S:= oPanel.Background.ImageUrl; UniSession.AddJS(oPanel.JSName+'.setStyle("background-image", ''url("'+S+'")'');'); UniSession.AddJS(oPanel.JSName+'.setStyle("background-size", ''cover'');'); end; end;
  13. Why MainModule.Background.Url:= AURL; Not Show Background Image.
  14. Example: SourcePath:= D:\share files\wallpaper\desktop\image1.jpg SourcePathURL:= ConvertToURL(SourcePath)? How to convert SourcePath to SourcePathURL to use with css .. URL(SourcePathURL)?
  15. ทดสอบ unitTest พบปัญหาคือ 1.ถ้าสร้าง Series 2 ตัว ไว้ใน Chart ตัวเดียวกัน หรือ ฟอร์มเดียว หรือเฟรมเดียวกัน จะไม่มีการแสดงผลกราฟ (จอขาวว่างๆ ) เลย 2. ถ้าสร้าง Series 2 ตัวใน ฟอร์ม หรือ เฟรม เดียวกัน การเปลี่ยนแปลงผลของ Series ให้เปลี่ยนชนิดกราฟ ต้องใช้คำสั่งพิเศษ javascript ช่วย ทำให้ยุ่งยาก ------------------------------- วิธีแก้ไข: 1. สร้าง Frame + Chart + Series ของกราฟที่ต้องการ เช่น -Frame+Chart + BarSeries -Frame+Chart+ GuageSeries หรืออื่นๆ 2. ใช้วิธีการเปลี่ยนเฟรมแสดงผลแทน ลดความยุ่งยากการจัดการแสดงผล และง่ายขึ้น เปลี่ยนกราฟแบบ Run-Time.mp4 ChartType.zip
×
×
  • Create New...