Jump to content

andyhill

uniGUI Subscriber
  • Posts

    1258
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by andyhill

  1. I use a TunimHTMLFrame (not TunimURLFrame but should be similar) inside a Panel and set some Panel UniEvents as follows for a predetermined scroll height:- w:= 750; Panel.ClientEvents.UniEvents.Add('beforeInit=function beforeInit(sender, config)'#13#10+ '{ '#13#10+ ' config.scrollable = true;'#13#10+ ' config.minHeight = '+IntToStr(w)+';'#13#10+ '} '); Perhaps you could drop the height declaration and test accordingly.
  2. OK, I had to add WRAP instructions in the Table Tag as well. <table style="border:none; width:100%; white-space: word-wrap:break-all; vertical-align:middle;">
  3. My mobile WebApp builds HTML scripts dynamically for TunimHTMLFrame - all good. I want to on special data cells (not all) within a table override the Width and WordWrap defaults for the <td> </td>. <td style="width: 500px; word-wrap:break-word; border-spacing: 0px; border:none; font-size:15px; padding-top:3px; padding-left:8px; color:'+TxtColourStr+';">'+MaterialStr+'</td>'+ My style data above generally works except for the width: 500px; word-wrap:break-word; please advise how to resolve - thanks in advance.
  4. Hi Gerhard, Per a previous discussion (a very long time ago), do we have Mobile Themes now (larger everything) ?
  5. When you get this to work correctly on Mobile UniGUI please share test project - thanks.
  6. Thanks, I missed the need to be in ReadOnly mode - makes sense.
  7. When one clicks on a URL hyperlink it moves the browser to that page, in HTMLMemo it does nothing ?
  8. I am having trouble with HtmlMemo HyperLinks - how does one execute a URL hyperlink within the memo ?
  9. Added function in the forms 'beforeInit' How do I call it in code not using a button click ?
  10. Your suggestion would show <empty> in the select options (not acceptable), I use a blank line to select a blank line. I have an ajax work around but unigui should be able to show a blank line in the select options -or- offer extra clear button:- [Select] [Clear] [Cancel]
  11. Based on my own experiences. Firstly, I now do all of my web app development in Mobile (unigui has inbuilt desktop emulation) and once complete optionally build desktop versions if deemed necessary (not often). In my opinion it is better to have good looking useable Mobile Screens (phones and tablets) with automatically scaled desktop emulation rather then having good looking desktop Screens with poor finger userbility on auto-scaled down mobile screens. Most of my comments below are based on working with a green unigui (early adopter) but over the years unigui is now slowly maturing. 1) I prefer Forms as in the past there were a few inconsistencies with Frames but there are exceptions of course (HTMLFrame for one). 2) I open Forms with ShowModal (optionally I add CallBack for a very specific purpose -otherwise- the breadcrumb logic is automatically added). 3) Multiple Forms are no issue as the are only created when called (you can destroy after use), if you have many watch your GDI resources (set in SystemModule). 4) Tab Sheets are created on Tab Change with slide in transition, Forms are faster - obviously there are times when Tabs are needed. 5) I have all of my Table / Query logic on my MainModule, in this way it is accessible by all forms in the session etc. The tables / queries are opened / fetched / refreshed when a Form is created or shown (subject to design) that needs access. 6) Looks are subjective. 7) ? 8) Flex 9) All things are possible, some may have excess time and make this for you (check out the examples) but most of us are busy - money always is a good motivator. Note: There is a massive push on the web to have secure websites so please consider a valid Domain Name with a corresponding Digital Certificate.
  12. I would like to assign to a Mobile Editor a URL Image having it Left Aligned Within the Edit Frame. Please advise - thanks in advance.
  13. Bypassed UniGUI and coded it in Sencha, now works. '' Returns 'null'
  14. I have come up with the following work around that uses the CloseUp Event with a deferred reading of the new select value via an ajax event:- // OnCloseUp Event Bug Work Around procedure TMymForm.MySelectOnCloseUp(Sender: TObject); begin // if ByPassMySelectFlag = True then begin ByPassMySelectFlag:= False; Exit; end; // UniSession.AddJS('Ext.defer(function(){ajaxRequest(MymForm.ContainerPanel, "_mySelect_", []);}, 500)'); // end; ... if SameText(EventName, '_mySelect_') then begin ...
  15. unim-1.50.0.1481 UnimSelect.Items.Add(''); // or ' ' UnimSelect.Items.Add('1'); UnimSelect.Items.Add('2'); UnimSelect.Items.Add('3'); if UnimSelect.ItemIndex was 2 ('2') and user select 0 ('') the ItemIndex is not updated to 0 due to the blank string
  16. I know this is the Desktop Forum but I am tired of the Mobile Forum postings being overlooked -or- not addressed regularly enough. As stated, My Mobile Application uses TUnimSelect and If the First Item = '' (blank string) then it Fails To Show In Desktop Emulation ? It works as intended on Mobile Platforms. Yes I know I can have a clearable button but it is too close to the select button and fat fingers fires it when it should not. Please advise.
  17. My code AV's at runtime, please advise - thanks. SystemMenu.BeginUpdate; SystemMenu.Items.Clear; // FAILS TO CLEAR TreeMenu !!! //SystemMenu.SourceMenu.Items.Clear; for i:= 0 to Length(UniMainModule.MyTreeMenuItems)-1 do begin // Parent Nodes if ( (i < 15) or (i = 19) or (i = 25) or (i = 32) or (i = 39) ) then begin pNode:= SystemMenu.Items.Add(nil, 'Parent'); pNode.Text:= UniMainModule.MyTreeMenuItems.Name; pNode.SelectedIndex:= i; end; // Child Nodes (uses previous pNode eg. i=14=pNode, i=15=cNode) if ( ((i > 14) and (i < 19)) or ((i > 19) and (i < 25)) or ((i > 25) and (i < 32)) or ((i > 32) and (i < 39)) ) then begin cNode:= SystemMenu.Items.AddChild(pNode, 'Child'); cNode.Text:= UniMainModule.MyTreeMenuItems.Name; cNode.SelectedIndex:= i; end; end; SystemMenu.EndUpdate; UniSession.AddJS(MainmForm.SystemMenu.JSName+'.Refresh;'); UniSession.Synchronize; Above compiles and runs but throws abstract errors. I know it may have something to do with reusing pNode and cNode objects ???
  18. I maintain an array of TreeMenu Items and create TreeMenu Nodes at runtime from this master list. Please show me how to Create Parent Node (with no children) and Parent Node with Children Node - thanks. for i:= 0 to Length(UniMainModule.MyTreeMenuItems)-1 do begin case i of // Parent (no children) 0..2: begin SystemMenu.Items.Add(UniMainModule.MyTreeMenuItems.Name); end; 3..4: begin SystemMenu.Items.Add(UniMainModule.MyTreeMenuItems.Name); end; 5..8: begin SystemMenu.Items.Add(UniMainModule.MyTreeMenuItems.Name); end; 9: begin SystemMenu.Items.Add(UniMainModule.MyTreeMenuItems.Name); end; // Parent (with children) 10: begin SystemMenu.Items.Add(UniMainModule.MyTreeMenuItems.Name); end; // Child 11..14: begin SystemMenu.Items.AddChild(10, UniMainModule.MyTreeMenuItems.Name); end; ...
  19. The author says "SSL under non - Windows platform is unstable, please do not use it in production environment"
  20. In Mobile it puts all of the FieldLabels to the Right of the Form, we need Caption Alignment not just FieldLabel alignment.
×
×
  • Create New...