![]() |
Guide: Naming GUI Controls
I've seen a lot of people doing this lately, and I wanted to let them know that it should be done differently in nearly all cases.
Rather than naming your GUI windows (and other controls) such as PHP Code:
PHP Code:
PHP Code:
Lesson's over, thanks for reading. |
Stickied.
|
I normally name the GuiWindowCtrl's or GuiBitmapBorderCtrl's after the main title for it.
I.e: JailInformation instead of JailInformation_Window But everything below that uses your naming convention. I.e Close button: JailInformation_Close |
Personal preference.
|
Quote:
|
Quote:
PHP Code:
I see what you mean, though. Quote:
|
Quote:
It's actually quite funny how many times I came across this when I was a GST; people's scripts not working because they did the exact same thing and used generic object names, only to later find that the same object name had been used elsewhere and that they were going to conflict. |
Quote:
Quote:
|
Quote:
Sorry. |
Quote:
Labeled incorrectly you would not know which button is the close or open button: MyForm_Button_1 MyForm_Button_2 Labeled and used correctly you have a much better idea: MyForm_Button_Open MyForm_Button_Close This can be applied to many other object types or GUIs. |
Quote:
|
Quote:
http://wiki.graal.net/index.php/Crea...g_GUI_Profiles |
I have, even seen that link you gave me just now. But there is always a possibility I misinterpreted what i've read.
Edit: If there was anyone that can say they have searched everywhere or at least thoroughly for answers, it'd be me. |
All times are GMT +2. The time now is 06:19 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.