Jump to content

Harry Rogers

uniGUI Subscriber
  • Posts

    237
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Harry Rogers

  1. Like this (as a temp fix - subtracting about 200 seems about right to align the menu again for the window sizes I'm using) procedure TfrmTransactions.tvTransCellContextClick(ANode: TUniTreeNode; X, Y: Integer); begin UniPopupMenu1.Popup(X, Y -190,tvtrans); end; Cheers
  2. Thanks Farshad The vertical position of the popup seems offset using this approach ?
  3. Certainly. I've added a MouseDown event handler to a tree view. So I can display a popup menu when the user does a right click on the Treeview Items. procedure TfrmTransactions.tvTransMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin if Button=mbRight then UniPopupMenu1.Popup(X, Y,tvtrans); end; By having UniGui 'trap' the MouseDown like this - it's not possible to scroll the items in the TreeView by clicking on the scroll bars. That is clicking on the scroll bar or the up/down arrows of the TreeView has no effect. Taking out the MouseDown event handler restores normal behavior. Thanks
  4. Hi Using MouseDown in a TreeView to get a right click menu. This stops the scroll bars working. Is there a way round this ? Thanks
  5. How would you go about adding an audio notification to this? Cheers
  6. Is there a way to control the text label position for items in UniGuiRadioGroup ? I.e place the labels above / below (with alignment options?) the radio button itself e.g something like this
  7. Does feel a bit like that these days - Such a shame that what so neat and fast has tuned into this.
  8. Others have discovered Chrome's cache can be a bit over zealous also http://stackoverflow.com/questions/5690269/disabling-chrome-cache-for-website-development
  9. Resolved ! The file is present. I tried using different ports and found it was only the original port that I used where the problem was present. I thought it unlikely that it was really the port - so the cache became a suspect again. I installed the chrome extension 'Cache Killer' and as soon as that was enabled it worked! So despite 'clearing' the cache from the Chrome options page it was still maintaining a copy somewhere! So thanks to you both for your time on this - it's put to bed now. All the best
  10. OK I've established It works fine from any location (including the Dev machine) when you specify the ip address:port as the target. When it fails is if I use the loopback address (127.0.0.1). This is new behavior but at least I can work around it ! (IE, Edge, & Firefox are quite happy with the loopback address (As is Chrome with each of the other UniGui apps I've tried! ) Weird
  11. It's still working on the Server it was installed on 4 months ago. It's on my Dev PC (64bit Win 10 v10.0.10586) that I have the issue. Using a Win 7 VM (32bit v6.1.7600) on the same dev pc I can access it fine with what claims to be the same Chrome version. - which suggests it's something going on on the dev machine I guess. Flushing the cache has no effect I'm afraid.
  12. Here we are. - as an attachment it keeps failing ? so it's here https://www.hidrive.strato.com/lnk/XtvSuhx2
  13. Hi Farshad Sorry that's me mis-typing the message. It does read Ext.ux.form.MultiSelect is not a constructor whilst the browser display is blank after this message is acknowledged the 'view source' option of the browser does reveal the code of the page has loaded. All the best
  14. HI When I open a session of an app that's been running fine for months in Chrome (53.0.2785.116 m) I get this browser alert/message and the session does not run (it still works fine in IE) 'Ext.ux.form.MultSelect is not a constructor' Anyone else encountered any new Chrome issues ? (Today was the first time this app has run compiled with unigui 0.99.96.1322 - may be significant?)
  15. Hi What's required to install in XE8 ? Many thanks
  16. This is really nice. The font.size defined in the object inspector gets overridden - presumably some addition to the before init js code to redefine this is possible.? My attempts have so far resulted in broken js Anyone? Thanks
  17. I must have grabbed 96 in the brief window it was available. Just about to deploy to a customer with it. shall I hold off for a bit? Cheers
  18. I think that's just about a perfect answer!
  19. Hi Having another app that gets a list of running processes and takes your target exe as a parameter is one easy way to achieve this. The attached code and compiled exe do just that. the useage is 'launcher ExeToAttemptStart ParametersToExe' e.g. launcher c:\myprojects\app1\myapp.exe "some list of parameters that are optional" The included batch file 'runit.bat' tries to start notepad and open abc.txt - it will only open notepad if it's not already running. The app uses shellexecute to start the target and makes no attempt to hide the parent process so there is potential to tidy it up! Running launcher without any parameters simply opens the mainform with the option to view all running processes. You can modify/ extend the function isrunning to include specific users and or paths rather than just the exe name. I found the original code here http://forum.codecall.net/topic/72604-getting-running-processes-list/ some years ago and have used it for a while without issue. May be of some help? Cheers launcher.zip
  20. As it turns out. It's trivial to implement (once someone else has done the maths <g>) The link below provide a way to handle the process beautifully. SO all you need is the Google app on your/your user's phone (or write your own Firemonkey implementation using the below unit) And implement the algorithm in your login sequence of your unigui app to have a robust two factor authentication system. It's based on the time/date so the phone does not actually need a live internet connection / no data or sms charges as with other implementations of one time passwords. see here https://plus.google.com/+PaulTOTH/posts/VMnw2sAGgvZ
  21. Maybe not specifically a UniGui question - though a UniGui solution would be nice. Has anyone had a look at the Google Authenticator Service?
×
×
  • Create New...