Changing the Button IMAGE

If you created a new screenset and want to share it with others then please post it here. You can talk about screens here.

Re: Changing the Button IMAGE

Postby cncdrive » Sun Sep 18, 2016 11:50 pm

Hi Terry,

Currently you can't change images on buttons, the issue why it is not too easy to implement this currently is because the functions which upload the buttons and other GUI primitives do not give a unique ID for the elements. So, there is currently no way to refer to an object from a function call. The object is uploaded, but the software does not have a "handle" for it.
In the screen editor when you select the image with clicking then the software checks the active tab page number and then check your click coordinates and then it compares to an array list of items to see what is under your clicked point on the active tab page, so basicly then it searches for the item, but you can't tell the software that I want to select an item without having a unique ID, a handle to it, because you can't refer to your object.

What would be implementable without having that mentioned handle is to change the image on all buttons which has a defined buttonnumber,
I mean for example to change the image on all buttons which for example has the ID 128.
This would be possible because then you could tell the software with a function parameter to change the image on all buttons which has for example ID:128,
because that information is stored and can be searched for in the buttons array list.

The question is would it be enough for what you want to do?
cncdrive
Site Admin
 
Posts: 4695
Joined: Tue Aug 12, 2014 11:17 pm

Re: Changing the Button IMAGE

Postby ger21 » Mon Sep 19, 2016 10:54 am

ANother question that goes along with that type function. Is there a way in UCCNC to define what TYPE of machine it is used with ? For example

Mill
Plasma
Router
Lathe
Laser
MillTurn
etc
etc


You'd have an infinite number of options, if you already have 3 different types of Plasma alone....
Gerry
UCCNC 2022 Screenset - http://www.thecncwoodworker.com/2022.html
ger21
 
Posts: 2663
Joined: Sat Sep 03, 2016 2:17 am


Return to Custom Screensets

Who is online

Users browsing this forum: No registered users and 4 guests