Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

zTeamS6E3 - Drawing a textbox

Joined
Oct 8, 2006
Messages
740
Reaction score
289
I'm requesting some help. I don't really know where to find the ModelID for the textbox or how the textbox should be designed. I'm having a WIP. A jewel bank.

I wanna add a textbox in the upper part for zen adding event with a button. I know I could use a command, but I don't wanna do that.

Anyone knows how to draw a textbox?

My WIP: :thumbup:




Okay. I found out how to do it.
 
Joined
Oct 8, 2006
Messages
740
Reaction score
289
Sure. You have to draw the box using Windows header files.
The Mu Online GUI is in a "loop" when it's drawn, so you need to make sure that the window is drawn only once.

(C/C++ Development + OpenGL)

This is the textbox function returning a HWND type.

Code:
HWND Interface::textbox(int width, int height, int xPos, int yPos, LPCSTR content, bool edit_able)
{   
int type = (edit_able) ? (WS_CHILD | WS_VISIBLE  | ES_NUMBER) : (WS_CHILD | WS_VISIBLE | WS_HSCROLL | ES_AUTOHSCROLL);

return CreateWindowEx
(WS_EX_CLIENTEDGE,
"EDIT",
content,
type,
xPos,
yPos,
width,
height,
GetActiveWindow(),
(HMENU)50,
GetModuleHandle(NULL),
NULL);
}
 
Upvote 0
Back
Top