Search found 1021 matches

by Grovkillen
Fri Mar 08, 2024 2:41 pm
Forum: Enhancement Suggestions
Topic: [Fixed] PopupMenu> click outside = close the menu (result = -1)
Replies: 2
Views: 9822

Re: PopupMenu> click outside = close the menu (result = -1)

This is now fixed (tested in 15.0.24)

Code: Select all

Let>TEMP_popup_data=Hello;Yo!
Separate>TEMP_popup_data,;,SELECTION
GetCursorPos>MENU_X,MENU_Y
PopupMenu>MENU_X,MENU_Y,TEMP_popup_data,POPUP_CLICKED
If>POPUP_CLICKED>-1
  Add>POPUP_CLICKED,1
  PutClipBoard>SELECTION_%POPUP_CLICKED%
Else>
**BREAKPOINT**
Endif>
by Grovkillen
Fri Mar 08, 2024 1:58 pm
Forum: Technical / Scripting
Topic: GetDialogProperty not working for HTML
Replies: 2
Views: 327

Re: GetDialogProperty not working for HTML

Thanks for the feedback.
by Grovkillen
Fri Mar 08, 2024 7:36 am
Forum: Technical / Scripting
Topic: GetDialogProperty not working for HTML
Replies: 2
Views: 327

GetDialogProperty not working for HTML

As shown in this example. The GetDialogProperty>Dialog1,MSHTMLViewer1,HTML,TEMP_html will return an empty variable. Dialog>Dialog1 object Dialog1: TForm Left = 251 Top = -1096 HelpContext = 5000 BorderIcons = [biSystemMenu] Caption = 'CustomDialog' ClientHeight = 211 ClientWidth = 476 Color = clBtnF...
by Grovkillen
Thu Mar 07, 2024 10:31 am
Forum: General Discussion
Topic: Scrollable menu/dialog
Replies: 16
Views: 9646

Re: Scrollable menu/dialog

Is this something that is being considered to be "fixed"? If not I would like to know because that puts me in another direction if I need to make dialogs for every single input instead of relying on a more dynamic HTML form. In the help file under "TFormSubmitEvent" we see that the HTMLViewer have t...
by Grovkillen
Sun Feb 25, 2024 8:05 pm
Forum: Scripts and Tips
Topic: Scaling dialog based on TextHeight
Replies: 6
Views: 26824

Re: Scaling dialog based on TextHeight

Okay, today I updated my scripts and uses another approach to get the scaling right. See this thread here: viewtopic.php?f=9&t=10828#p48757

I'm no longer using the TextHeight... 8)
by Grovkillen
Sun Feb 25, 2024 8:03 pm
Forum: Scripts and Tips
Topic: Get scale/zoom percentage setting.
Replies: 2
Views: 12966

Re: Get scale/zoom percentage setting.

This is what I do with all my scripts now. First I do a check and see what maximum vertical pixel count the desktop uses and then I get the highest dpi value. I compare these to my (for now) standard size of 1080 vs 96. I scale from those values if needed: Let>SCALE_OF_DIALOG=100 Let>DECIMAL_SEPARAT...
by Grovkillen
Thu Feb 22, 2024 8:16 pm
Forum: General Discussion
Topic: Scrollable menu/dialog
Replies: 16
Views: 9646

Re: Scrollable menu/dialog

I got the scroll menu working using a HTMLViewer element but now I want/wish/hope to get the results fetched when clicking submit.
by Grovkillen
Thu Feb 22, 2024 4:53 pm
Forum: Scripts and Tips
Topic: Scaling dialog based on TextHeight
Replies: 6
Views: 26824

Re: Scaling dialog based on TextHeight

But please don't remove it because I have some scripts that are still relying on it to exist :oops:
by Grovkillen
Thu Feb 22, 2024 4:50 pm
Forum: Technical / Scripting
Topic: Can HTMLViewer dialog component display a clickable link?
Replies: 13
Views: 12672

Re: Can HTMLViewer dialog component display a clickable link?

Here's an example how to create buttons using PNG files: Dialog>Dialog1 object Dialog1: TForm ClientWidth = 800 ClientHeight = 120 object MSHTMLViewer1: tMSHTMLViewer Left = 0 Top = 0 Width = 800 Height = 120 end end EndDialog>Dialog1 LabelToVar>form_html,TEMP_html,1,1,*/ SetDialogProperty>Dialog1,M...
by Grovkillen
Thu Feb 22, 2024 4:12 pm
Forum: Technical / Scripting
Topic: Setting Screen Resolution
Replies: 4
Views: 537

Re: Setting Screen Resolution

No but you would probably want to insert a dummy HDMI plug or similar to be sure that the resolution stays the same.
by Grovkillen
Thu Feb 22, 2024 4:11 pm
Forum: Scripts and Tips
Topic: Scaling dialog based on TextHeight
Replies: 6
Views: 26824

Re: Scaling dialog based on TextHeight

All right, thanks for the input Marcus. :)
by Grovkillen
Thu Feb 22, 2024 2:36 pm
Forum: Technical / Scripting
Topic: Can HTMLViewer dialog component display a clickable link?
Replies: 13
Views: 12672

Re: Can HTMLViewer dialog component display a clickable link?

And here's the "opposite" version which triggers once the input first has had focus and then loses it: Dialog>Dialog1 object Dialog1: TForm ClientWidth = 250 ClientHeight = 120 object MSHTMLViewer1: tMSHTMLViewer Left = 0 Top = 0 Width = 250 Height = 120 end end EndDialog>Dialog1 LabelToVar>form_htm...
by Grovkillen
Thu Feb 22, 2024 2:22 pm
Forum: Technical / Scripting
Topic: Can HTMLViewer dialog component display a clickable link?
Replies: 13
Views: 12672

Re: Can HTMLViewer dialog component display a clickable link?

Found another useful event, if a form control element has the attribute "OnFocus" set it'll fire of an event when the element is in focus. Great to use for having tooltip etc. visible. Dialog>Dialog1 object Dialog1: TForm ClientWidth = 250 ClientHeight = 120 object MSHTMLViewer1: tMSHTMLViewer Left ...
by Grovkillen
Thu Feb 22, 2024 2:08 pm
Forum: General Discussion
Topic: Scrollable menu/dialog
Replies: 16
Views: 9646

Re: Scrollable menu/dialog

In the help file under "TFormSubmitEvent" we see that the HTMLViewer have the following parameters set when triggered by a form submit: Action Target EncType Method Results These are automatically populated and all except the "Results" parameter work as intended: Dialog>Dialog1 object Dialog1: TForm...
by Grovkillen
Thu Feb 22, 2024 12:43 pm
Forum: Scripts and Tips
Topic: Scaling dialog based on TextHeight
Replies: 6
Views: 26824

Re: Scaling dialog based on TextHeight

Is it possible to make the property accessible?

Code: Select all

GetDialogProperty>Dialog1,,TextHeight,FOUND_TEXT_HEIGHT
//FOUND_TEXT_HEIGHT=NO_SUCH_PROPERTY
SetDialogProperty>Dialog1,,TextHeight,10
cron
Sign up to our newsletter for free automation tips, tricks & discounts