[SOLVED] DP12 Icons Don't Work

Things you’d like to miss in the future...
Forum rules
You might want to read this if you're looking for priority service

:info: Please Include The Following Information
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: Use Your Profile Or Signature
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: How To Attach Images
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
Post Reply
Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

[SOLVED] DP12 Icons Don't Work

Post by Enternal »

Built in reference icons :dp1 and :dp2 works as expected for buttons. But for scripts, it does not work. On the other hand, :dp12 does not work for buttons which is expected but somehow it worked for scripts. However, it only show the #1 icon.
Last edited by Enternal on 15 Apr 2013 22:19, edited 1 time in total.

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: DP12 Icons Don't Work

Post by admin »

"dp12" is a special key that refers to a button but not to an image. You cannot use it for CTB icons.

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: DP12 Icons Don't Work

Post by Enternal »

So is there a way to use those icons at all? Thos "1" and "2" does look nice and could be useful icons.

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: DP12 Icons Don't Work

Post by admin »

Why not use :dp1 and :dp2?

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: DP12 Icons Don't Work

Post by Enternal »

admin wrote:Why not use :dp1 and :dp2?
That's what I mean. That's the problem I was having when I opened this thread. Sorry if I wasn't clear in my first post. Using :dp1 and :dp2 works perfectly for user buttons but it does not work for scripts. Using :dp12 does not work for buttons as expected but for some odd reason, it works with scripts although it only shows "1".

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: DP12 Icons Don't Work

Post by Enternal »

Here is a simple example:

Code: Select all

"I'm DP1|:dp1"
    Msg "Can You See Me Now?";
"I'm DP2|:dp2"
    Msg "Can You See Me Now?";
Just save that as a script and run it. You will see what I have been trying to say. On the other hand:

Code: Select all

:dp1
:dp2
works perfectly for User Buttons as I have said.
Now for the fun and interesting part. Try this as a script:

Code: Select all

"I'm DP1|:dp12"
    Msg "Can You See Me Now?";
"I'm Blanky The Snowman|:copy"
    Msg "Muhahaha";
Hey look! You can see the "1"!

admin
Site Admin
Posts: 67315
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: DP12 Icons Don't Work

Post by admin »

OK, got it. Will work better in the next version. Muhahaha. :)

Enternal
Posts: 1175
Joined: 10 Jan 2012 18:26

Re: DP12 Icons Don't Work

Post by Enternal »

Yeah! It worked! Thanks! :biggrin:

Post Reply