Jump to content
Sign in to follow this  
Guest Onichi

Label Auto-Resizing / FileFlushBuffer() ?

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.

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.