Jump to content

Label Auto-Resizing / FileFlushBuffer() ?


Guest Onichi
 Share

Recommended Posts

Guest Onichi

I have a very neat GUI with a lot of grouping objects. Whenever I try to run GUIWrite($some_label, 0, "Blah") or GUISetControl($some_label, "Blah", -1, -1), in order to change a label's message, the size of the label changes greatly and cuts through the grouping objects destroying the GUI's look. I was wondering if there is some style I have to apply to prevent this, I tried the static size one with

Global $GUI_DOCKSIZE = 768;

GUISetControlEX($some_label, 0, $GUI_DOCKSIZE) but it still didnt work.

Also, is there anyway to get the full path of an object from the file handle? Since there isn't an inbuilt command like FileFlushBuffer($file_handle) I decided to create one myself like this :

Func FileFlushBuffer($old_file_handle, $file_path)

FileClose($old_file_handle);

return FileOpen($file_path, 1);

EndFunc

So I could do something like this:

$file_handle = FileFlushBuffer($file_handle, $filepath);

Any other ways to do this that would only take the $file_handle parameter :ph34r:? Even though this method works fine, it would eliminate another variable from my program.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...