Author Topic: SCI0 - Icon location in Print window  (Read 3237 times)

0 Members and 1 Guest are viewing this topic.

Offline Doan Sephim

SCI0 - Icon location in Print window
« on: January 21, 2021, 09:07:17 AM »
The default position on an icon in a window is top left. Is there an easy way to manipulate this? All I really would like to do would be able to center it in the y-axis. Keeping it on the left is fine, but it looks wrong in my death window.


Artificial Intelligence Competition

Offline lskovlun

Re: SCI0 - Icon location in Print window
« Reply #1 on: January 21, 2021, 10:09:30 AM »
The default position on an icon in a window is top left. Is there an easy way to manipulate this? All I really would like to do would be able to center it in the y-axis. Keeping it on the left is fine, but it looks wrong in my death window.
How is this different from the other thread which was marked "SOLVED"? Honest question.

Offline Doan Sephim

Re: SCI0 - Icon location in Print window
« Reply #2 on: January 21, 2021, 10:45:15 AM »
The default position on an icon in a window is top left. Is there an easy way to manipulate this? All I really would like to do would be able to center it in the y-axis. Keeping it on the left is fine, but it looks wrong in my death window.
How is this different from the other thread which was marked "SOLVED"? Honest question.
I just didn't know if there was already some way in the code to modify the placement moving it along the y axis. I'm guess there's not and I'll have to customize it a bit.

Offline lskovlun

Re: SCI0 - Icon location in Print window
« Reply #3 on: January 23, 2021, 02:49:40 PM »
Yeah, I was just misreading. You did write y-axis. But the same trick applies; once the dimensions of the dialog box are known (i.e. after adding all the stuff to it and calling setSize:), you reposition the icon.

Offline Doan Sephim

Re: SCI0 - Icon location in Print window
« Reply #4 on: January 23, 2021, 04:04:41 PM »
Yeah, I was just misreading. You did write y-axis. But the same trick applies; once the dimensions of the dialog box are known (i.e. after adding all the stuff to it and calling setSize:), you reposition the icon.
Yup, I basically just made the y-axis number a global variable that I will set when the death menu appears, but will otherwise be set to 4 (what it was before). This may not be the most elegant solution, but it'll do for me


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.045 seconds with 23 queries.