Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Resolved: GuiTextEditCtrl and useownprofile (https://forums.graalonline.com/forums/showthread.php?t=62343)

Yen 11-18-2005 03:22 AM

Resolved: GuiTextEditCtrl and useownprofile
 
1 Attachment(s)
I'm assuming I did this right..

When you use 'useownprofile = true' in a GuiTextEditCtrl, the image disappears. It can't be set back to it's original image with the 'bitmap' variable.

HTML Code:

new GuiWindowCtrl(GSAdd) {
  width = 160;
  height = 160;
  x = (screenwidth - width) / 2;
  y = (screenheight - height) / 2;
  canMinimize = canMaximize = canResize = false;
  new GuiTextEditCtrl(GSAddAccount) {
    x = 8;
    y = 24 + 16;
    width = GSAdd.width - (8+8);
    height = 22;
    useownprofile = true;
    profile.bitmap = "defaulttextedit.png";
    profile.align = "center";
  }
}


And a screenshot of the problem.

Admins 11-18-2005 01:31 PM

You should first assign the default profile before you try to modify it (profile = GuiTextEditProfile; ). The GuiTextEditCtrl is only drawing a border if profile.border is not zero.


All times are GMT +2. The time now is 08:07 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.