Machsupport Forum

Mach Discussion => Mach Screens => Screen designer tips and tutorials => Topic started by: TPS on December 14, 2017, 12:48:26 PM

Title: Tranparent Pushbutton - Dro Mach3
Post by: TPS on December 14, 2017, 12:48:26 PM
Hi guy's

for the moment i am a Little bit out of ideas (probably im am sitting on the pipe)

I have written a VBScript for numeric Inputs , via transparent button, on a Touchsreen witch is able to to enter values into a specified DRO (i know this Auto-Calculator Option) .

to use it, it is necessary, to put a "transparent Button" over the DRO Display.

for the moment i am hang up, to get the "transpartent button" as the "TOP" Event,
means the DRO is the master, and takes the focus for Input, and the button Event is not triggerd.

hope somebody understands what i am trying to explain in my bad Bavarin english.

Thank You Thomas

PS. if i get this running, it will be shared.
 
Title: Re: Tranparent Pushbutton - Dro Mach3
Post by: Klaus1311 on December 14, 2017, 05:09:20 PM
Hi Thomas,

a few questions,
 
what screen editor are you using?
can you put your screenset and script on the forum?

Klaus
Title: Re: Tranparent Pushbutton - Dro Mach3
Post by: TPS on December 15, 2017, 03:01:16 AM
Hello Klaus,

ich denke wir könnten in Deutsch weitermachen, aber um die anderen im "Rennen" zu halten machen wir in Englisch weiter.

i am using your screeneditor.

usage is very easy.
-copy the attached macro in your macrofolder

put this code into button , for example to edit OEMDRO(824)

Code: [Select]
Sub Main
  newvalue = NumericKeyboard("OEM DRo 824", GetOEMDRO(824) )
SetOEMDRO(824 ,newvalue)

End Sub
'-----------------------------------------------------------
'TongIL has to be replayced with your Profile Name
'-----------------------------------------------------------
#Expand <\..\..\macros\TongIl\Numeric_1>


as wiritten, the code itselve is not the Problem, only to get the "Tranparent Pushbutton" to be the 1st if it is placed over the DRO.

Thank You Thomas
Title: Re: Tranparent Pushbutton - Dro Mach3
Post by: Klaus1311 on December 15, 2017, 04:54:03 AM
Hi Thomas,

since I don't have your screenset, I can only speculate. Did you try to change the display order? To do that, make sure multiple selection is on (second icon from the right in the toolbar must show "M"). Hit a spot with the left mousebutton where the button and DRO overlap. MachScreen will show a dialogbox with the control elements. By dragging the bottom element upwards you change the display sequence. If that doesn't help please let me know.

Klaus
Title: Re: Tranparent Pushbutton - Dro Mach3
Post by: TPS on December 15, 2017, 05:25:29 AM
Hi Klaus,

that was the clue. did not know that can Change order in this selectbox.

every day a new Experience.

Thank You very much.

Thomas