Jump to content


Photo

Max Winapi 2 - Extension


  • Please log in to reply
25 replies to this topic

#21 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1417 posts
  • Version:Unknown

Posted 04 May 2012 - 08:29 PM

hey, your concept was right The Control hide does make it work significantly faster. But you have to hide the control redraw the window then load in the list items. k sorted.
  • 0

#22 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14389 posts
  • Version:GM:Studio

Posted 04 May 2012 - 08:49 PM

hey, your concept was right The Control hide does make it work significantly faster. But you have to hide the control redraw the window then load in the list items. k sorted.


Like this?
API_Control_Show(hCtrl,0);
API_Window_Redraw(API_Control_GetHandle(hCtrl));
//fill here
API_Control_Show(hCtrl,1);
API_Window_Redraw(API_Control_GetHandle(hCtrl));


Weird, it should not matter to redraw except for when you are done, but there are things that do act up in GM. I think moving the control outside the visible region could also work.
  • 0

#23 yashvant sonkar

yashvant sonkar

    GMC Member

  • New Member
  • 8 posts
  • Version:GM8

Posted 13 May 2013 - 06:55 PM

frnds help me

how to destroy

 

MAXAPI 2

 

BUTTON


  • 0

#24 icuurd12b42

icuurd12b42

    Self Formed Sentient

  • Global Moderators
  • 14389 posts
  • Version:GM:Studio

Posted 14 May 2013 - 04:00 AM

API_Control_Destroy(hCtrl) if it exists. I lost the help or

API_Window_Destroy(API_Control_GetHandle(hCtrl))
  • 0

#25 yashvant sonkar

yashvant sonkar

    GMC Member

  • New Member
  • 8 posts
  • Version:GM8

Posted 14 May 2013 - 06:50 AM

frnds pleas help me  in MAXAPI 2

 

HOW TO DESTROY BUTTON :thumbsup: ?


  • 0

#26 yashvant sonkar

yashvant sonkar

    GMC Member

  • New Member
  • 8 posts
  • Version:GM8

Posted 14 May 2013 - 07:22 AM

Then try this:

var temp_handle;
temp_handle = API_Control_GetHandle(handle);	  // Replace handle with the handle you want to destroy

API_Window_Destroy(temp_handle);	  // This will delete the handle for sure
handle = 0;	  // Just clearing the handle variable.

:woot: :thanks: THANK'S THANK'S 100000000% THANK'S

BRO YOU ARE GREAT AWESOME  I LIKE YOU. IT WAS MY BIG PROBLEM BUT YOU SOLVE THIS MANY MANY THANK'S PLEASE ADD ME YOUR FRIEND. :thumbsup: :thanks: :teehee:


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users