🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

hwt:: {args}

User: "Altair Forum User"
Altair Employee
Updated by Altair Forum User

Hello

I'm just going through the 'TK Widget Tour' built in HyperMesh.

using hwt is a new stuff for me and I'm a bit confused. Please forgive me if my questions are booring or lame-type image/emoticons/default_smile.png' alt=':)' srcset='/emoticons/smile@2x.png 2x' width='20' height='20'>

set auto_path ''

lappend auto_path {'C:/Altairwin64/hw10.0/hw/tcl'}

package require hwt

hwt::CreateWindow mytoplevel \

-windowtitle 'Dialog Title' \

-noGeometrySaving \

-cancelButton Cancel \

-acceptButton OK \

-acceptFunc applyFXN \

-defaultButton Accept \

-minsize 470 300 \

-post;

proc applyFXN {args} {

tk_messageBox -message 'The CreateWindow function passes the\

toplevel window to the procedure listed \

so you must have args in the procedure.\

Args is $args';

destroy $args;

}

$args value is .mytoplevel. Where exactly this value is being assigned to variable $args?

other thing which is not very clear for me is recess

set recess [hwt::WindowRecess mytoplevel];

why do I need create recess? Why I can not refer directly to .mytoplevel as I used to in all macros I have done so far?

Many thanks for any help

Kind Regards

Souaveck

Find more posts tagged with