Jump to content
dragontechi

ayuda con SetEditMaxNumVisible

Recommended Posts

buenas a todos me gustaria saber si sabe porque me prensenta este problema el cliente al escribir en el paner de gm limito lo limito a UI_SetEditMaxNumVisible( edtGMSay, 50) pero el cliente me sigue mostrando 62 

 

image.png.9645a6d78925cb54046114f96b651cce.png
 

------------------------------------
-- Crear formulario de entrada de GM
-------------------------------------
frmGM = UI_CreateForm( "frmGM", FALSE, 378, 95, 300, 545, TRUE, FALSE )
UI_FormSetHotKey( frmGM, ALT_KEY, HOTKEY_P ) 
UI_ShowForm( frmGM, FALSE )
UI_AddFormToTemplete( frmGM, FORM_MAIN )
UI_FormSetIsEscClose( frmGM, FALSE )
UI_SetIsDrag( frmGM, TRUE )
UI_SetFormStyleEx( frmGM, FORM_BOTTOM, 0, 45)
imgMain3 = UI_CreateCompent( frmGM, IMAGE_TYPE, "imgMain3", 378, 95, 0, 0 )
UI_LoadImage( imgMain3, "texture/ui/corsairs/gm_panel.tga", NORMAL, 378, 95, 0, 0 )

--Titulo gm chat
labTitle = UI_CreateCompent( frmGM, LABELEX_TYPE, "labTitle", 378, 95, 10, 3 )
UI_SetCaption( labTitle, "GM Panel")
UI_SetTextColor( labTitle, 4289000470 )
UI_SetLabelExFont( labTitle, DEFAULT_FONT, TRUE, COLOR_BLACK )

-- entrada de gm chat
edtGMSay = UI_CreateCompent( frmGM, EDIT_TYPE, "edtGMSay", 378, 95, 40, 30 )
UI_SetTextColor( edtGMSay, COLOR_BLACK )
UI_SetEditMaxNum( edtGMSay, 500)
UI_SetEditMaxNumVisible( edtGMSay, 50)
UI_SetEditCursorColor( edtGMSay, COLOR_BLACK )

--cerrar gm chat
btnClose = UI_CreateCompent( frmGM, BUTTON_TYPE, "btnClose", 14, 14, 361, 3 )
UI_LoadButtonImage( btnClose, "texture/ui/PublicC.tga", 14, 14, 116, 175, TRUE )
UI_SetButtonModalResult( btnClose, BUTTON_CLOSE )


 

Share this post


Link to post
Share on other sites
11 minutes ago, dragontechi said:

buenas a todos me gustaria saber si sabe porque me prensenta este problema el cliente al escribir en el paner de gm limito lo limito a UI_SetEditMaxNumVisible( edtGMSay, 50) pero el cliente me sigue mostrando 62 

 

image.png.9645a6d78925cb54046114f96b651cce.png
 


------------------------------------
-- Crear formulario de entrada de GM
-------------------------------------
frmGM = UI_CreateForm( "frmGM", FALSE, 378, 95, 300, 545, TRUE, FALSE )
UI_FormSetHotKey( frmGM, ALT_KEY, HOTKEY_P ) 
UI_ShowForm( frmGM, FALSE )
UI_AddFormToTemplete( frmGM, FORM_MAIN )
UI_FormSetIsEscClose( frmGM, FALSE )
UI_SetIsDrag( frmGM, TRUE )
UI_SetFormStyleEx( frmGM, FORM_BOTTOM, 0, 45)
imgMain3 = UI_CreateCompent( frmGM, IMAGE_TYPE, "imgMain3", 378, 95, 0, 0 )
UI_LoadImage( imgMain3, "texture/ui/corsairs/gm_panel.tga", NORMAL, 378, 95, 0, 0 )

--Titulo gm chat
labTitle = UI_CreateCompent( frmGM, LABELEX_TYPE, "labTitle", 378, 95, 10, 3 )
UI_SetCaption( labTitle, "GM Panel")
UI_SetTextColor( labTitle, 4289000470 )
UI_SetLabelExFont( labTitle, DEFAULT_FONT, TRUE, COLOR_BLACK )

-- entrada de gm chat
edtGMSay = UI_CreateCompent( frmGM, EDIT_TYPE, "edtGMSay", 378, 95, 40, 30 )
UI_SetTextColor( edtGMSay, COLOR_BLACK )
UI_SetEditMaxNum( edtGMSay, 500)
UI_SetEditMaxNumVisible( edtGMSay, 50)
UI_SetEditCursorColor( edtGMSay, COLOR_BLACK )

--cerrar gm chat
btnClose = UI_CreateCompent( frmGM, BUTTON_TYPE, "btnClose", 14, 14, 361, 3 )
UI_LoadButtonImage( btnClose, "texture/ui/PublicC.tga", 14, 14, 116, 175, TRUE )
UI_SetButtonModalResult( btnClose, BUTTON_CLOSE )


 

image.png.4561c56fba7e49868406a5e917f61cc4.png

ya lo pude corregir solo era reducir el el tamaño donde inica y termina el cuado de dialogo 
-- entrada de gm chat
edtGMSay = UI_CreateCompent( frmGM, EDIT_TYPE, "edtGMSay", 318, 95, 40, 30 )
UI_SetTextColor( edtGMSay, COLOR_BLACK )
UI_SetEditMaxNum( edtGMSay, 500)
--UI_SetEditMaxNumVisible( edtGMSay, 500)
UI_SetEditCursorColor( edtGMSay, COLOR_BLACK )

segun tengo entedido UI_SetEditMaxNumVisible( edtGMSay, 50)  es para limitar la capacidad de el text visible porque no funciono con esto no se si estoy seguro si estoy en 1 error

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...